Mercurial > vba-clojure
comparison src/win32/7zip/7z/CPP/Common/MyXml.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // MyXml.h | |
2 | |
3 #ifndef __MYXML_H | |
4 #define __MYXML_H | |
5 | |
6 #include "MyString.h" | |
7 | |
8 struct CXmlProp | |
9 { | |
10 AString Name; | |
11 AString Value; | |
12 }; | |
13 | |
14 class CXmlItem | |
15 { | |
16 bool ParseItems(const AString &s, int &pos, int numAllowedLevels); | |
17 | |
18 public: | |
19 AString Name; | |
20 bool IsTag; | |
21 CObjectVector<CXmlProp> Props; | |
22 CObjectVector<CXmlItem> SubItems; | |
23 | |
24 bool ParseItem(const AString &s, int &pos, int numAllowedLevels); | |
25 | |
26 bool IsTagged(const AString &tag) const; | |
27 int FindProperty(const AString &propName) const; | |
28 AString GetPropertyValue(const AString &propName) const; | |
29 AString GetSubString() const; | |
30 int FindSubTag(const AString &tag) const; | |
31 AString GetSubStringForTag(const AString &tag) const; | |
32 }; | |
33 | |
34 struct CXml | |
35 { | |
36 CXmlItem Root; | |
37 bool Parse(const AString &s); | |
38 }; | |
39 | |
40 #endif |