12 #ifndef IDATACONTAINER_H_
13 #define IDATACONTAINER_H_
19 #include <boost/any.hpp>
22 #include "../io/io_datatype.h"
26 using boost::any_cast;
28 typedef map<string, boost::any> DataMap;
45 virtual void setMap() = 0;
56 cout <<
"****************************************************************\n";
57 cout <<
"* IDataContainer is constructed *\n";
58 cout <<
"****************************************************************\n";
68 DataMap().swap(myData);
72 cout <<
"****************************************************************\n";
73 cout <<
"* IDataContainer is destroyed *\n";
74 cout <<
"****************************************************************\n";
84 bool keyExists(
const string &strKey);
93 template <
class T>
const T& getKey_constRef(
const string& strKey);
101 template <
class T>
const T* getKey_constPtr(
const string& strKey);
111 template <
class T>
const T** getKey_constPtr(
const string& strKey,
const int& iRows,
const int& iColumns);
122 template <
class T>
const T*** getKey_constPtr(
const string& strKey,
const int& iRows,
const int& iColumns,
const int& iPages);
134 template <
class T>
const T**** getKey_constPtr(
const string& strKey,
const int& iRows,
const int& iColumns,
const int& iPages,
const int& iSects);
143 template <
class T> T& getKey_Ref(
const string& strKey);
151 template <
class T> T getKey_Val(
const string& strKey);
159 template <
class T> T* getKey_Ptr(
const string& strKey);
170 template <
class T> T*** getKey_Ptr(
const string& strKey,
const int& iRows,
const int& iColumns,
const int& iPages);
177 virtual void showMap(
const string& strMapFile) = 0;
184 virtual void reset(
const string& strF95File) = 0;
187 #endif // IDATACONTAINER_H_
IDataContainer()
Definition: interface_datacontainer.h:52
Definition: interface_datacontainer.h:31
virtual ~IDataContainer()
Definition: interface_datacontainer.h:66
warnings/exceptions occurring in interface classes
pre-processor marco's used for compiling the code
DataMap myData
Definition: interface_datacontainer.h:39