#include <ogdf/fileformats/OgmlParser.h>
Public Member Functions | |
| bool | ownsCompulsiveTags () |
| bool | ownsChoiceTags () |
| bool | ownsOptionalTags () |
| const List< OgmlTag * > & | getCompulsiveTags () const |
| const List< OgmlTag * > & | getChoiceTags () const |
| const List< OgmlTag * > & | getOptionalTags () const |
| const int & | getMinOccurs () const |
| const int & | getMaxOccurs () const |
| const bool & | ignoresContent () const |
| void | setMinOccurs (int occurs) |
| void | setMaxOccurs (int occurs) |
| void | setIgnoreContent (bool ignore) |
| OgmlTag () | |
| OgmlTag (int id) | |
| ~OgmlTag () | |
| const int & | getId () const |
| const String & | getName () const |
| void | setId (int id) |
| void | printOwnedTags (ostream &os) const |
| void | printOwnedAttributes (ostream &os) const |
| void | pushAttributes (int mode, Hashing< int, OgmlAttribute > &attrib, int key,...) |
| void | pushTags (int mode, Hashing< int, OgmlTag > &tag, int key,...) |
| int | validTag (const XmlTagObject &o, Hashing< String, const XmlTagObject * > &ids) const |
Private Member Functions | |
| void | printOwnedTags (ostream &os, int mode) const |
| void | printOwnedAttributes (ostream &os, int mode) const |
Private Attributes | |
| int | id |
| int | minOccurs |
| int | maxOccurs |
| bool | ignoreContent |
| List< OgmlAttribute * > | compulsiveAttributes |
| List< OgmlAttribute * > | choiceAttributes |
| List< OgmlAttribute * > | optionalAttributes |
| List< OgmlTag * > | compulsiveTags |
| List< OgmlTag * > | choiceTags |
| List< OgmlTag * > | optionalTags |
Objects of this class represent a tag in Ogml with attributes.
Definition at line 511 of file OgmlParser.h.
| ogdf::OgmlTag::OgmlTag | ( | ) | [inline] |
Definition at line 640 of file OgmlParser.h.
| ogdf::OgmlTag::OgmlTag | ( | int | id | ) | [inline] |
Definition at line 641 of file OgmlParser.h.
| ogdf::OgmlTag::~OgmlTag | ( | ) | [inline] |
Definition at line 646 of file OgmlParser.h.
| const List<OgmlTag*>& ogdf::OgmlTag::getChoiceTags | ( | ) | const [inline] |
Definition at line 622 of file OgmlParser.h.
| const List<OgmlTag*>& ogdf::OgmlTag::getCompulsiveTags | ( | ) | const [inline] |
Definition at line 620 of file OgmlParser.h.
| const int& ogdf::OgmlTag::getId | ( | ) | const [inline] |
Definition at line 648 of file OgmlParser.h.
| const int& ogdf::OgmlTag::getMaxOccurs | ( | ) | const [inline] |
Definition at line 629 of file OgmlParser.h.
| const int& ogdf::OgmlTag::getMinOccurs | ( | ) | const [inline] |
Definition at line 627 of file OgmlParser.h.
| const String& ogdf::OgmlTag::getName | ( | ) | const [inline] |
Definition at line 649 of file OgmlParser.h.
| const List<OgmlTag*>& ogdf::OgmlTag::getOptionalTags | ( | ) | const [inline] |
Definition at line 624 of file OgmlParser.h.
| const bool& ogdf::OgmlTag::ignoresContent | ( | ) | const [inline] |
Definition at line 631 of file OgmlParser.h.
| bool ogdf::OgmlTag::ownsChoiceTags | ( | ) | [inline] |
Definition at line 612 of file OgmlParser.h.
| bool ogdf::OgmlTag::ownsCompulsiveTags | ( | ) | [inline] |
Definition at line 608 of file OgmlParser.h.
| bool ogdf::OgmlTag::ownsOptionalTags | ( | ) | [inline] |
Definition at line 616 of file OgmlParser.h.
| void ogdf::OgmlTag::printOwnedAttributes | ( | ostream & | os, |
| int | mode | ||
| ) | const [inline, private] |
Definition at line 574 of file OgmlParser.h.
| void ogdf::OgmlTag::printOwnedAttributes | ( | ostream & | os | ) | const [inline] |
Definition at line 663 of file OgmlParser.h.
| void ogdf::OgmlTag::printOwnedTags | ( | ostream & | os, |
| int | mode | ||
| ) | const [inline, private] |
Definition at line 543 of file OgmlParser.h.
| void ogdf::OgmlTag::printOwnedTags | ( | ostream & | os | ) | const [inline] |
Definition at line 657 of file OgmlParser.h.
| void ogdf::OgmlTag::pushAttributes | ( | int | mode, |
| Hashing< int, OgmlAttribute > & | attrib, | ||
| int | key, | ||
| ... | |||
| ) | [inline] |
Pushes pointers to OgmlAttribute objects back to list reqAttributes. These value objects are looked up in hashtable attrib.
NOTE: This method uses a variable parameter list. The last parameter need to be -1!
Definition at line 675 of file OgmlParser.h.
| void ogdf::OgmlTag::pushTags | ( | int | mode, |
| Hashing< int, OgmlTag > & | tag, | ||
| int | key, | ||
| ... | |||
| ) | [inline] |
Pushes pointers to OgmlAttribute objects back to list reqAttributes. These value objects are looked up in hashtable attrib.
NOTE: This method uses a variable parameter list. The last parameter need to be -1!
Definition at line 700 of file OgmlParser.h.
| void ogdf::OgmlTag::setId | ( | int | id | ) | [inline] |
Definition at line 651 of file OgmlParser.h.
| void ogdf::OgmlTag::setIgnoreContent | ( | bool | ignore | ) | [inline] |
Definition at line 637 of file OgmlParser.h.
| void ogdf::OgmlTag::setMaxOccurs | ( | int | occurs | ) | [inline] |
Definition at line 635 of file OgmlParser.h.
| void ogdf::OgmlTag::setMinOccurs | ( | int | occurs | ) | [inline] |
Definition at line 633 of file OgmlParser.h.
| int ogdf::OgmlTag::validTag | ( | const XmlTagObject & | o, |
| Hashing< String, const XmlTagObject * > & | ids | ||
| ) | const [inline] |
This method proofs whether o is a valid tag in comparison to this object. That means if the name of o and this object are equal and if the attribute list of o is valid (see also validAttribute(...) in OgmlAttribute.h). Otherwise false.
Definition at line 726 of file OgmlParser.h.
List<OgmlAttribute*> ogdf::OgmlTag::choiceAttributes [private] |
Represents the attributes of this object of which at least one needs to exist.
Definition at line 531 of file OgmlParser.h.
List<OgmlTag*> ogdf::OgmlTag::choiceTags [private] |
Definition at line 538 of file OgmlParser.h.
List<OgmlAttribute*> ogdf::OgmlTag::compulsiveAttributes [private] |
Represents the compulsive attributes of this object.
Definition at line 527 of file OgmlParser.h.
List<OgmlTag*> ogdf::OgmlTag::compulsiveTags [private] |
Definition at line 536 of file OgmlParser.h.
int ogdf::OgmlTag::id [private] |
Integer identifier of object. For possible ids see Ogml.h.
Definition at line 516 of file OgmlParser.h.
bool ogdf::OgmlTag::ignoreContent [private] |
Flag denotes whether tag content can be ignored. It is possible to exchange this flag by a list of contents for more complex purposes ;-)
Definition at line 524 of file OgmlParser.h.
int ogdf::OgmlTag::maxOccurs [private] |
Definition at line 519 of file OgmlParser.h.
int ogdf::OgmlTag::minOccurs [private] |
Min. occurs and max. occurs of this tag.
Definition at line 519 of file OgmlParser.h.
List<OgmlAttribute*> ogdf::OgmlTag::optionalAttributes [private] |
Represents the optional attributes of this object.
Definition at line 534 of file OgmlParser.h.
List<OgmlTag*> ogdf::OgmlTag::optionalTags [private] |
Definition at line 540 of file OgmlParser.h.