mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 02:07:07 -06:00
4.59 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
3901bf0ab8
commit
173c07e166
40
CPP/Common/MyXml.h
Executable file
40
CPP/Common/MyXml.h
Executable file
@@ -0,0 +1,40 @@
|
||||
// MyXml.h
|
||||
|
||||
#ifndef __MYXML_H
|
||||
#define __MYXML_H
|
||||
|
||||
#include "MyString.h"
|
||||
|
||||
struct CXmlProp
|
||||
{
|
||||
AString Name;
|
||||
AString Value;
|
||||
};
|
||||
|
||||
class CXmlItem
|
||||
{
|
||||
bool ParseItems(const AString &s, int &pos, int numAllowedLevels);
|
||||
|
||||
public:
|
||||
AString Name;
|
||||
bool IsTag;
|
||||
CObjectVector<CXmlProp> Props;
|
||||
CObjectVector<CXmlItem> SubItems;
|
||||
|
||||
bool ParseItem(const AString &s, int &pos, int numAllowedLevels);
|
||||
|
||||
bool IsTagged(const AString &tag) const;
|
||||
int FindProperty(const AString &propName) const;
|
||||
AString GetPropertyValue(const AString &propName) const;
|
||||
AString GetSubString() const;
|
||||
int FindSubTag(const AString &tag) const;
|
||||
AString GetSubStringForTag(const AString &tag) const;
|
||||
};
|
||||
|
||||
struct CXml
|
||||
{
|
||||
CXmlItem Root;
|
||||
bool Parse(const AString &s);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user