#include <ogdf/fileformats/XmlParser.h>
List of all members.
Public Types |
| enum | PredefinedKey {
idPredefKey = 0,
labelPredefKey,
CreatorPredefKey,
namePredefKey,
graphPredefKey,
versionPredefKey,
directedPredefKey,
nodePredefKey,
edgePredefKey,
graphicsPredefKey,
xPredefKey,
yPredefKey,
wPredefKey,
hPredefKey,
nodetypePredefKey,
edgetypePredefKey,
typePredefKey,
widthPredefKey,
heightPredefKey,
sizePredefKey,
positionPredefKey,
pathPredefKey,
sourcePredefKey,
targetPredefKey,
sensePredefKey,
arrowPredefKey,
LinePredefKey,
pointPredefKey,
NEXTPREDEFKEY
} |
Public Member Functions |
| | XmlParser (const char *fileName, bool doCheck=false) |
| | XmlParser (istream &is, bool doCheck=false) |
| | ~XmlParser () |
| XmlObject * | root () |
| int | getId (const String &tag) const |
| int | id (XmlObject *object) const |
| bool | error () const |
| const String & | errorString () const |
| bool | read (Graph &G) |
| bool | read (Graph &G, GraphAttributes &AG) |
Private Member Functions |
| void | createObjectTree (istream &is, bool doCheck) |
| void | initPredefinedKeys () |
| void | setError (const char *errorString) |
| XmlObject * | parseList (XmlObjectType closingKey, XmlObjectType errorKey, const char *objectBodyName) |
| XmlObjectType | getNextSymbol () |
| bool | getLine () |
| XmlKey | hashString (const String &str) |
| XmlObject * | getNodeIdRange (int &minId, int &maxId, int &nodetypeCount, XmlObject *graphObject) |
| bool | makeIdMap (int maxId, Array< char * > &idMap, int nodetypeCount, Array< char * > &typeName, Array< double > &typeWidth, Array< double > &typeHeight, XmlObject *graphObject) |
| void | closeLabels (Array< char * > idMap, Array< char * > typeName) |
| void | readLineAttribute (XmlObject *object, DPolyline &dpl) |
| void | destroyObjectList (XmlObject *object) |
| void | indent (ostream &os, int d) |
| void | output (ostream &os, XmlObject *object, int d) |
Private Attributes |
| Hashing< String, int > | m_hashTable |
| int | m_num |
| istream * | m_is |
| bool | m_error |
| String | m_errorString |
| char * | m_rLineBuffer |
| char * | m_lineBuffer |
| char * | m_pCurrent |
| char * | m_pStore |
| char | m_cStore |
| int | m_intSymbol |
| double | m_doubleSymbol |
| const char * | m_stringSymbol |
| char * | m_keyName |
| XmlKey | m_keySymbol |
| String | m_longString |
| bool | m_eoTag |
| XmlObject * | m_objectTree |
| bool | m_doCheck |
| SList< char * > | m_objectBody |
Detailed Description
Definition at line 73 of file XmlParser.h.
Member Enumeration Documentation
- Enumerator:
| idPredefKey |
|
| labelPredefKey |
|
| CreatorPredefKey |
|
| namePredefKey |
|
| graphPredefKey |
|
| versionPredefKey |
|
| directedPredefKey |
|
| nodePredefKey |
|
| edgePredefKey |
|
| graphicsPredefKey |
|
| xPredefKey |
|
| yPredefKey |
|
| wPredefKey |
|
| hPredefKey |
|
| nodetypePredefKey |
|
| edgetypePredefKey |
|
| typePredefKey |
|
| widthPredefKey |
|
| heightPredefKey |
|
| sizePredefKey |
|
| positionPredefKey |
|
| pathPredefKey |
|
| sourcePredefKey |
|
| targetPredefKey |
|
| sensePredefKey |
|
| arrowPredefKey |
|
| LinePredefKey |
|
| pointPredefKey |
|
| NEXTPREDEFKEY |
|
Definition at line 91 of file XmlParser.h.
Constructor & Destructor Documentation
| ogdf::XmlParser::XmlParser |
( |
const char * |
fileName, |
|
|
bool |
doCheck = false | |
|
) |
| | |
| ogdf::XmlParser::XmlParser |
( |
istream & |
is, |
|
|
bool |
doCheck = false | |
|
) |
| | |
| ogdf::XmlParser::~XmlParser |
( |
|
) |
|
Member Function Documentation
| void ogdf::XmlParser::closeLabels |
( |
Array< char * > |
idMap, |
|
|
Array< char * > |
typeName | |
|
) |
| | [private] |
| void ogdf::XmlParser::createObjectTree |
( |
istream & |
is, |
|
|
bool |
doCheck | |
|
) |
| | [private] |
| void ogdf::XmlParser::destroyObjectList |
( |
XmlObject * |
object |
) |
[private] |
| bool ogdf::XmlParser::error |
( |
|
) |
const [inline] |
| const String& ogdf::XmlParser::errorString |
( |
|
) |
const [inline] |
| int ogdf::XmlParser::getId |
( |
const String & |
tag |
) |
const [inline] |
| bool ogdf::XmlParser::getLine |
( |
|
) |
[private] |
| XmlObject* ogdf::XmlParser::getNodeIdRange |
( |
int & |
minId, |
|
|
int & |
maxId, |
|
|
int & |
nodetypeCount, |
|
|
XmlObject * |
graphObject | |
|
) |
| | [private] |
| XmlKey ogdf::XmlParser::hashString |
( |
const String & |
str |
) |
[private] |
| int ogdf::XmlParser::id |
( |
XmlObject * |
object |
) |
const [inline] |
| void ogdf::XmlParser::indent |
( |
ostream & |
os, |
|
|
int |
d | |
|
) |
| | [private] |
| void ogdf::XmlParser::initPredefinedKeys |
( |
|
) |
[private] |
| bool ogdf::XmlParser::makeIdMap |
( |
int |
maxId, |
|
|
Array< char * > & |
idMap, |
|
|
int |
nodetypeCount, |
|
|
Array< char * > & |
typeName, |
|
|
Array< double > & |
typeWidth, |
|
|
Array< double > & |
typeHeight, |
|
|
XmlObject * |
graphObject | |
|
) |
| | [private] |
| void ogdf::XmlParser::output |
( |
ostream & |
os, |
|
|
XmlObject * |
object, |
|
|
int |
d | |
|
) |
| | [private] |
| bool ogdf::XmlParser::read |
( |
Graph & |
G |
) |
|
| XmlObject* ogdf::XmlParser::root |
( |
|
) |
[inline] |
| void ogdf::XmlParser::setError |
( |
const char * |
errorString |
) |
[private] |
Member Data Documentation
The documentation for this class was generated from the following file: