ContextFileWriter.hh
562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* ContextFileWriter.hh
*
* Created on: 12 aug. 2015
* Author: AKKA
*/
#ifndef CONTEXTFILEWRITER_HH_
#define CONTEXTFILEWRITER_HH_
#include "PlotLogger.hh"
#include <libxml/xmlwriter.h>
namespace plot {
class ContextFileWriter {
public:
ContextFileWriter();
virtual ~ContextFileWriter();
bool initWriter(const char* filePath);
bool closeWriter();
bool startElement(const char* name);
bool endElement();
bool addAttribute(const char* name, const char* value);
private:
xmlTextWriterPtr _writer;
};
} /* namespace plot */
#endif