MADARA
3.4.1
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
"
18
#include "
madara/expression/SystemCallNode.h
"
19
20
namespace
madara
21
{
22
namespace
expression
23
{
24
// Forward declaration.
25
class
Visitor;
26
31
class
SystemCallPrint
:
public
SystemCallNode
32
{
33
public
:
37
SystemCallPrint
(
madara::knowledge::ThreadSafeContext
& context,
38
const
ComponentNodes
& nodes);
39
43
virtual
~SystemCallPrint
(
void
);
44
49
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
50
56
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
57
62
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
63
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
64
69
virtual
void
accept
(
Visitor
& visitor)
const
;
70
};
71
}
72
}
73
74
#endif
// _MADARA_NO_KARL_
75
76
#endif
/* _MADARA_SYSTEM_CALL_PRINT_H_ */
StdInt.h
SystemCallNode.h
madara::expression::SystemCallNode
Interface for a MADARA system call.
Definition:
SystemCallNode.h:25
madara::expression::SystemCallPrint
Prints a Knowledge Record.
Definition:
SystemCallPrint.h:32
madara::expression::SystemCallPrint::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallPrint.cpp:66
madara::expression::SystemCallPrint::SystemCallPrint
SystemCallPrint(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallPrint.cpp:9
madara::expression::SystemCallPrint::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallPrint.cpp:27
madara::expression::SystemCallPrint::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallPrint.cpp:18
madara::expression::SystemCallPrint::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallPrint.cpp:115
madara::expression::SystemCallPrint::~SystemCallPrint
virtual ~SystemCallPrint(void)
Destructor.
Definition:
SystemCallPrint.cpp:16
madara::expression::Visitor
Abstract base class for all visitors to all classes that derive from ComponentNode.
Definition:
Visitor.h:93
madara::knowledge::KnowledgeRecord
This class encapsulates an entry in a KnowledgeBase.
Definition:
KnowledgeRecord.h:88
madara::knowledge::KnowledgeUpdateSettings
Settings for applying knowledge updates.
Definition:
KnowledgeUpdateSettings.h:24
madara::knowledge::ThreadSafeContext
This class stores variables and their values for use by any entity needing state information in a thr...
Definition:
ThreadSafeContext.h:76
madara::expression::ComponentNodes
std::deque< ComponentNode * > ComponentNodes
a vector of Component Nodes
Definition:
ComponentNode.h:100
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
expression
SystemCallPrint.h
Generated on Sat Jan 20 2024 00:40:26 for MADARA by
1.9.1