openModeller  Version 1.5.0
AlgParameter.hh
Go to the documentation of this file.
1 
29 #ifndef _ALG_PARAMETERHH_
30 #define _ALG_PARAMETERHH_
31 
33 #include <openmodeller/om_defs.hh>
34 #include <string>
35 
36 
37 /*************************************************************/
38 /*********************** Alg Parameter ***********************/
39 
44 class dllexp AlgParameter
45 {
46 public:
47 
48  AlgParameter();
49  AlgParameter( std::string const id, std::string const value=0 );
50  AlgParameter( const AlgParameter & );
51  ~AlgParameter();
52 
53  AlgParameter &operator=( const AlgParameter & );
54 
56  std::string const id() const { return _id; }
57 
59  void setId( std::string const id ) { _id = id; }
60 
62  std::string const value() const { return _value; }
63 
65  double valueReal();
66 
68  void setValue( std::string const val ) { _value = val; }
69  void setValue( double val );
70 
71 private:
72 
73  std::string _id;
74  std::string _value;
75 };
76 
77 
78 #endif
79 
80 
void setValue(std::string const val)
Definition: AlgParameter.hh:68
std::string const value() const
Definition: AlgParameter.hh:62
std::string const id() const
Definition: AlgParameter.hh:56
std::string _value
Definition: AlgParameter.hh:74
void setId(std::string const id)
Definition: AlgParameter.hh:59
std::string _id
Definition: AlgParameter.hh:73