b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | /** |
| 2 | * Copyright (C) ARM Limited 2010-2014. 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 | */ |
| 8 | |
| 9 | #ifndef __CAPTURED_XML_H__ |
| 10 | #define __CAPTURED_XML_H__ |
| 11 | |
| 12 | #include "mxml/mxml.h" |
| 13 | |
| 14 | class CapturedXML { |
| 15 | public: |
| 16 | CapturedXML(); |
| 17 | ~CapturedXML(); |
| 18 | char* getXML(bool includeTime); // the string should be freed by the caller |
| 19 | void write(char* path); |
| 20 | private: |
| 21 | mxml_node_t* getTree(bool includeTime); |
| 22 | }; |
| 23 | |
| 24 | const char * mxmlWhitespaceCB(mxml_node_t *node, int where); |
| 25 | |
| 26 | #endif //__CAPTURED_XML_H__ |