1 /**
2 * Copyright (C) ARM Limited 2010-2012. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef _XMLREADER_H
10 #define _XMLREADER_H
12 class XMLReader {
13 public:
14 XMLReader(const char* xmlstring);
15 ~XMLReader();
16 char* nextTag();
17 void getAttribute(const char* name, char* value, int maxSize, const char* defValue);
18 int getAttributeAsInteger(const char* name, int defValue);
19 bool getAttributeAsBoolean(const char* name, bool defValue);
20 int getAttributeLength(const char* name);
21 private:
22 char* mPtr;
23 bool mFirstTime, mNoMore;
24 char mEndXML[128];
25 };
27 #endif // _XMLREADER_H