MADARA  3.4.1
SystemCallPrint.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_SYSTEM_CALL_PRINT_H_
3 #define _MADARA_SYSTEM_CALL_PRINT_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
15 #include <string>
16 #include <stdexcept>
17 #include "madara/utility/StdInt.h"
19 
20 namespace madara
21 {
22 namespace expression
23 {
24 // Forward declaration.
25 class Visitor;
26 
32 {
33 public:
38  const ComponentNodes& nodes);
39 
43  virtual ~SystemCallPrint(void);
44 
49  virtual madara::knowledge::KnowledgeRecord item(void) const;
50 
56  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
57 
64 
69  virtual void accept(Visitor& visitor) const;
70 };
71 }
72 }
73 
74 #endif // _MADARA_NO_KARL_
75 
76 #endif /* _MADARA_SYSTEM_CALL_PRINT_H_ */
Interface for a MADARA system call.
Prints a Knowledge Record.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
SystemCallPrint(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
virtual ~SystemCallPrint(void)
Destructor.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:93
This class encapsulates an entry in a KnowledgeBase.
Settings for applying knowledge updates.
This class stores variables and their values for use by any entity needing state information in a thr...
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Copyright(c) 2020 Galois.