MADARA  3.4.1
SystemCallNode.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_SYSTEM_CALL_H_
3 #define _MADARA_SYSTEM_CALL_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
7 #include <string>
8 #include <stdexcept>
10 #include "madara/utility/StdInt.h"
12 
13 namespace madara
14 {
15 namespace expression
16 {
17 // Forward declaration.
18 class Visitor;
19 
25 {
26 public:
31 
36  const ComponentNodes& nodes);
37 
41  virtual ~SystemCallNode(void);
42 
47  virtual madara::knowledge::KnowledgeRecord item(void) const;
48 
54  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change) = 0;
55 
61  const madara::knowledge::KnowledgeUpdateSettings& settings) = 0;
62 
67  virtual void accept(Visitor& visitor) const;
68 
69 protected:
71 };
72 }
73 }
74 
75 #endif // _MADARA_NO_KARL_
76 
77 #endif /* _MADARA_SYSTEM_CALL_H_ */
Interface for a MADARA system call.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
SystemCallNode(madara::knowledge::ThreadSafeContext &context)
Constructor.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)=0
Evaluates the expression tree.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)=0
Prunes the expression tree of unnecessary nodes.
madara::knowledge::ThreadSafeContext & context_
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
virtual ~SystemCallNode(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.