MADARA  3.2.3
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 
14 namespace madara
15 {
16  namespace expression
17  {
18  // Forward declaration.
19  class Visitor;
20 
26  {
27  public:
33 
39  const ComponentNodes & nodes);
40 
44  virtual ~SystemCallNode (void);
45 
50  virtual madara::knowledge::KnowledgeRecord item (void) const;
51 
57  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change)
58  = 0;
59 
66  = 0;
67 
72  virtual void accept (Visitor &visitor) const;
73 
74  protected:
75 
77  };
78  }
79 }
80 
81 #endif // _MADARA_NO_KARL_
82 
83 #endif /* _MADARA_SYSTEM_CALL_H_ */
This class encapsulates an entry in a KnowledgeBase.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
This class stores variables and their values for use by any entity needing state information in a thr...
virtual ~SystemCallNode(void)
Destructor.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)=0
Evaluates the expression tree.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
madara::knowledge::ThreadSafeContext & context_
Interface for a MADARA system call.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)=0
Prunes the expression tree of unnecessary nodes.
SystemCallNode(madara::knowledge::ThreadSafeContext &context)
Constructor.