A DataBox is a place where data can be put and retrieved from. More...
#include <DataBox.hpp>
Public Member Functions | |
DataBox * | clone () |
string cast operator | |
DataBox (const DataBox &dbox) | |
std::string | getBoxStructureName () const |
shared_ptr< DataBox > | getDataBox (std::string name) const |
shared_ptr< DataBoxArray > | getDataBoxArray (std::string name) const |
shared_ptr< DataValueVector > | getDataValueVector () const |
double | getDouble (std::string name) const |
shared_ptr< DoubleArray > | getDoubleArray (std::string name) const |
int | getInteger (std::string name) const |
shared_ptr< IntegerArray > | getIntegerArray (std::string name) const |
std::string | getString (std::string name) const |
shared_ptr< StringArray > | getStringArray (std::string name) const |
DataType | getType () |
shared_ptr< DataValue > | getValue (std::string valueName) const |
virtual | operator std::string () const |
Method to convert to string. | |
void | print () const |
void | setDouble (std::string name, double value) |
void | setInteger (std::string name, int value) |
void | setString (std::string name, std::string value) |
void | setValueFromString (std::string name, std::string value) |
Protected Member Functions | |
void | copyFrom (const DataValue &otherValue) |
Protected Attributes | |
DataType | type_ |
Friends | |
class | DataFactory |
A DataBox is a place where data can be put and retrieved from.
This is a smart box, in which you can access data by name.
Definition at line 65 of file DataBox.hpp.
DataBox::DataBox | ( | const DataBox & | dbox | ) |
Definition at line 149 of file DataBox.cpp.
DataBox * DataBox::clone | ( | ) | [virtual] |
string cast operator
Implements mermaid::support::data::DataValue.
Definition at line 162 of file DataBox.cpp.
DataBox::operator std::string | ( | ) | const [virtual] |
Method to convert to string.
Implements mermaid::support::data::DataValue.
Definition at line 700 of file DataBox.cpp.