MADARA  3.1.8
SystemCallToHostDirs.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 #ifndef _MADARA_SYSTEM_CALL_TO_HOST_DIRS_H_
3 #define _MADARA_SYSTEM_CALL_TO_HOST_DIRS_H_
4 
5 #ifndef _MADARA_NO_KARL_
6 
7 #include <string>
8 #include <stdexcept>
11 
12 
13 namespace madara
14 {
15  namespace expression
16  {
17  // Forward declaration.
18  class Visitor;
19 
26  {
27  public:
33  const ComponentNodes & nodes);
34 
38  virtual ~SystemCallToHostDirs (void);
39 
44  virtual madara::knowledge::KnowledgeRecord item (void) const;
45 
51  virtual madara::knowledge::KnowledgeRecord prune (bool & can_change);
52 
59 
64  virtual void accept (Visitor &visitor) const;
65  };
66  }
67 }
68 
69 #endif // _MADARA_NO_KARL_
70 
71 #endif /* _MADARA_SYSTEM_CALL_TO_HOST_DIRS_H_ */
This class encapsulates an entry in a KnowledgeBase.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
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.
This class stores variables and their values for use by any entity needing state information in a thr...
SystemCallToHostDirs(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition: Visitor.h:90
Interface for a MADARA system call.
Ensures the directory delimiters are appropriate for the host operating system (e.g., on Windows, &#39;\&#39; and Linux, &#39;/&#39;)
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.