Envision
A visual programming IDE for object-oriented languages
|
Static Public Member Functions | |
static bool | labelComparator (GenericNode *const node1, GenericNode *const node2) |
This comparator is used to sort children lists by label. More... | |
static GenericNode * | load (const char *data, int dataLength, bool lazy, GenericPersistentUnit &persistentUnit) |
static GenericNode * | load (const QString &filename, bool lazy, GenericPersistentUnit &persistentUnit) |
static void | parseLine (GenericNode *node, const char *line, int lineLength) |
static QList< GenericNode * > | save (QTextStream &stream, GenericNode *node, const QStringList &persistentUnitTypes={}, int tabLevel=0) |
Saves the generic node and its children recursively to a text stream. More... | |
Static Public Attributes | |
static const QString | PREFIX_DOUBLE {"D_"} |
static const QString | PREFIX_INTEGER {"I_"} |
static const QString | PREFIX_STRING {"S_"} |
Static Private Member Functions | |
static int | countTabs (const char *data, int lineStart, int lineEnd) |
static QString | escape (const QString &line) |
static uchar | hexDigitToChar (char d, bool &ok) |
static int | indexOf (const char c, const char *data, int start, int endInclusive) |
static bool | nextHeaderPart (const char *data, int &start, int &endInclusive, int lineEnd) |
static bool | nextNonEmptyLine (const char *data, int dataSize, int &lineStart, int &lineEnd) |
static QString | rawStringToQString (const char *data, int start, int endInclusive) |
static Model::NodeIdType | toId (const char *data, int start, int endInclusive, bool &ok) |
Static Private Attributes | |
static constexpr bool | SORT_BY_LABEL = true |
If true, sort children by label when writing encoding. More... | |
|
inlinestaticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
This comparator is used to sort children lists by label.
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
Saves the generic node and its children recursively to a text stream.
If any persistentUnitTypes are provided, they are saved as new peristent unit reference only and are returned in the output list.
|
staticprivate |
|
static |
|
static |
|
static |
|
staticconstexprprivate |
If true, sort children by label when writing encoding.
This is to ensure consistency between all methods used to produce Envision encodings.