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 <PrefixPrint.h>
Public Member Functions | |
PrefixPrint (const std::vector< std::string > &source_prefixes={}, bool print_verbose=true) | |
Constructor. More... | |
virtual | ~PrefixPrint () |
Destructor. More... | |
virtual void | filter (knowledge::KnowledgeMap &records, const transport::TransportContext &transport_context, knowledge::Variables &) |
Prints records and transport context information. More... | |
Public Attributes | |
std::vector< std::string > | prefixes |
Prefixes to print. More... | |
bool | verbose |
Filter for printing variables as they arrive and excluding prefixes that are unwanted via a user-specified MADARA StringVector container.
Definition at line 28 of file PrefixPrint.h.
|
inline |
Constructor.
print_verbose | if true, print more verbose information |
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 |
Definition at line 38 of file PrefixPrint.h.
|
inlinevirtual |
Destructor.
Definition at line 47 of file PrefixPrint.h.
|
inlinevirtual |
Prints records and transport context information.
records | the aggregate records vector |
transport_context | describes transport information |
Implements madara::filters::AggregateFilter.
Definition at line 56 of file PrefixPrint.h.
std::vector<std::string> madara::filters::PrefixPrint::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 152 of file PrefixPrint.h.
bool madara::filters::PrefixPrint::verbose |
Definition at line 153 of file PrefixPrint.h.