-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathBinary.cpp
123 lines (108 loc) · 2.03 KB
/
Binary.cpp
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#include "Binary.hpp"
#include <iostream>
#include "FileReader.hpp"
/**
* @brief Default constructor.
*
* This constructor provides a Binary file with empty elements.
*/
Pex::Binary::Binary()
{
}
/**
* @brief Default destructor.
*
*/
Pex::Binary::~Binary()
{
}
/**
* @brief Retrieve the Header part of the Binary
*
* @return a const Header.
*/
const Pex::Header &Pex::Binary::getHeader() const
{
return m_Header;
}
/**
* @brief Retrieve the Header part of the Binary
*
* @return a modifiable Header.
*/
Pex::Header &Pex::Binary::getHeader()
{
return m_Header;
}
/**
* @brief Retrieve the StringTable associated with the Binary
*
* @return a const string table.
*/
const Pex::StringTable &Pex::Binary::getStringTable() const
{
return m_StringTable;
}
/**
* @brief Retrieve the StringTable associated with the Binary
*
* @return a modifiable string table.
*/
Pex::StringTable &Pex::Binary::getStringTable()
{
return m_StringTable;
}
/**
* @brief Retrieve the debug info associated with the Binary.
*
* @return a const DebugInfo
*/
const Pex::DebugInfo &Pex::Binary::getDebugInfo() const
{
return m_DebugInfo;
}
/**
* @brief Retrieve the debug info associated with the Binary.
*
* @return a modifiable DebugInfo
*/
Pex::DebugInfo &Pex::Binary::getDebugInfo()
{
return m_DebugInfo;
}
/**
* @brief Retrieve the user flags definition stored in the Binary
*
* @return a const UserFlags;
*/
const Pex::UserFlags &Pex::Binary::getUserFlags() const
{
return m_UserFlags;
}
/**
* @brief Retrieve the user flags definition stored in the Binary
*
* @return a modifiable UserFlags;
*/
Pex::UserFlags &Pex::Binary::getUserFlags()
{
return m_UserFlags;
}
/**
* @brief Retrieve the list of Objects defined in the Binary
*
* @return a const Objects.
*/
const Pex::Objects &Pex::Binary::getObjects() const
{
return m_Objects;
}
/**
* @brief Retrieve the list of Objects defined in the Binary
*
* @return a modifiable Objects.
*/
Pex::Objects &Pex::Binary::getObjects()
{
return m_Objects;
}