MADARA
3.4.1
|
Filter for printing variables as they arrive and excluding prefixes that are unwanted via a user-specified MADARA StringVector container. More...
#include <PrefixIntConvert.h>
Public Member Functions | |
PrefixIntConvert (const std::vector< std::string > &source_prefixes={}, knowledge::KnowledgeRecord::Integer new_value=0) | |
Constructor. More... | |
virtual | ~PrefixIntConvert ()=default |
Destructor. More... | |
virtual void | filter (knowledge::KnowledgeMap &records, const transport::TransportContext &, knowledge::Variables &) |
Converts the records into integer values. More... | |
Public Attributes | |
std::vector< std::string > | prefixes |
Prefixes to print. More... | |
knowledge::KnowledgeRecord::Integer | value |
integer to convert all valid records to More... | |
Filter for printing variables as they arrive and excluding prefixes that are unwanted via a user-specified MADARA StringVector container.
Definition at line 27 of file PrefixIntConvert.h.
|
inline |
Constructor.
source_prefixes | the static prefixes to use for printing. If empty, print all variables. If contains prefixes, only print variables that begin with contained prefixes |
new_value | the value to change matching prefix variables to |
Definition at line 38 of file PrefixIntConvert.h.
|
virtualdefault |
Destructor.
|
inlinevirtual |
Converts the records into integer values.
records | the aggregate records vector |
Implements madara::filters::AggregateFilter.
Definition at line 53 of file PrefixIntConvert.h.
std::vector<std::string> madara::filters::PrefixIntConvert::prefixes |
Prefixes to print.
If empty, print all variables. If not empty, print only variables with prefixes that exist in the vector.
Definition at line 101 of file PrefixIntConvert.h.
knowledge::KnowledgeRecord::Integer madara::filters::PrefixIntConvert::value |
integer to convert all valid records to
Definition at line 95 of file PrefixIntConvert.h.