XMLTextParser.h
Go to the documentation of this file.00001 00011 #ifndef __XMLTextParser_H__ 00012 #define __XMLTextParser_H__ 00013 00014 // Includes 00015 #include "Array.h" 00016 #include "StringId.h" 00017 #include "DynamicBuffer.h" 00018 00019 // Forward declares 00020 class XMLObject; 00021 class Asset; 00022 00023 // XMLTextParser 00024 class XMLTextParser 00025 { 00026 public: 00027 00031 void Parse( 00032 const Asset& asset, 00033 XMLObject* xmlObject); 00034 00035 private: 00039 void PushXMLObject(XMLObject* object, StringId name); 00040 00044 bool PopXMLObject(); 00045 00049 XMLObject* TopXMLObject(); 00050 00054 StringId TopName(); 00055 00056 00057 private: 00058 // XMLObjectStackEntry 00059 class XMLObjectStackEntry 00060 { 00061 public: 00062 XMLObject* object; 00063 StringId name; 00064 DynamicBuffer bufferedText; 00065 00066 }; 00067 Array<XMLObjectStackEntry> xmlObjects_; 00068 00069 }; 00070 00071 #endif /* __XMLTextParser_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
