36#ifndef STK_IDATAHANDLER_H
37#define STK_IDATAHANDLER_H
50template<
class DataHandler,
typename Type>
68 typedef std::map<std::string, std::string>
InfoMap;
87 bool addInfo(std::string
const& idData, std::string
const&
idModel);
113 os <<
_T(
"IdData: ") <<
it->first <<
_T(
", IdModel: ") <<
it->second <<
_T(
'\n');
119 std::pair<InfoMap::iterator,bool>
ret;
121 ret =
info_.insert(std::pair<std::string,std::string>(idData,
idModel));
123 if (
ret.second==
false)
127#ifdef STK_DMANAGER_DEBUG
128 stk_cerr <<
_T(
"In IDataHandler::addInfo, There exists an idData with a different idModel.\n");
148 {
if (
it->first == idData) {
idModel =
it->second;
res =
true;
break;}}
#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 DataHandler class allow to store various data set identified with an idData (a string).
InfoMap info_
Store the informations of the mixtures in the form (idData, idModel) with.
InfoMap const & info() const
virtual int nbSample() const =0
std::map< std::string, std::string > InfoMap
bool addInfo(std::string const &idData, std::string const &idModel)
Add an info descriptor to the data handler.
IDataHandler()
default constructor
bool getIdModelName(std::string const &idData, std::string &idModel) const
Giving a the Id of a dataset, find the Id of the model.
virtual ~IDataHandler()
destructor
void writeInfo(ostream &os) const
write the info on os
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.
The DataHandlerTraits will give the type of container furnished by the concrete implementations of th...