openModeller
Version 1.4.0
|
00001 00029 #ifndef _ALG_PARAMETERHH_ 00030 #define _ALG_PARAMETERHH_ 00031 00032 #include <openmodeller/os_specific.hh> 00033 #include <openmodeller/om_defs.hh> 00034 #include <string> 00035 00036 00037 /*************************************************************/ 00038 /*********************** Alg Parameter ***********************/ 00039 00044 class dllexp AlgParameter 00045 { 00046 public: 00047 00048 AlgParameter(); 00049 AlgParameter( std::string const id, std::string const value=0 ); 00050 AlgParameter( const AlgParameter & ); 00051 ~AlgParameter(); 00052 00053 AlgParameter &operator=( const AlgParameter & ); 00054 00056 std::string const id() const { return _id; } 00057 00059 void setId( std::string const id ) { _id = id; } 00060 00062 std::string const value() const { return _value; } 00063 00065 double valueReal(); 00066 00068 void setValue( std::string const val ) { _value = val; } 00069 void setValue( double val ); 00070 00071 private: 00072 00073 std::string _id; 00074 std::string _value; 00075 }; 00076 00077 00078 #endif 00079 00080