Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
Parameters.h
Go to the documentation of this file.
1 
11 #ifndef __KOME_OBJECTS_PARAMETERS_H__
12 #define __KOME_OBJECTS_PARAMETERS_H__
13 
14 #include "Variant.h"
15 
16 #include <string>
17 #include <vector>
18 #include <map>
19 #include <boost/function.hpp>
20 
21 namespace kome {
22  namespace objects {
23 
28  class DATA_OBJECTS_CLASS Parameters {
29  public:
34  Parameters();
35 
40  virtual ~Parameters();
41 
47  unsigned int getNumberOfParameters();
48 
55  const char* getName( unsigned int index );
56 
63  Variant& getValue( const char* name );
64 
70  bool hasParameter( const char* name );
71 
72  protected:
74  std::vector< std::string > m_parameters;
75 
77  std::map< std::string, Variant > m_parameterMap;
78  };
79  }
80 }
81 
82 // type definition
83 typedef boost::function< kome::objects::Variant ( kome::objects::Parameters* ) > PLUGIN_FUNCTION;
84 
85 #endif // __KOME_OBJECTS_PARAMETERS_H__
std::vector< std::string > m_parameters
Definition: Parameters.h:74
std::map< std::string, Variant > m_parameterMap
Definition: Parameters.h:77
interfaces of Variant class
class that treats data of various types
Definition: Variant.h:26
parameters of plug-in function management class
Definition: Parameters.h:28