3 #ifndef _MADARA_KNOWLEDGE_RECORD_FILTERS_H_
4 #define _MADARA_KNOWLEDGE_RECORD_FILTERS_H_
24 #include "madara/MadaraExport.h"
33 #ifdef _MADARA_PYTHON_CALLBACKS_
34 #include <boost/python.hpp>
81 void add(uint32_t types,
88 void add(
void (*
function)(
119 void add(uint32_t types, jobject& callable);
125 void add(jobject& callable);
129 #ifdef _MADARA_PYTHON_CALLBACKS_
137 void add(uint32_t types, boost::python::object& callable);
143 void add(boost::python::object& callable);
158 void clear(uint32_t types);
163 void clear_aggregate_filters(
void);
168 void clear_buffer_filters(
void);
215 void filter_encode(
char* source,
int size,
int max_size)
const;
224 void filter_decode(
char* source,
int size,
int max_size)
const;
229 void print_num_filters(
void)
const;
235 size_t get_number_of_filtered_types(
void)
const;
241 size_t get_number_of_aggregate_filters(
void)
const;
247 size_t get_number_of_buffer_filters(
void)
const;
Abstract base class for implementing aggregate record filters via a functor interface.
Abstract base class for implementing buffer filters via a functor interface.
Abstract base class for implementing individual record filters via a functor interface.
Provides map of data types to a filter chain to apply to the data.
FilterMap filters_
Container for mapping types to filter chains.
ThreadSafeContext * context_
Context used by this filter.
AggregateFilters aggregate_filters_
List of aggregate filters.
filters::BufferFilters buffer_filters_
List of buffer filters.
This class encapsulates an entry in a KnowledgeBase.
This class stores variables and their values for use by any entity needing state information in a thr...
Provides an interface for external functions into the MADARA KaRL variable settings.
Provides context about the transport.
std::list< BufferFilter * > BufferFilters
Provides functions and classes for the distributed knowledge base.
std::list< AggregateFilter > AggregateFilters
Typedef for a list of aggregate filters.
std::list< Function > FilterChain
a chain of filters
std::vector< KnowledgeRecord > FunctionArguments
std::map< uint32_t, FilterChain > FilterMap
a map of types to filter chain
::std::map< std::string, KnowledgeRecord > KnowledgeMap
Copyright(c) 2020 Galois.