Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
bitfile
BitFileXMLWriter.cpp
Go to the documentation of this file.
1
6
#include <
bitfile/BitFileData.hpp
>
7
#include <
bitfile/BitFileXMLWriter.hpp
>
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
{
21
xmlWriter.
beginElement
(
TAGNAME_SOURCEFILENAME
);
22
xmlWriter.
addData
(bfd.
sourceFileName
(),
false
);
23
xmlWriter.
endElement
(
false
);
24
25
xmlWriter.
beginElement
(
TAGNAME_TARGETDEVICENAME
);
26
xmlWriter.
addData
(bfd.
targetDeviceName
(),
false
);
27
xmlWriter.
endElement
(
false
);
28
29
xmlWriter.
beginElement
(
TAGNAME_CREATIONDATE
);
30
xmlWriter.
addData
(bfd.
creationDate
(),
false
);
31
xmlWriter.
endElement
(
false
);
32
33
xmlWriter.
beginElement
(
TAGNAME_CREATIONTIME
);
34
xmlWriter.
addData
(bfd.
creationTime
(),
false
);
35
xmlWriter.
endElement
(
false
);
36
}
Generated on Wed Aug 8 2012 21:57:40 for Bitstream Interpretation Library (BIL) by
1.8.1.1