Bitstream Interpretation Library (BIL)  0.1
BitFileXMLWriter.cpp
Go to the documentation of this file.
1 
8 #include <util/XMLWriter.hpp>
9 
10 using namespace bil;
11 
12 
13 const char TAGNAME_SOURCEFILENAME[] = "sourcefilename";
14 const char TAGNAME_TARGETDEVICENAME[] = "targetdevicename";
15 const char TAGNAME_CREATIONDATE[] = "creationdate";
16 const char TAGNAME_CREATIONTIME[] = "creationtime";
17 
18 
19 void bil::writeBitFileMetaXML(const BitFileData& bfd, XMLWriter& xmlWriter)
20 {
22  xmlWriter.addData(bfd.sourceFileName(), false);
23  xmlWriter.endElement(false);
24 
26  xmlWriter.addData(bfd.targetDeviceName(), false);
27  xmlWriter.endElement(false);
28 
30  xmlWriter.addData(bfd.creationDate(), false);
31  xmlWriter.endElement(false);
32 
34  xmlWriter.addData(bfd.creationTime(), false);
35  xmlWriter.endElement(false);
36 }