2 #ifndef _MADARA_EXTERNAL_FUNCTION_VARIABLES_H_ 3 #define _MADARA_EXTERNAL_FUNCTION_VARIABLES_H_ 6 #include "madara/MadaraExport.h" 15 #ifdef _MADARA_PYTHON_CALLBACKS_ 16 #include "madara/Boost.h" 17 #include "boost/python/object.hpp" 22 #include "madara_jni.h" 37 class CompositeFunctionNode;
42 class ThreadSafeContext;
128 false,
true,
false,
false));
141 false,
true,
false,
false));
156 false,
true,
false,
false));
171 false,
true,
false,
false));
181 const std::vector <KnowledgeRecord::Integer> & value,
184 false,
true,
false,
false));
194 const std::vector <KnowledgeRecord::Integer> & value,
197 false,
true,
false,
false));
209 false,
true,
false,
false));
221 false,
true,
false,
false));
232 const double * value,
236 false,
true,
false,
false));
247 const double * value,
251 false,
true,
false,
false));
261 const std::vector <double> & value,
264 false,
true,
false,
false));
274 const std::vector <double> & value,
277 false,
true,
false,
false));
289 false,
true,
false,
false));
301 false,
true,
false,
false));
314 false,
true,
false,
false));
327 false,
true,
false,
false));
338 false,
true,
false,
false));
349 false,
true,
false,
false));
360 false,
true,
false,
false));
371 false,
true,
false,
false));
398 const std::string & key_val_delimiter =
"=")
const;
404 void print (
unsigned int level = 0)
const;
412 void print (
const std::string & statement,
unsigned int level = 0)
const;
453 void apply_modified (
479 #ifndef _MADARA_NO_KARL_ 557 void define_function (
const std::string & name, jobject callable);
560 #ifdef _MADARA_PYTHON_CALLBACKS_ 566 void define_function (
const std::string & name, boost::python::object callable);
585 #endif // _MADARA_NO_KARL_ 604 std::vector <KnowledgeRecord> & target);
629 std::map <std::string, knowledge::KnowledgeRecord> & target);
636 int64_t save_as_karl (
const std::string & filename)
const;
643 int64_t save_context (
const std::string & filename);
652 int64_t save_checkpoint (
const std::string & filename,
653 bool reset_modifieds =
true);
661 int64_t load_context (
const std::string & filename,
This class encapsulates an entry in a KnowledgeBase.
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...
A composite node that calls a function.
Optimized reference to a variable within the knowledge base.
Compiled, optimized KaRL logic.
Provides map of data types to a filter chain to apply to the data.
std::vector< KnowledgeRecord > FunctionArguments
ThreadSafeContext * context_
Variables context that is directly used by the KaRL engine.
madara::knowledge::KnowledgeRecord VALUE_TYPE
std::vector< VariableReference > VariableReferences
a vector of variable references
MADARA_EXPORT bool exists(const char *originator, uint64_t clock, uint32_t update_number, OriginatorFragmentMap &map)
Checks if a fragment already exists within a fragment map.
Provides functions and classes for the distributed knowledge base.
void operator=(const KnowledgeRecordFilters &rhs)
Assignment operator.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
Settings for applying knowledge updates.
Provides an interface for external functions into the MADARA KaRL variable settings.
Variables(const Variables &rhs)
Constructor.
ssize_t write_file(const std::string &filename, void *buffer, size_t size)
Writes a file with provided contents.