summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmXMLParser.h')
-rw-r--r--Source/cmXMLParser.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h
index e72da66..6aae81d 100644
--- a/Source/cmXMLParser.h
+++ b/Source/cmXMLParser.h
@@ -14,11 +14,10 @@
#include "cmStandardIncludes.h"
-extern "C"
-{
- void cmXMLParserStartElement(void*, const char*, const char**);
- void cmXMLParserEndElement(void*, const char*);
- void cmXMLParserCharacterDataHandler(void*, const char*, int);
+extern "C" {
+void cmXMLParserStartElement(void*, const char*, const char**);
+void cmXMLParserEndElement(void*, const char*);
+void cmXMLParserCharacterDataHandler(void*, const char*, int);
}
/** \class cmXMLParser
@@ -52,18 +51,19 @@ public:
virtual int CleanupParser();
typedef void (*ReportFunction)(int, const char*, void*);
void SetErrorCallback(ReportFunction f, void* d)
- {
- this->ReportCallback = f;
- this->ReportCallbackData = d;
- }
+ {
+ this->ReportCallback = f;
+ this->ReportCallbackData = d;
+ }
+
protected:
//! This variable is true if there was a parse error while parsing in
- //chunks.
+ // chunks.
int ParseError;
ReportFunction ReportCallback;
void* ReportCallbackData;
- //1 Expat parser structure. Exists only during call to Parse().
+ // 1 Expat parser structure. Exists only during call to Parse().
void* Parser;
/**
@@ -84,7 +84,7 @@ protected:
virtual void StartElement(const std::string& name, const char** atts);
//! Called at the end of an element in the XML source opened when
- //StartElement was called.
+ // StartElement was called.
virtual void EndElement(const std::string& name);
//! Called when there is character data to handle.
@@ -101,8 +101,7 @@ protected:
static int IsSpace(char c);
//! Send the given buffer to the XML parser.
- virtual int ParseBuffer(const char* buffer,
- std::string::size_type length);
+ virtual int ParseBuffer(const char* buffer, std::string::size_type length);
//! Send the given c-style string to the XML parser.
int ParseBuffer(const char* buffer);