Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 244 | chris | 1 | #ifndef __SEXYAPPFRAMEWORK_NO_PROPERTIES_PARSER__ |
| 2 | #ifndef __PROPERTIESPARSER_H__ |
||
| 3 | #define __PROPERTIESPARSER_H__ |
||
| 4 | |||
| 5 | #include "SexyAppBase.h" |
||
| 6 | |||
| 7 | namespace Sexy |
||
| 8 | { |
||
| 9 | |||
| 10 | class XMLParser; |
||
| 11 | |||
| 12 | class PropertiesParser |
||
| 13 | { |
||
| 14 | public: |
||
| 15 | SexyAppBase* mApp; |
||
| 16 | XMLParser* mXMLParser; |
||
| 17 | SexyString mError; |
||
| 18 | bool mHasFailed; |
||
| 19 | |||
| 20 | protected: |
||
| 21 | void Fail(const SexyString& theErrorText); |
||
| 22 | |||
| 23 | bool ParseSingleElement(SexyString* theString); |
||
| 24 | bool ParseStringArray(StringVector* theStringVector); |
||
| 25 | bool ParseProperties(); |
||
| 26 | bool DoParseProperties(); |
||
| 27 | |||
| 28 | public: |
||
| 29 | PropertiesParser(SexyAppBase* theApp); |
||
| 30 | virtual ~PropertiesParser(); |
||
| 31 | |||
| 32 | bool ParsePropertiesFile(const std::string& theFilename); |
||
| 33 | bool ParsePropertiesBuffer(const Buffer& theBuffer); |
||
| 34 | SexyString GetErrorText(); |
||
| 35 | }; |
||
| 36 | |||
| 37 | } |
||
| 38 | |||
| 39 | #endif //__PROPERTIESPARSER_H__ |
||
| 40 | |||
| 41 | #endif // __SEXYAPPFRAMEWORK_NO_PROPERTIES_PARSER__ |