Mike Dodd | 8cfa702 | 2010-11-17 11:12:26 -0800 | [diff] [blame] | 1 | /** |
| 2 | * @file xml_output.h |
| 3 | * utility routines for writing XML |
| 4 | * |
| 5 | * @remark Copyright 2006 OProfile authors |
| 6 | * @remark Read the file COPYING |
| 7 | * |
| 8 | * @author Dave Nomura |
| 9 | */ |
| 10 | |
| 11 | #ifndef XML_OUTPUT_H |
| 12 | #define XML_OUTPUT_H |
| 13 | #include "op_xml_out.h" |
| 14 | |
| 15 | std::string tag_name(tag_t tag); |
| 16 | std::string open_element(tag_t tag, bool with_attrs = false); |
| 17 | std::string close_element(tag_t tag = NONE, bool has_nested = false); |
| 18 | std::string init_attr(tag_t attr, size_t value); |
| 19 | std::string init_attr(tag_t attr, double value); |
| 20 | std::string init_attr(tag_t attr, std::string const & str); |
| 21 | |
| 22 | #endif /* XML_OUTPUT_H */ |