aboutsummaryrefslogtreecommitdiff
path: root/daemon/XMLReader.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/XMLReader.h')
-rw-r--r--daemon/XMLReader.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/daemon/XMLReader.h b/daemon/XMLReader.h
new file mode 100644
index 0000000..55f655b
--- /dev/null
+++ b/daemon/XMLReader.h
@@ -0,0 +1,27 @@
+/**
+ * Copyright (C) ARM Limited 2010-2011. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _XMLREADER_H
+#define _XMLREADER_H
+
+class XMLReader {
+public:
+ XMLReader(const char* xmlstring);
+ ~XMLReader();
+ char* nextTag();
+ void getAttribute(const char* name, char* value, int maxSize, const char* defValue);
+ int getAttributeAsInteger(const char* name, int defValue);
+ bool getAttributeAsBoolean(const char* name, bool defValue);
+ int getAttributeLength(const char* name);
+private:
+ char* mPtr;
+ bool mFirstTime, mNoMore;
+ char mEndXML[128];
+};
+
+#endif // _XMLREADER_H