2 #ifndef _MADARA_NO_KARL_ 46 bool arg_can_change =
false;
47 result =
nodes_[0]->prune (arg_can_change);
49 if (!arg_can_change && dynamic_cast <LeafNode *> (
nodes_[0]) == 0)
58 "KARL COMPILE ERROR: System call to_host_dirs requires 1 argument," 59 "e.g., #to_host_dirs ('files/file.txt') will convert to files\file.txt" 80 "System call to_host_dirs is returning the proper directory structure " 81 "of %s.\n", statement.c_str ());
89 "KARL COMPILE ERROR: System call to_host_dirs requires 1 argument," 90 "e.g., #to_host_dirs ('files/file.txt') will convert to files\file.txt" 102 visitor.
visit (*
this);
105 #endif // _MADARA_NO_KARL_ This class encapsulates an entry in a KnowledgeBase.
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
madara::knowledge::KnowledgeRecord KnowledgeRecord
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.
logger::Logger * logger_
handle the context
This class stores variables and their values for use by any entity needing state information in a thr...
Defines a node that contains a madara::knowledge::KnowledgeRecord::Integer value. ...
SystemCallToHostDirs(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
#define madara_logger_ptr_log(logger, level,...)
Fast version of the madara::logger::log method for Logger pointers.
Abstract base class for all visitors to all classes that derive from ComponentNode.
Interface for a MADARA system call.
Settings for applying knowledge updates.
virtual void visit(const LeafNode &node)=0
Visit a LeafNode.
virtual ~SystemCallToHostDirs(void)
Destructor.
MADARA_Export std::string clean_dir_name(const std::string &target)
Substitutes the appropriate directory delimiter, which may help with portability between operating sy...
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.