summaryrefslogtreecommitdiff
path: root/tools/gator/daemon/ConfigurationXML.h
diff options
context:
space:
mode:
authorJon Medhurst <tixy@linaro.org>2012-10-24 17:57:28 +0100
committerJon Medhurst <tixy@linaro.org>2012-11-13 09:24:52 +0000
commit610039a796ef8b40df03c93cae9498bbad0939e8 (patch)
treeaee871c4173d9f7d92d8dbd1f3d378442d4b0bf3 /tools/gator/daemon/ConfigurationXML.h
parent77b67063bb6bce6d475e910d3b886a606d0d91f7 (diff)
gator: Version 5.12
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'tools/gator/daemon/ConfigurationXML.h')
-rw-r--r--tools/gator/daemon/ConfigurationXML.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/gator/daemon/ConfigurationXML.h b/tools/gator/daemon/ConfigurationXML.h
new file mode 100644
index 00000000000..66ad587320a
--- /dev/null
+++ b/tools/gator/daemon/ConfigurationXML.h
@@ -0,0 +1,32 @@
+/**
+ * Copyright (C) ARM Limited 2010-2012. 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 COUNTERS_H
+#define COUNTERS_H
+
+#include "mxml/mxml.h"
+
+class ConfigurationXML {
+public:
+ static void getDefaultConfigurationXml(const char * & xml, unsigned int & len);
+
+ ConfigurationXML();
+ ~ConfigurationXML();
+ const char* getConfigurationXML() {return mConfigurationXML;}
+ void validate(void);
+
+private:
+ char* mConfigurationXML;
+ int mIndex;
+
+ int parse(const char* xmlFile);
+ int configurationsTag(mxml_node_t *node);
+ void configurationTag(mxml_node_t *node);
+};
+
+#endif // COUNTERS_H