3 #ifndef _MADARA_KNOWLEDGE_RECORD_FILTERS_H_ 4 #define _MADARA_KNOWLEDGE_RECORD_FILTERS_H_ 23 #include "madara/MadaraExport.h" 32 #ifdef _MADARA_PYTHON_CALLBACKS_ 33 #include <boost/python.hpp> 80 void add (uint32_t types,
88 void add (
void (*
function) (
120 void add (uint32_t types,
127 void add (jobject & callable);
131 #ifdef _MADARA_PYTHON_CALLBACKS_ 139 void add (uint32_t types,
140 boost::python::object & callable);
146 void add (boost::python::object & callable);
161 void clear (uint32_t types);
166 void clear_aggregate_filters (
void);
171 void clear_buffer_filters (
void);
219 void filter_encode (
unsigned char * source,
int size,
int max_size)
const;
228 void filter_decode (
unsigned char * source,
int size,
int max_size)
const;
233 void print_num_filters (
void)
const;
239 size_t get_number_of_filtered_types (
void)
const;
245 size_t get_number_of_aggregate_filters (
void)
const;
251 size_t get_number_of_buffer_filters (
void)
const;
277 #endif // _MADARA_KNOWLEDGE_RECORD_FILTERS_H_ This class encapsulates an entry in a KnowledgeBase.
Abstract base class for implementing aggregate record filters via a functor interface.
filters::BufferFilters buffer_filters_
List of buffer filters.
ThreadSafeContext * context_
Context used by this filter.
This class stores variables and their values for use by any entity needing state information in a thr...
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.
std::vector< KnowledgeRecord > FunctionArguments
Provides context about the transport.
AggregateFilters aggregate_filters_
List of aggregate filters.
::std::map< std::string, KnowledgeRecord > KnowledgeMap
std::list< AggregateFilter > AggregateFilters
Typedef for a list of aggregate filters.
std::list< BufferFilter * > BufferFilters
Provides functions and classes for the distributed knowledge base.
std::map< uint32_t, FilterChain > FilterMap
a map of types to filter chain
Copyright (c) 2015 Carnegie Mellon University.
Abstract base class for implementing buffer filters via a functor interface.
Provides an interface for external functions into the MADARA KaRL variable settings.
std::list< Function > FilterChain
a chain of filters
FilterMap filters_
Container for mapping types to filter chains.