Bitstream Interpretation Library (BIL)
0.1
|
An element of a primitive. More...
#include <xdlrc/model/Element.hpp>
Public Member Functions | |
Element () | |
Constructs a new Element instance. | |
std::string & | name () |
Gets element name. | |
const std::string & | name () const |
Gets element name read only. | |
ConfigurationOptions & | options () |
Gets configuration options. | |
const ConfigurationOptions & | options () const |
Gets configuration options read only. | |
void | clear () |
Resets all properties to default values. |
Friends | |
void | writeBinary (const Element &data, std::ostream &outputStream) |
Writes data from a Element into a binary stream. | |
void | readBinary (Element &data, std::istream &inputStream) |
Reads data into a Element from a binary stream. |
An element of a primitive.
Elements are configurable subunits of primitives. Each element has got an unique name inside its primitive and a list of configuration options. Each single option denotes a distinct configuration of the whole element.
Definition at line 28 of file Element.hpp.
Element::Element | ( | ) |
Constructs a new Element instance.
Definition at line 11 of file Element.cpp.
std::string & Element::name | ( | ) |
const std::string & Element::name | ( | ) | const |
ConfigurationOptions & Element::options | ( | ) |
Gets configuration options.
Definition at line 31 of file Element.cpp.
const ConfigurationOptions & Element::options | ( | ) | const |
Gets configuration options read only.
Definition at line 37 of file Element.cpp.
void Element::clear | ( | ) |
Resets all properties to default values.
Definition at line 43 of file Element.cpp.
|
friend |
|
friend |