charon-core  0.3.1
Slot::DataManagerFactory< T > Class Template Reference

interface of data management factories More...

#include <charon-core/Slots.h>

Public Member Functions

factory specializations using the DataManagerParameterFile
template<>
Slot::DataManager< int > * getManager (const Slot &slot, const std::string &config)
 
template<>
Slot::DataManager< float > * getManager (const Slot &slot, const std::string &config)
 
template<>
Slot::DataManager< double > * getManager (const Slot &slot, const std::string &config)
 
template<>
Slot::DataManager< std::string > * getManager (const Slot &slot, const std::string &config)
 

Static Public Member Functions

static DataManager< T > * getManager (const Slot &slot, const std::string &config="")
 get data manager from configuration string More...
 

Detailed Description

template<typename T>
class Slot::DataManagerFactory< T >

These data managers are able e.g. to save some data to disk and read them in. This is used in the slot data exchange mechanism.

Definition at line 233 of file Slots.h.

Member Function Documentation

template<typename T >
Slot::DataManager< T > * Slot::DataManagerFactory< T >::getManager ( const Slot slot,
const std::string &  config = "" 
)
static

Given the parameter string, the factory should set up a data manager that is able to re-read the data.

Parameters
slotslot to generate manager for
configconfiguration string if this string is empty, a default manager e.g. for writing is generated.
Returns
data manager suitable for given data type or a null pointer if none is available

Definition at line 467 of file Slots.hxx.


The documentation for this class was generated from the following files: