rlm@1: // MyXml.h rlm@1: rlm@1: #ifndef __MYXML_H rlm@1: #define __MYXML_H rlm@1: rlm@1: #include "MyString.h" rlm@1: rlm@1: struct CXmlProp rlm@1: { rlm@1: AString Name; rlm@1: AString Value; rlm@1: }; rlm@1: rlm@1: class CXmlItem rlm@1: { rlm@1: bool ParseItems(const AString &s, int &pos, int numAllowedLevels); rlm@1: rlm@1: public: rlm@1: AString Name; rlm@1: bool IsTag; rlm@1: CObjectVector Props; rlm@1: CObjectVector SubItems; rlm@1: rlm@1: bool ParseItem(const AString &s, int &pos, int numAllowedLevels); rlm@1: rlm@1: bool IsTagged(const AString &tag) const; rlm@1: int FindProperty(const AString &propName) const; rlm@1: AString GetPropertyValue(const AString &propName) const; rlm@1: AString GetSubString() const; rlm@1: int FindSubTag(const AString &tag) const; rlm@1: AString GetSubStringForTag(const AString &tag) const; rlm@1: }; rlm@1: rlm@1: struct CXml rlm@1: { rlm@1: CXmlItem Root; rlm@1: bool Parse(const AString &s); rlm@1: }; rlm@1: rlm@1: #endif