36#ifndef STK_DATAHANDLERBASE_H
37#define STK_DATAHANDLERBASE_H
52template<
class DataHandler,
typename Type>
struct DataHandlerTraits;
68template<
class Derived>
76 typedef std::map<std::string, std::string>
InfoMap;
126template<
class Derived>
130 std::pair<InfoMap::iterator,bool>
ret;
132 ret = info_.insert(std::pair<std::string,std::string>(idData,
idModel));
134 if (
ret.second==
false)
138#ifdef STK_DMANAGER_DEBUG
139 stk_cerr <<
_T(
"In DataHandlerBase::addInfo, There exists an idData with a different idModel.\n");
154template<
class Derived>
159 InfoMap::const_iterator
it = info_.find(idData);
165template<
class Derived>
169 for (InfoMap::const_iterator
it=info_.begin();
it!=info_.end(); ++
it)
170 os <<
_T(
"IdData: ") <<
it->first <<
_T(
", IdModel: ") <<
it->second <<
_T(
'\n');
#define stk_cerr
Standard stk error stream.
#define _T(x)
Let x unmodified.
This file include all the other header files of the project Sdk.
A class derived from a DataHandlerBase allows to store various data sets identified by an idData and ...
void writeInfo(ostream &os) const
write infoMap on os
InfoMap info_
Store the informations of the mixtures in the form (idData, idModel) with.
~DataHandlerBase()
destructor
DataHandlerBase()
default constructor
bool getIdModelName(std::string const &idData, std::string &idModel) const
Giving the Id of a data set, find the Id of the model.
std::map< std::string, std::string > InfoMap
InfoMap const & info() const
bool addInfo(std::string const &idData, std::string const &idModel)
Add an info descriptor to the data handler.
Interface base class for all classes implementing the curious recursive template paradigm.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
std::basic_ostream< Char > ostream
ostream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.