ESyS-Particle  2.3.4
InteractionParam.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2017 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.apache.org/licenses/LICENSE-2.0 //
10 // //
12 
13 #ifndef __INTERACTIONPARAM_H
14 #define __INTERACTIONPARAM_H
15 
16 // -- STL includes --
17 #include <string>
18 #include <map>
19 
20 using std::string;
21 using std::map;
22 
31 class AIParam
32 {
33 private:
34  string m_name;
35  map<string,double> m_data;
36 
37 public:
38  AIParam(const string&);
39  virtual ~AIParam()=0;
40 
41  string getName()const{return m_name;};
42  double getParamByName(const string&);
43  void addParameter(const string&,double);
44 };
45 
46 #endif //__INTERACTIONPARAM_H
AIParam::getParamByName
double getParamByName(const string &)
Definition: InteractionParam.cpp:27
InteractionParam.h
AIParam::getName
string getName() const
Definition: InteractionParam.h:41
AIParam::addParameter
void addParameter(const string &, double)
Definition: InteractionParam.cpp:32
AIParam::~AIParam
virtual ~AIParam()=0
Definition: InteractionParam.cpp:24
AIParam::m_name
string m_name
Definition: InteractionParam.h:34
AIParam::AIParam
AIParam(const string &)
Definition: InteractionParam.cpp:19
AIParam::m_data
map< string, double > m_data
Definition: InteractionParam.h:35
AIParam
Abstract base class for interaction parameters.
Definition: InteractionParam.h:32