00001
00002
00014 #ifndef _FunctionParameter_H_
00015 #define _FunctionParameter_H_
00016
00017 #include "pattern/libhippo.h"
00018
00019 #include <string>
00020
00021 namespace hippodraw {
00022
00031 class MDL_HIPPOPLOT_API FunctionParameter
00032 {
00033
00034 private:
00035
00038 std::string m_name;
00039
00042 double m_value;
00043
00046 double m_error;
00047
00050 double m_lower_limit;
00051
00054 double m_upper_limit;
00055
00058 bool m_fixed;
00059
00062 bool m_has_lower;
00065 bool m_has_upper;
00066
00067 public:
00068
00071 FunctionParameter ( const std::string & name,
00072 double value,
00073 double error,
00074 bool fixed,
00075 double low_limit,
00076 double high_limit,
00077 bool has_low,
00078 bool has_high );
00079
00080
00081
00082
00083
00086 const std::string & name () const;
00087
00090 double value () const;
00091
00094 double error () const;
00095
00098 bool isFixed () const;
00099
00102 double lowerLimit () const;
00103
00106 double upperLimit () const;
00107
00110 bool hasLowerLimit () const;
00111
00114 bool hasUpperLimit () const;
00115
00116 };
00117
00118 }
00119
00120 #endif // _FunctionParameter_H_