mermaid::support::data::DataFactory Class Reference

Class representing a Data factory. More...

#include <DataFactory.hpp>

Collaboration diagram for mermaid::support::data::DataFactory:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static shared_ptr< DataBoxbuildDataBox (std::string typeName)
 This method builds a DataBox from its type name æArgument typeName Name of the DataBox type.
static shared_ptr< DataBoxbuildDataBoxFromStructureAndBottle (std::string structureTypeName, Bottle &bottle)
static shared_ptr< DataBoxbuildDataBoxFromStructureAndValueVector (std::string structureTypeName, shared_ptr< DataValueVector > vv)
static shared_ptr
< DataValueVector
buildDataValueVector ()
static shared_ptr
< DataValueVector
buildDataValueVector (Bottle &b)
static shared_ptr< DoublebuildDouble (double value=0.0)
 This method builds Double from float value.
static shared_ptr< DataBoxArraybuildDynamicDataBoxArray (std::string typeName)
static shared_ptr< DoubleArraybuildDynamicDoubleArray ()
static shared_ptr< IntegerArraybuildDynamicIntegerArray ()
static shared_ptr< StringArraybuildDynamicStringArray ()
static shared_ptr< IntegerbuildInteger (int value=0)
 This method builds Integer from int value.
static shared_ptr< DataBoxArraybuildStaticDataBoxArray (std::string typeName, int size)
static shared_ptr< DoubleArraybuildStaticDoubleArray (int size)
static shared_ptr< IntegerArraybuildStaticIntegerArray (int size)
static shared_ptr< StringArraybuildStaticStringArray (int size)
static shared_ptr< StringbuildString (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)

Detailed Description

Class representing a Data factory.

This class is able to build Data from XML descriptions.

Author:
Marco Barbosa + Nelson Ramos

Definition at line 74 of file DataFactory.hpp.


Member Function Documentation

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.

Parameters:
value double value
Returns:
Double Class.

Definition at line 82 of file DataFactory.cpp.

shared_ptr< Integer > DataFactory::buildInteger ( int  value = 0  )  [static]

This method builds Integer from int value.

Parameters:
value int value
Returns:
Integer Class.

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.

Parameters:
value string value
Returns:
String Class.

Definition at line 97 of file DataFactory.cpp.

Generated on Fri Mar 4 22:15:45 2011 for MeRMaID::support by  doxygen 1.6.3