1 #ifndef GEAR_GearParametersImpl_H
2 #define GEAR_GearParametersImpl_H 1
6 #include "gear/GearParameters.h"
23 typedef std::map< std::string, int > IntMap ;
24 typedef std::map< std::string, double > DoubleMap ;
25 typedef std::map< std::string, std::string > StringMap ;
26 typedef std::map< std::string, IntVec > IntVecMap ;
27 typedef std::map< std::string, DoubleVec > DoubleVecMap ;
28 typedef std::map< std::string, StringVec > StringVecMap ;
37 virtual int getIntVal(
const std::string & key)
const ;
42 virtual double getDoubleVal(
const std::string & key)
const ;
47 virtual const std::string &
getStringVal(
const std::string & key)
const
53 virtual const std::vector<int> &
getIntVals(
const std::string & key)
const
59 virtual const std::vector<double> &
getDoubleVals(
const std::string & key)
const
65 virtual const std::vector<std::string> &
getStringVals(
const std::string & key)
const
72 virtual void setIntVal(
const std::string & key ,
int val ) ;
76 virtual void setDoubleVal(
const std::string & key,
double val ) ;
80 virtual void setStringVal(
const std::string & key ,
const std::string & val) ;
84 virtual void setIntVals(
const std::string & key,
const std::vector<int>& vals) ;
88 virtual void setDoubleVals(
const std::string & key,
const std::vector<double>& vals) ;
92 virtual void setStringVals(
const std::string & key,
const std::vector<std::string>& vals) ;
97 virtual const std::vector<std::string> &
getIntKeys()
const ;
100 virtual const std::vector<std::string> &
getDoubleKeys()
const ;
103 virtual const std::vector<std::string> &
getStringKeys()
const ;
106 virtual const std::vector<std::string> &
getIntVecKeys()
const ;
117 std::map< std::string, int > _intMap{} ;
118 std::map< std::string, double > _doubleMap{} ;
119 std::map< std::string, std::string > _stringMap{} ;
120 std::map< std::string, IntVec > _intVecMap{} ;
121 std::map< std::string, DoubleVec > _doubleVecMap{} ;
122 std::map< std::string, StringVec > _stringVecMap{} ;
124 mutable StringVec _intKeys{} ;
125 mutable StringVec _doubleKeys{} ;
126 mutable StringVec _stringKeys{} ;
127 mutable StringVec _intVecKeys{} ;
128 mutable StringVec _doubleVecKeys{} ;
129 mutable StringVec _stringVecKeys{} ;
virtual const std::string & getStringVal(const std::string &key) const
String value for key.
Implementation of GearParameters - a set off parameters that can be used to describe the geometrical ...
virtual const std::vector< std::string > & getStringVecKeys() const
All keys of StringVec variables.
virtual const std::vector< int > & getIntVals(const std::string &key) const
Integer values for key.
virtual void setIntVals(const std::string &key, const std::vector< int > &vals)
Integer values for key.
virtual void setDoubleVals(const std::string &key, const std::vector< double > &vals)
Double values for key.
virtual ~GearParametersImpl()
Destructor.
virtual const std::vector< std::string > & getStringKeys() const
All keys of string variables.
virtual void setStringVals(const std::string &key, const std::vector< std::string > &vals)
String values for key.
virtual int getIntVal(const std::string &key) const
Integer value for key.
Abstract interface for a set of parameters that can be used to describe the geometrical properties of...
virtual const std::vector< std::string > & getDoubleKeys() const
All keys of double variables.
virtual double getDoubleVal(const std::string &key) const
Double value for key.
virtual const std::vector< std::string > & getDoubleVecKeys() const
All keys of DoubleVec variables.
virtual void setIntVal(const std::string &key, int val)
Set Integer value for key.
virtual const std::vector< double > & getDoubleVals(const std::string &key) const
Double values for key.
virtual const std::vector< std::string > & getIntVecKeys() const
All keys of IntVec variables.
virtual const std::vector< std::string > & getStringVals(const std::string &key) const
String values for key.
virtual void setStringVal(const std::string &key, const std::string &val)
String value for key.
virtual const std::vector< std::string > & getIntKeys() const
All keys of int variables.
virtual void setDoubleVal(const std::string &key, double val)
Double value for key.