Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
bitfile
BitFileData.cpp
Go to the documentation of this file.
1
6
#include <
bitfile/BitFileData.hpp
>
7
8
using namespace
bil;
9
10
11
std::string&
BitFileData::sourceFileName
()
12
{
13
return
m_sourceFileName;
14
}
15
16
17
const
std::string&
BitFileData::sourceFileName
()
const
18
{
19
return
m_sourceFileName;
20
}
21
22
23
std::string&
BitFileData::targetDeviceName
()
24
{
25
return
m_targetDeviceName;
26
}
27
28
29
const
std::string&
BitFileData::targetDeviceName
()
const
30
{
31
return
m_targetDeviceName;
32
}
33
34
35
std::string&
BitFileData::creationDate
()
36
{
37
return
m_creationDate;
38
}
39
40
41
const
std::string&
BitFileData::creationDate
()
const
42
{
43
return
m_creationDate;
44
}
45
46
47
std::string&
BitFileData::creationTime
()
48
{
49
return
m_creationTime;
50
}
51
52
53
const
std::string&
BitFileData::creationTime
()
const
54
{
55
return
m_creationTime;
56
}
57
58
59
void
BitFileData::bitstreamWordCount
(
size_t
size)
60
{
61
m_bitstream.resize(size);
62
}
63
64
65
size_t
BitFileData::bitstreamWordCount
()
const
66
{
67
return
m_bitstream.size();
68
}
69
70
71
boost::uint32_t*
BitFileData::bitstreamWords
()
72
{
73
// if there is bitstream data, return pointer to it
74
if
(0 < m_bitstream.size())
return
&(m_bitstream[0]);
75
else
return
0;
76
}
77
78
79
const
boost::uint32_t*
BitFileData::bitstreamWords
()
const
80
{
81
// if there is bitstream data, return pointer to it
82
if
(0 < m_bitstream.size())
return
&(m_bitstream[0]);
83
else
return
0;
84
}
85
86
87
void
BitFileData::clear
()
88
{
89
m_sourceFileName.clear();
90
m_targetDeviceName.clear();
91
m_creationDate.clear();
92
m_creationTime.clear();
93
m_bitstream.clear();
94
}
Generated on Wed Aug 8 2012 21:57:40 for Bitstream Interpretation Library (BIL) by
1.8.1.1