an integer implementation of the parameter. This is used to 32 bit signed integral numbers. This can also handle shorts, bytes, and other integrals provided they are not too big (by then looping will occur) More...
#include <dd_int_param.h>
Public Member Functions | |
DDInt (const string &name, unsigned int level, const string &description, int def, int min=INT32_MIN, int max=INT32_MAX) | |
int | getLevel () const |
fetches the level of the parameter More... | |
string | getName () const |
gets the name of the parameter, that is, the ID used in the program when requesting it. More... | |
Value | getValue () const |
gets the value of this parameter. More... | |
void | prepConfig (Config &conf) |
updates a config message according to this param's info. More... | |
void | prepConfigDescription (ConfigDescription &conf_desc) |
updates a config description message according to this param's info. More... | |
void | prepGroup (Group &group) |
updates a group message according to this param's info. More... | |
bool | sameType (Value val) |
checks whether or not the raw value stored in the value is compatible with the given parameter. Compatible is a very broad word in this scenario. It means that the value can be placed in the parameter regardless of other limitations. More... | |
bool | sameValue (Value val) |
checks whether or not the value stored in the value object, when converted to the type of the internal value, are equal. This acts regardless of type. More... | |
void | setValue (Value val) |
sets the value of this parameter as this one. More... | |
Protected Attributes | |
int | def_ |
the default value (def_), the current value (val_), the minimum allowed value (min_), and the maximum allowed value (max_) More... | |
string | desc_ |
unsigned int | level_ |
the level of the parameter: the degree in which things need to be shut down if this param changes More... | |
int | max_ |
int | min_ |
string | name_ |
the name of the parameter (name_), and its description (desc_) More... | |
int | val_ |
an integer implementation of the parameter. This is used to 32 bit signed integral numbers. This can also handle shorts, bytes, and other integrals provided they are not too big (by then looping will occur)
Definition at line 17 of file dd_int_param.h.
|
inline |
creates a new int param
name | the name of the parameter |
level | the change level |
def | the default value |
description | details about the parameter |
max | the maximum allowed value. Defaults to INT32_MAX |
min | the minimum allowed value. Defaults to INT32_MIN |
Definition at line 46 of file dd_int_param.h.
|
virtual |
fetches the level of the parameter
Implements ddynamic_reconfigure::DDParam.
Definition at line 39 of file dd_int_param.cpp.
|
virtual |
gets the name of the parameter, that is, the ID used in the program when requesting it.
Implements ddynamic_reconfigure::DDParam.
Definition at line 8 of file dd_int_param.cpp.
|
virtual |
gets the value of this parameter.
Implements ddynamic_reconfigure::DDParam.
Definition at line 55 of file dd_int_param.cpp.
|
virtual |
updates a config message according to this param's info.
conf | the group to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 21 of file dd_int_param.cpp.
|
virtual |
updates a config description message according to this param's info.
conf_desc | the config description to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 28 of file dd_int_param.cpp.
|
virtual |
updates a group message according to this param's info.
group | the group to update. |
Implements ddynamic_reconfigure::DDParam.
Definition at line 12 of file dd_int_param.cpp.
|
virtual |
checks whether or not the raw value stored in the value is compatible with the given parameter. Compatible is a very broad word in this scenario. It means that the value can be placed in the parameter regardless of other limitations.
val | the value to test |
Implements ddynamic_reconfigure::DDParam.
Definition at line 43 of file dd_int_param.cpp.
|
virtual |
checks whether or not the value stored in the value object, when converted to the type of the internal value, are equal. This acts regardless of type.
val | the value to test |
Implements ddynamic_reconfigure::DDParam.
Definition at line 47 of file dd_int_param.cpp.
|
virtual |
sets the value of this parameter as this one.
val | the value to use |
Implements ddynamic_reconfigure::DDParam.
Definition at line 51 of file dd_int_param.cpp.
|
protected |
the default value (def_), the current value (val_), the minimum allowed value (min_), and the maximum allowed value (max_)
Definition at line 69 of file dd_int_param.h.
|
protected |
Definition at line 74 of file dd_int_param.h.
|
protected |
the level of the parameter: the degree in which things need to be shut down if this param changes
Definition at line 62 of file dd_int_param.h.
|
protected |
Definition at line 69 of file dd_int_param.h.
|
protected |
Definition at line 69 of file dd_int_param.h.
|
protected |
the name of the parameter (name_), and its description (desc_)
Definition at line 74 of file dd_int_param.h.
|
protected |
Definition at line 69 of file dd_int_param.h.