Filter for mapping variables in the KB into a filter's outgoing or incoming messages.
More...
#include <VariableMapFilter.h>
Filter for mapping variables in the KB into a filter's outgoing or incoming messages.
Definition at line 32 of file VariableMapFilter.h.
◆ VariableMapFilter()
madara::filters::VariableMapFilter::VariableMapFilter |
( |
const std::string & |
filename = "" | ) |
|
|
inline |
Constructor.
- Parameters
-
filename | the filename of the config to load mappings from |
Definition at line 119 of file VariableMapFilter.h.
◆ ~VariableMapFilter()
virtual madara::filters::VariableMapFilter::~VariableMapFilter |
( |
| ) |
|
|
virtualdefault |
◆ filter()
◆ process_config()
void madara::filters::VariableMapFilter::process_config |
( |
const std::string & |
config | ) |
|
|
inline |
Processes mappings from a config file.
Mappings should be in the form of "var_in_kb -> new_var".
- Parameters
-
config | the configuration file contents to process |
Definition at line 40 of file VariableMapFilter.h.
◆ read_config()
void madara::filters::VariableMapFilter::read_config |
( |
const std::string & |
filename | ) |
|
|
inline |
Reads a config file and processes the contents.
Mappings should be in the form of "var_in_kb -> new_var".
- Parameters
-
filename | the name of the configuration file to process |
Definition at line 107 of file VariableMapFilter.h.
◆ initialized_
bool madara::filters::VariableMapFilter::initialized_ |
|
protected |
◆ map_
Map of local KB variable to a variable to add and a VariableReference to the local KB variable.
Definition at line 166 of file VariableMapFilter.h.
The documentation for this class was generated from the following file: