view src/win32/7zip/7z/CPP/Common/MyXml.h @ 3:b05d00f19d80

fix some formatting
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:33:11 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 // MyXml.h
3 #ifndef __MYXML_H
4 #define __MYXML_H
6 #include "MyString.h"
8 struct CXmlProp
9 {
10 AString Name;
11 AString Value;
12 };
14 class CXmlItem
15 {
16 bool ParseItems(const AString &s, int &pos, int numAllowedLevels);
18 public:
19 AString Name;
20 bool IsTag;
21 CObjectVector<CXmlProp> Props;
22 CObjectVector<CXmlItem> SubItems;
24 bool ParseItem(const AString &s, int &pos, int numAllowedLevels);
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 };
34 struct CXml
35 {
36 CXmlItem Root;
37 bool Parse(const AString &s);
38 };
40 #endif