Go to the documentation of this file.00001
00002
00003
00004
00005 #ifndef DDYNAMIC_RECONFIGURE_DD_DOUBLE_PARAM_H
00006 #define DDYNAMIC_RECONFIGURE_DD_DOUBLE_PARAM_H
00007
00008 #include "ddynamic_reconfigure/dd_param.h"
00009
00010
00011 namespace ddynamic_reconfigure {
00012 typedef numeric_limits<double> d_limit;
00018 class DDDouble : virtual public DDParam {
00019 public:
00020 string getName() const;
00021
00022 void prepGroup(Group &group);
00023
00024 void prepConfig(Config &conf);
00025
00026 void prepConfigDescription(ConfigDescription &conf_desc);
00027
00028 int getLevel() const;
00029
00030 bool sameType(Value val);
00031
00032 bool sameValue(Value val);
00033
00034 void setValue(Value val);
00035
00036 Value getValue() const;
00037
00047 DDDouble(const string &name, unsigned int level, const string &description, double def,
00048 double min = -d_limit::infinity(), double max = d_limit::infinity())
00049 : max_(), min_() {
00050 name_ = name;
00051 level_ = level;
00052 desc_ = description;
00053 def_ = def;
00054 val_ = def;
00055 max_ = max;
00056 min_ = min;
00057 }
00058 protected:
00063 unsigned int level_;
00070 double def_,max_,min_,val_;
00075 string name_, desc_;
00076 };
00077 }
00078
00079
00080 #endif //DDYNAMIC_RECONFIGURE_DD_DOUBLE_PARAM_H