Alida-C++ 0.1
|
I/O manager class for managing command line data I/O. More...
#include <ALDDataIOManagerCmdline.h>
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 > |
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.
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.
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.
input | Input string to be processed. |
type | Identifier string for requested object type. |
Definition at line 63 of file ALDDataIOManagerCmdline.cc.
References Alida::ALDDataIOCmdline::readData().
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.
format | Formatting options for the output string. |
type | Identifier string for object type. |
data | Data object to put out. |
Definition at line 92 of file ALDDataIOManagerCmdline.cc.
References Alida::ALDDataIOCmdline::writeData().
friend class Loki::CreateUsingNew< Alida::_ALDDataIOManagerCmdline > [friend] |
Definition at line 70 of file ALDDataIOManagerCmdline.h.