Commit fe17f8ef95bb458fb086c7078fc7d1e9d2655839
1 parent
4a66da4c
rename Tag into Markup
Showing
1 changed file
with
17 additions
and
16 deletions
include/GXml.hpp
| ... | ... | @@ -30,6 +30,8 @@ |
| 30 | 30 | * @class GXml |
| 31 | 31 | * |
| 32 | 32 | * @brief XML class interface defintion. |
| 33 | + * | |
| 34 | + * This class implements an XML document. It holds the root node. | |
| 33 | 35 | ***************************************************************************/ |
| 34 | 36 | class GXml { |
| 35 | 37 | |
| ... | ... | @@ -58,25 +60,24 @@ public: |
| 58 | 60 | |
| 59 | 61 | protected: |
| 60 | 62 | // Protected enumerators |
| 61 | - enum TagType { | |
| 62 | - TT_ELEMENT_START, | |
| 63 | - TT_ELEMENT_END, | |
| 64 | - TT_ELEMENT_EMPTY, | |
| 65 | - TT_COMMENT, | |
| 66 | - TT_DECLARATION, | |
| 67 | - TT_PROCESSING, | |
| 68 | - TT_INVALID | |
| 63 | + enum MarkupType { | |
| 64 | + MT_ELEMENT_START, | |
| 65 | + MT_ELEMENT_END, | |
| 66 | + MT_ELEMENT_EMPTY, | |
| 67 | + MT_COMMENT, | |
| 68 | + MT_DECLARATION, | |
| 69 | + MT_PROCESSING, | |
| 70 | + MT_INVALID | |
| 69 | 71 | }; |
| 70 | 72 | |
| 71 | 73 | // Protected methods |
| 72 | - void init_members(void); | |
| 73 | - void copy_members(const GXml& xml); | |
| 74 | - void free_members(void); | |
| 75 | - void parse(FILE* fptr); | |
| 76 | - void process_tag(GXmlNode** current, const std::string& segment); | |
| 77 | - void process_text(GXmlNode** current, const std::string& segment); | |
| 78 | - TagType get_tagtype(const std::string& segment) const; | |
| 79 | - bool is_whitespace(const int& c) const; | |
| 74 | + void init_members(void); | |
| 75 | + void copy_members(const GXml& xml); | |
| 76 | + void free_members(void); | |
| 77 | + void parse(FILE* fptr); | |
| 78 | + void process_markup(GXmlNode** current, const std::string& segment); | |
| 79 | + void process_text(GXmlNode** current, const std::string& segment); | |
| 80 | + MarkupType get_markuptype(const std::string& segment) const; | |
| 80 | 81 | |
| 81 | 82 | // Protected data members |
| 82 | 83 | GXmlDocument m_root; //!< Root node | ... | ... |