Class representing a Data factory. More...
#include <DataFactory.hpp>
Static Public Member Functions | |
static shared_ptr< DataBox > | buildDataBox (std::string typeName) |
This method builds a DataBox from its type name æArgument typeName Name of the DataBox type. | |
static shared_ptr< DataBox > | buildDataBoxFromStructureAndBottle (std::string structureTypeName, Bottle &bottle) |
static shared_ptr< DataBox > | buildDataBoxFromStructureAndValueVector (std::string structureTypeName, shared_ptr< DataValueVector > vv) |
static shared_ptr < DataValueVector > | buildDataValueVector () |
static shared_ptr < DataValueVector > | buildDataValueVector (Bottle &b) |
static shared_ptr< Double > | buildDouble (double value=0.0) |
This method builds Double from float value. | |
static shared_ptr< DataBoxArray > | buildDynamicDataBoxArray (std::string typeName) |
static shared_ptr< DoubleArray > | buildDynamicDoubleArray () |
static shared_ptr< IntegerArray > | buildDynamicIntegerArray () |
static shared_ptr< StringArray > | buildDynamicStringArray () |
static shared_ptr< Integer > | buildInteger (int value=0) |
This method builds Integer from int value. | |
static shared_ptr< DataBoxArray > | buildStaticDataBoxArray (std::string typeName, int size) |
static shared_ptr< DoubleArray > | buildStaticDoubleArray (int size) |
static shared_ptr< IntegerArray > | buildStaticIntegerArray (int size) |
static shared_ptr< StringArray > | buildStaticStringArray (int size) |
static shared_ptr< String > | buildString (std::string value=std::string("")) |
This method builds String from string value. | |
static shared_ptr < DataStructureDescription > | getDataStructureDescription (std::string dataStructureName) |
static void | loadDataDescription (shared_ptr< XmlDocument > document) |
static void | writeDataBoxToBottle (shared_ptr< DataBox > box, Bottle &bottle) |
Class representing a Data factory.
This class is able to build Data from XML descriptions.
Definition at line 74 of file DataFactory.hpp.
shared_ptr< DataBox > DataFactory::buildDataBox | ( | std::string | typeName | ) | [static] |
This method builds a DataBox from its type name æArgument typeName Name of the DataBox type.
Definition at line 179 of file DataFactory.cpp.
shared_ptr< Double > DataFactory::buildDouble | ( | double | value = 0.0 |
) | [static] |
This method builds Double from float value.
value | double value |
Definition at line 82 of file DataFactory.cpp.
shared_ptr< Integer > DataFactory::buildInteger | ( | int | value = 0 |
) | [static] |
This method builds Integer from int value.
value | int value |
Definition at line 67 of file DataFactory.cpp.
shared_ptr< String > DataFactory::buildString | ( | std::string | value = std::string ("") |
) | [static] |
This method builds String from string value.
value | string value |
Definition at line 97 of file DataFactory.cpp.