dd_param.h
Go to the documentation of this file.
1 //
2 // Created by Noam Dori on 18/06/18.
3 //
4 
5 #ifndef DDYNAMIC_RECONFIGURE_DD_PARAM_H
6 #define DDYNAMIC_RECONFIGURE_DD_PARAM_H
7 
8 #include <string>
9 #include <dynamic_reconfigure/Group.h>
10 #include <dynamic_reconfigure/Config.h>
11 #include <dynamic_reconfigure/ConfigDescription.h>
12 #include "dd_value.h"
13 
14 using namespace dynamic_reconfigure;
15 using namespace std;
17  class DDParam;// declaration for the sake of order.
18  // this is the pointer to any type of Dynamic Dynamic parameter.
48  class DDParam {
49  public:
50 
55  virtual string getName() const = 0;
56 
61  virtual int getLevel() const = 0;
62 
67  virtual Value getValue() const = 0;
68 
76  virtual bool sameType(Value val) = 0;
77 
84  virtual bool sameValue(Value val) = 0;
85 
90  virtual void setValue(Value val) = 0;
91 
97  virtual void prepGroup(Group &group) = 0;
98 
104  virtual void prepConfig(Config &conf) = 0;
105 
111  virtual void prepConfigDescription(ConfigDescription &conf_desc) = 0;
112 
119  friend ostream& operator<<(ostream& os, const DDParam &param);
120  };
121 }
122 #endif //DDYNAMIC_RECONFIGURE_DD_PARAM_H
bool param(const std::string &param_name, T &param_val, const T &default_val)
std::string getName(void *handle)
The DDParam class is the abstraction of all parameter types, and is the template for creating them...
Definition: dd_param.h:48
The Value class is used to wrap all basic data-types (bool,int,double,string) in something generic...
Definition: dd_value.h:29
ostream & operator<<(ostream &os, const DDParam &param)
Definition: dd_param.cpp:8
boost::shared_ptr< DDParam > DDPtr
Definition: dd_param.h:17


ddynamic_reconfigure
Author(s): Noam Dori
autogenerated on Thu May 16 2019 02:46:37