00001 // 00002 // Created by Noam Dori on 19/06/18. 00003 // 00004 00005 #ifndef DDYNAMIC_RECONFIGURE_DD_BOOL_PARAM_H 00006 #define DDYNAMIC_RECONFIGURE_DD_BOOL_PARAM_H 00007 00008 #include "ddynamic_reconfigure/dd_param.h" 00009 00010 namespace ddynamic_reconfigure { 00016 class DDBool : virtual public DDParam { 00017 public: 00018 string getName() const; 00019 00020 void prepGroup(Group &group); 00021 00022 void prepConfig(Config &conf); 00023 00024 void prepConfigDescription(ConfigDescription &conf_desc); 00025 00026 int getLevel() const; 00027 00028 bool sameType(Value val); 00029 00030 bool sameValue(Value val); 00031 00032 void setValue(Value val); 00033 00034 Value getValue() const; 00035 00043 DDBool(const string &name, unsigned int level, const string &description, bool def) { 00044 name_ = name; 00045 level_ = level; 00046 desc_ = description; 00047 def_ = def; 00048 val_ = def; 00049 } 00050 protected: 00055 unsigned int level_; 00060 bool def_,val_; 00065 string name_, desc_; 00066 }; 00067 } 00068 00069 00070 #endif //DDYNAMIC_RECONFIGURE_DD_BOOL_PARAM_H