mermaid::support::data::DataBox Class Reference

A DataBox is a place where data can be put and retrieved from. More...

#include <DataBox.hpp>

Inheritance diagram for mermaid::support::data::DataBox:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::data::DataBox:
Collaboration graph
[legend]

List of all members.

Public Member Functions

DataBoxclone ()
 string cast operator
 DataBox (const DataBox &dbox)
std::string getBoxStructureName () const
shared_ptr< DataBoxgetDataBox (std::string name) const
shared_ptr< DataBoxArraygetDataBoxArray (std::string name) const
shared_ptr< DataValueVectorgetDataValueVector () const
double getDouble (std::string name) const
shared_ptr< DoubleArraygetDoubleArray (std::string name) const
int getInteger (std::string name) const
shared_ptr< IntegerArraygetIntegerArray (std::string name) const
std::string getString (std::string name) const
shared_ptr< StringArraygetStringArray (std::string name) const
DataType getType ()
shared_ptr< DataValuegetValue (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

Detailed Description

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.

Author:
Marco Barbosa

Definition at line 65 of file DataBox.hpp.


Constructor & Destructor Documentation

DataBox::DataBox ( const DataBox dbox  ) 

Todo:
do real copying of all data

Definition at line 149 of file DataBox.cpp.


Member Function Documentation

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.

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