diff options
Diffstat (limited to 'drivers/gator/daemon/XMLReader.h')
-rw-r--r-- | drivers/gator/daemon/XMLReader.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/gator/daemon/XMLReader.h b/drivers/gator/daemon/XMLReader.h new file mode 100644 index 00000000000..ac0098add0a --- /dev/null +++ b/drivers/gator/daemon/XMLReader.h @@ -0,0 +1,27 @@ +/** + * 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 _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 |