MADARA  3.4.1
SystemCallSetPrecision.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_SYSTEM_CALL_SET_PRECISION_H_
3 #define _MADARA_SYSTEM_CALL_SET_PRECISION_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
7 #include <string>
8 #include <stdexcept>
11 
12 namespace madara
13 {
14 namespace expression
15 {
16 // Forward declaration.
17 class Visitor;
18 
25 {
26 public:
31  const ComponentNodes& nodes);
32 
36  virtual ~SystemCallSetPrecision(void);
37 
42  virtual madara::knowledge::KnowledgeRecord item(void) const;
43 
49  virtual madara::knowledge::KnowledgeRecord prune(bool& can_change);
50 
57 
62  virtual void accept(Visitor& visitor) const;
63 };
64 }
65 }
66 
67 #endif // _MADARA_NO_KARL_
68 
69 #endif /* _MADARA_SYSTEM_CALL_SET_PRECISION_H_ */
Interface for a MADARA system call.
Sets the double precision for converting doubles to a string and for printing.
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
SystemCallSetPrecision(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
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.