Alida-C++ 0.1

Alida::_ALDDataIOManagerCmdline Class Reference

I/O manager class for managing command line data I/O. More...

#include <ALDDataIOManagerCmdline.h>

Inheritance diagram for Alida::_ALDDataIOManagerCmdline:
Collaboration diagram for Alida::_ALDDataIOManagerCmdline:

List of all members.

Public Member Functions

void * readData (std::string, std::string)
 Method to parse object data from a given string.
std::string writeData (std::string format, std::string type, void *data)
 Method to transform given data to a suitable output format.

Protected Member Functions

 _ALDDataIOManagerCmdline ()
 Default constructor.
virtual ~_ALDDataIOManagerCmdline ()
 Default destructor.

Friends

class Loki::CreateUsingNew< Alida::_ALDDataIOManagerCmdline >

Detailed Description

I/O manager class for managing command line data I/O.

This hidden class coordinates the data I/O of parameter objects for running operators from command line.
As the class is not accessible from outside, the corresponding singleton should be used to query the class for providers.

Definition at line 62 of file ALDDataIOManagerCmdline.h.


Constructor & Destructor Documentation

Alida::_ALDDataIOManagerCmdline::_ALDDataIOManagerCmdline ( ) [inline, protected]

Default constructor.

Definition at line 67 of file ALDDataIOManagerCmdline.h.

virtual Alida::_ALDDataIOManagerCmdline::~_ALDDataIOManagerCmdline ( ) [inline, protected, virtual]

Default destructor.

Definition at line 70 of file ALDDataIOManagerCmdline.h.


Member Function Documentation

void * Alida::_ALDDataIOManagerCmdline::readData ( std::string  input,
std::string  type 
)

Method to parse object data from a given string.

This function handles data I/O input requests from command line operator runners.
According to the given type identifier string the manager calls a corresponding provider class instance and passes the input string to this provider.
The provider converts the given input string into an object of the requested data type and hands it back to the manager.

Parameters:
inputInput string to be processed.
typeIdentifier string for requested object type.
Returns:
Generated object of requested type.

Definition at line 63 of file ALDDataIOManagerCmdline.cc.

References Alida::ALDDataIOCmdline::readData().

Here is the call graph for this function:

string Alida::_ALDDataIOManagerCmdline::writeData ( std::string  format,
std::string  type,
void *  data 
)

Method to transform given data to a suitable output format.

This function transfers the given input data to an output string by delegating the I/O request to an appropriate data I/I provider. The provider class is selected according to the given type identifier string.

Parameters:
formatFormatting options for the output string.
typeIdentifier string for object type.
dataData object to put out.
Returns:
Generated string with output values.

Definition at line 92 of file ALDDataIOManagerCmdline.cc.

References Alida::ALDDataIOCmdline::writeData().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class Loki::CreateUsingNew< Alida::_ALDDataIOManagerCmdline > [friend]

Definition at line 70 of file ALDDataIOManagerCmdline.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines