MADARA  3.2.3
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 
21 namespace madara
22 {
23  namespace expression
24  {
25  // Forward declaration.
26  class Visitor;
27 
33  {
34  public:
40  const ComponentNodes & nodes);
41 
45  virtual ~SystemCallPrint (void);
46 
51  virtual madara::knowledge::KnowledgeRecord item (void) const;
52 
58  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
59 
66 
71  virtual void accept (Visitor &visitor) const;
72  };
73  }
74 }
75 
76 #endif // _MADARA_NO_KARL_
77 
78 #endif /* _MADARA_SYSTEM_CALL_PRINT_H_ */
This class encapsulates an entry in a KnowledgeBase.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
This class stores variables and their values for use by any entity needing state information in a thr...
virtual ~SystemCallPrint(void)
Destructor.
SystemCallPrint(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:91
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Interface for a MADARA system call.
Settings for applying knowledge updates.
Copyright (c) 2015 Carnegie Mellon University.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Prints a Knowledge Record.