Public Member Functions | Protected Attributes
ddynamic_reconfigure::DDInt Class Reference

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>

Inheritance diagram for ddynamic_reconfigure::DDInt:
Inheritance graph
[legend]

List of all members.

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
string getName () const
 gets the name of the parameter, that is, the ID used in the program when requesting it.
Value getValue () const
 gets the value of this parameter.
void prepConfig (Config &conf)
 updates a config message according to this param's info.
void prepConfigDescription (ConfigDescription &conf_desc)
 updates a config description message according to this param's info.
void prepGroup (Group &group)
 updates a group message according to this param's info.
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.
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.
void setValue (Value val)
 sets the value of this parameter as this one.

Protected Attributes

int def_
 the default value (def_), the current value (val_), the minimum allowed value (min_), and the maximum allowed value (max_)
string desc_
unsigned int level_
 the level of the parameter: the degree in which things need to be shut down if this param changes
int max_
int min_
string name_
 the name of the parameter (name_), and its description (desc_)
int val_

Detailed Description

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.


Constructor & Destructor Documentation

ddynamic_reconfigure::DDInt::DDInt ( const string &  name,
unsigned int  level,
const string &  description,
int  def,
int  min = INT32_MIN,
int  max = INT32_MAX 
) [inline]

creates a new int param

Parameters:
namethe name of the parameter
levelthe change level
defthe default value
descriptiondetails about the parameter
maxthe maximum allowed value. Defaults to INT32_MAX
minthe minimum allowed value. Defaults to INT32_MIN

Definition at line 46 of file dd_int_param.h.


Member Function Documentation

int ddynamic_reconfigure::DDInt::getLevel ( ) const [virtual]

fetches the level of the parameter

Returns:
the level of the param.

Implements ddynamic_reconfigure::DDParam.

Definition at line 39 of file dd_int_param.cpp.

string ddynamic_reconfigure::DDInt::getName ( ) const [virtual]

gets the name of the parameter, that is, the ID used in the program when requesting it.

Returns:
the unique string name of the parameter.

Implements ddynamic_reconfigure::DDParam.

Definition at line 8 of file dd_int_param.cpp.

gets the value of this parameter.

Returns:
the value stored in this param.

Implements ddynamic_reconfigure::DDParam.

Definition at line 55 of file dd_int_param.cpp.

void ddynamic_reconfigure::DDInt::prepConfig ( Config &  conf) [virtual]

updates a config message according to this param's info.

Parameters:
confthe group to update.
Note:
this is an internal method. It is recommended not to use it.

Implements ddynamic_reconfigure::DDParam.

Definition at line 21 of file dd_int_param.cpp.

void ddynamic_reconfigure::DDInt::prepConfigDescription ( ConfigDescription &  conf_desc) [virtual]

updates a config description message according to this param's info.

Parameters:
conf_descthe config description to update.
Note:
this is an internal method. It is recommended not to use it.

Implements ddynamic_reconfigure::DDParam.

Definition at line 28 of file dd_int_param.cpp.

void ddynamic_reconfigure::DDInt::prepGroup ( Group &  group) [virtual]

updates a group message according to this param's info.

Parameters:
groupthe group to update.
Note:
this is an internal method. It is recommended not to use it.

Implements ddynamic_reconfigure::DDParam.

Reimplemented in ddynamic_reconfigure::DDEnum.

Definition at line 12 of file dd_int_param.cpp.

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.

Parameters:
valthe value to test
Returns:
true is this parameter can handle the original value, false otherwise.

Implements ddynamic_reconfigure::DDParam.

Reimplemented in ddynamic_reconfigure::DDEnum.

Definition at line 43 of file dd_int_param.cpp.

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.

Parameters:
valthe value to test
Returns:
true is this parameter can is the same as the original value, false otherwise.

Implements ddynamic_reconfigure::DDParam.

Reimplemented in ddynamic_reconfigure::DDEnum.

Definition at line 47 of file dd_int_param.cpp.

sets the value of this parameter as this one.

Parameters:
valthe value to use

Implements ddynamic_reconfigure::DDParam.

Reimplemented in ddynamic_reconfigure::DDEnum.

Definition at line 51 of file dd_int_param.cpp.


Member Data Documentation

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.

Definition at line 74 of file dd_int_param.h.

unsigned int ddynamic_reconfigure::DDInt::level_ [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.

Definition at line 69 of file dd_int_param.h.

Definition at line 69 of file dd_int_param.h.

the name of the parameter (name_), and its description (desc_)

Definition at line 74 of file dd_int_param.h.

Definition at line 69 of file dd_int_param.h.


The documentation for this class was generated from the following files:


ddynamic_reconfigure
Author(s): Noam Dori
autogenerated on Wed May 15 2019 04:39:27