Public Member Functions | |
Document (const QString &s) | |
Creates a new instance of this class. | |
~Document () | |
Deletes all node data and the instance. | |
void | setData (List *newData, NodeIdMap *m) |
Initializes the document with the data built by the parser. | |
ReentNode * | findReentrancy (int ref) |
Returns the ReentNode with the given reference ID. | |
GenericNode * | findNodeById (char *id) |
Returns a node given its ID. | |
unsigned int | maxID (void) |
Returns the highest node ID in the document. | |
QString | getName () |
Returns the name of the document. | |
void | write (FILE *file) |
Writes the document to a file. | |
Public Attributes | |
QList< GenericNode > * | data |
A list that contains a ll structure nodes (that is all nodes except trees, relations and reentrancies). . | |
QList< ReentNode > * | Reent |
A list of all ReentNodes in the data. | |
TreeNode * | tree |
Pointer to the root node of the tree structure, or NULL , if no tree exists. | |
QList< RelationNode > * | rel |
A list of all RelationNodes in the data. | |
NodeIdMap * | map |
A NodeIdMap that maps node IDs to the corresponding nodes. | |
int | showDefault |
Determines how this document should be displayed when a view window is opened, one of the DRAW_xxxx constants. | |
Private Attributes | |
QString | name |
The name of this document. |
It provides several accessor methods to different parts of the data (main feature structure, tree structure, etc.). Furthermore, it maintains a mapping between node IDs and corresponding nodes.
|
Creates a new instance of this class.
|
|
Deletes all node data and the instance.
|
|
Returns a node given its ID.
|
|
Returns the ReentNode with the given reference ID.
|
|
Returns the name of the document. The name appears on the titlebar of a view window that displays this document.
|
|
Returns the highest node ID in the document.
|
|
Initializes the document with the data built by the parser.
|
|
Writes the document to a file. Only the node data as it is sent by the backend is written to the file, not any modifications users applied (that is, DisplayableNode properties are not saved).
|
|
A list that contains a ll structure nodes (that is all nodes except trees, relations and reentrancies). Note:The first element on this list must be the root node of the main feature structure. |
|
A NodeIdMap that maps node IDs to the corresponding nodes.
|
|
The name of this document. This name appears on the titlebar in a view window that displays this document. |
|
A list of all ReentNodes in the data. This list may be empty. |
|
A list of all RelationNodes in the data. This list may be empty. |
|
Determines how this document should be displayed when a view window is opened, one of the
|
|
Pointer to the root node of the tree structure, or
|