NCL Composer
0.1.5
|
Public Slots | |
void | onEntityAddError (QString error) |
void | onEntityAdded (QString ID, Entity *entity) |
virtual void | onEntityAdded (QString uniqueID, Entity *entity)=0 |
This slot is called after the addEntity has success. More... | |
Signals | |
void | parseFinished () |
void | addEntity (QString type, QString parentEntityId, QMap< QString, QString > &atts, bool force) |
Signal emitted when the parser find a new entity. More... | |
Public Member Functions | |
NCLDocumentParser (Project *project) | |
bool | parseDocument () |
Parses the content of the document. More... | |
bool | parseContent (const QString &str) |
Parses the content of the string passed as parameter. More... | |
QString | getParserName () |
Returns the name of the Document Parser. More... | |
bool | serialize () |
Definition at line 28 of file NCLDocumentParser.h.
|
signalinherited |
Signal emitted when the parser find a new entity.
This function must be implemented by concrete Document Parsers.
type | the type of the entity (XML tagname). |
parentEntityId | uniqueId of the father. |
atts | attributes of this entity. |
force | true if the entity must be added even if this cause an error in the model. |
|
virtual |
Returns the name of the Document Parser.
This name should be unique. This function must be implemented by concrete Document Parsers.
Implements composer::extension::IDocumentParser.
Definition at line 25 of file NCLDocumentParser.cpp.
|
pure virtualslotinherited |
This slot is called after the addEntity has success.
This function must be implemented by concrete Document Parsers.
uniqueID | the unique id of the entity in the model. |
entity | the pointer to the entity. |
|
virtual |
Parses the content of the string passed as parameter.
This function must be implemented by concrete Document Parsers.
Implements composer::extension::IDocumentParser.
Definition at line 51 of file NCLDocumentParser.cpp.
|
virtual |
Parses the content of the document.
This function must be implemented by concrete Document Parsers.
Implements composer::extension::IDocumentParser.
Definition at line 30 of file NCLDocumentParser.cpp.