Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
XMLModel () | |
XMLModel (const QString &filename) | |
virtual | ~XMLModel () |
void | beginLoadChildNode (const QString &nodeName) |
void | beginSaveChildNode (const QString &tag) |
QString | documentText () const |
void | endLoadChildNode () |
void | endSaveChildNode () |
QStringList | getChildrenNames () const |
QDomElement | getCurrentElement () const |
Model::NodeIdType | getId () const |
QString | getName () const |
QString | getType () const |
bool | goToElement (Model::NodeIdType id, bool startFromRoot=true) |
void | goToFirstChild () |
void | goToParent () |
void | goToRoot () |
bool | hasChild (const QString &nodeName) const |
bool | hasChildren () const |
bool | hasNext () const |
void | importChildFromXML (QDomElement child) |
bool | isDouble () const |
bool | isInteger () const |
bool | isString () const |
double | loadDoubleValue () const |
int | loadIntValue () const |
void | loadNext () |
QString | loadStringValue () const |
void | saveDoubleValue (double value) |
void | saveIntValue (int value) |
void | saveNext (const QString &tag) |
void | saveStringValue (const QString &value) |
void | setDocumentText (const QString &text) |
void | setId (Model::NodeIdType id) |
void | setName (const QString &name) |
Private Attributes | |
QDomDocument | doc |
QDomElement | elem |
QList< QDomElement > | elemStack |
Static Private Attributes | |
static const int | MAX_DOUBLE_PRECISION = 15 |
static const char * | XML_DOM_TYPE = "EnvisionFilePersistence" |
FilePersistence::XMLModel::XMLModel | ( | ) |
FilePersistence::XMLModel::XMLModel | ( | const QString & | filename | ) |
|
virtual |
void FilePersistence::XMLModel::beginLoadChildNode | ( | const QString & | nodeName | ) |
void FilePersistence::XMLModel::beginSaveChildNode | ( | const QString & | tag | ) |
QString FilePersistence::XMLModel::documentText | ( | ) | const |
void FilePersistence::XMLModel::endLoadChildNode | ( | ) |
void FilePersistence::XMLModel::endSaveChildNode | ( | ) |
QStringList FilePersistence::XMLModel::getChildrenNames | ( | ) | const |
QDomElement FilePersistence::XMLModel::getCurrentElement | ( | ) | const |
Model::NodeIdType FilePersistence::XMLModel::getId | ( | ) | const |
QString FilePersistence::XMLModel::getName | ( | ) | const |
QString FilePersistence::XMLModel::getType | ( | ) | const |
bool FilePersistence::XMLModel::goToElement | ( | Model::NodeIdType | id, |
bool | startFromRoot = true |
||
) |
void FilePersistence::XMLModel::goToFirstChild | ( | ) |
void FilePersistence::XMLModel::goToParent | ( | ) |
void FilePersistence::XMLModel::goToRoot | ( | ) |
bool FilePersistence::XMLModel::hasChild | ( | const QString & | nodeName | ) | const |
bool FilePersistence::XMLModel::hasChildren | ( | ) | const |
bool FilePersistence::XMLModel::hasNext | ( | ) | const |
void FilePersistence::XMLModel::importChildFromXML | ( | QDomElement | child | ) |
bool FilePersistence::XMLModel::isDouble | ( | ) | const |
bool FilePersistence::XMLModel::isInteger | ( | ) | const |
bool FilePersistence::XMLModel::isString | ( | ) | const |
double FilePersistence::XMLModel::loadDoubleValue | ( | ) | const |
int FilePersistence::XMLModel::loadIntValue | ( | ) | const |
void FilePersistence::XMLModel::loadNext | ( | ) |
QString FilePersistence::XMLModel::loadStringValue | ( | ) | const |
void FilePersistence::XMLModel::saveDoubleValue | ( | double | value | ) |
void FilePersistence::XMLModel::saveIntValue | ( | int | value | ) |
void FilePersistence::XMLModel::saveNext | ( | const QString & | tag | ) |
void FilePersistence::XMLModel::saveStringValue | ( | const QString & | value | ) |
void FilePersistence::XMLModel::setDocumentText | ( | const QString & | text | ) |
void FilePersistence::XMLModel::setId | ( | Model::NodeIdType | id | ) |
void FilePersistence::XMLModel::setName | ( | const QString & | name | ) |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |