MADARA
3.4.1
|
Filter for integerizing variables (usually before sending) More...
#include <DynamicPrefixIntConvert.h>
Public Member Functions | |
DynamicPrefixIntConvert (const std::string &string_vector_name=".prefixes", knowledge::KnowledgeRecord::Integer new_value=0) | |
Constructor. More... | |
virtual | ~DynamicPrefixIntConvert ()=default |
Destructor. More... | |
virtual void | filter (knowledge::KnowledgeMap &records, const transport::TransportContext &, knowledge::Variables &vars) |
Converts records to integers. More... | |
Public Attributes | |
std::string | name |
The string vector name to bind to inside the knowledge base. More... | |
knowledge::KnowledgeRecord::Integer | value |
integer to convert all valid records to More... | |
Protected Attributes | |
knowledge::containers::StringVector | prefixes_ |
A map of discovered peers. More... | |
Private Attributes | |
bool | initialized_ |
Tracks if the prefix vector has been initialized. More... | |
Filter for integerizing variables (usually before sending)
Definition at line 26 of file DynamicPrefixIntConvert.h.
|
inline |
Constructor.
string_vector_name | the name of the string vector in the KB to use for prefix information |
new_value | the value to change matching prefix variables to |
Definition at line 36 of file DynamicPrefixIntConvert.h.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Converts records to integers.
records | the aggregate records vector |
vars | context for querying current program state |
Implements madara::filters::AggregateFilter.
Definition at line 55 of file DynamicPrefixIntConvert.h.
|
private |
Tracks if the prefix vector has been initialized.
Definition at line 118 of file DynamicPrefixIntConvert.h.
std::string madara::filters::DynamicPrefixIntConvert::name |
The string vector name to bind to inside the knowledge base.
Definition at line 124 of file DynamicPrefixIntConvert.h.
|
protected |
A map of discovered peers.
Definition at line 133 of file DynamicPrefixIntConvert.h.
knowledge::KnowledgeRecord::Integer madara::filters::DynamicPrefixIntConvert::value |
integer to convert all valid records to
Definition at line 127 of file DynamicPrefixIntConvert.h.