MADARA
3.4.1
SystemCallPrintSystemCalls.h
Go to the documentation of this file.
1
/* -*- C++ -*- */
2
#ifndef _MADARA_SYSTEM_CALL_PRINT_SYSTEM_CALLS_H_
3
#define _MADARA_SYSTEM_CALL_PRINT_SYSTEM_CALLS_H_
4
5
#ifndef _MADARA_NO_KARL_
6
7
#include <string>
8
#include <map>
9
#include <stdexcept>
10
#include "
madara/utility/StdInt.h
"
11
#include "
madara/expression/SystemCallNode.h
"
12
13
namespace
madara
14
{
15
namespace
expression
16
{
17
typedef
std::map<std::string, std::string>
SystemCallsHelp
;
18
19
// Forward declaration.
20
class
Visitor
;
21
26
class
SystemCallPrintSystemCalls
:
public
SystemCallNode
27
{
28
public
:
32
SystemCallPrintSystemCalls
(
madara::knowledge::ThreadSafeContext
& context,
33
const
ComponentNodes
& nodes);
34
38
virtual
~SystemCallPrintSystemCalls
(
void
);
39
44
virtual
madara::knowledge::KnowledgeRecord
item
(
void
)
const
;
45
51
virtual
madara::knowledge::KnowledgeRecord
prune
(
bool
& can_change);
52
57
virtual
madara::knowledge::KnowledgeRecord
evaluate
(
58
const
madara::knowledge::KnowledgeUpdateSettings
& settings);
59
64
virtual
void
accept
(
Visitor
& visitor)
const
;
65
66
private
:
67
// calls help menu
68
static
SystemCallsHelp
calls_
;
69
};
70
}
71
}
72
73
#endif
// _MADARA_NO_KARL_
74
75
#endif
/* _MADARA_SYSTEM_CALL_PRINT_SYSTEM_CALLS_H_ */
StdInt.h
SystemCallNode.h
madara::expression::SystemCallNode
Interface for a MADARA system call.
Definition:
SystemCallNode.h:25
madara::expression::SystemCallPrintSystemCalls
Prints all supported system calls.
Definition:
SystemCallPrintSystemCalls.h:27
madara::expression::SystemCallPrintSystemCalls::~SystemCallPrintSystemCalls
virtual ~SystemCallPrintSystemCalls(void)
Destructor.
Definition:
SystemCallPrintSystemCalls.cpp:20
madara::expression::SystemCallPrintSystemCalls::prune
virtual madara::knowledge::KnowledgeRecord prune(bool &can_change)
Prunes the expression tree of unnecessary nodes.
Definition:
SystemCallPrintSystemCalls.cpp:35
madara::expression::SystemCallPrintSystemCalls::accept
virtual void accept(Visitor &visitor) const
Accepts a visitor subclassed from the Visitor class.
Definition:
SystemCallPrintSystemCalls.cpp:330
madara::expression::SystemCallPrintSystemCalls::SystemCallPrintSystemCalls
SystemCallPrintSystemCalls(madara::knowledge::ThreadSafeContext &context, const ComponentNodes &nodes)
Constructor.
Definition:
SystemCallPrintSystemCalls.cpp:13
madara::expression::SystemCallPrintSystemCalls::calls_
static SystemCallsHelp calls_
Definition:
SystemCallPrintSystemCalls.h:68
madara::expression::SystemCallPrintSystemCalls::evaluate
virtual madara::knowledge::KnowledgeRecord evaluate(const madara::knowledge::KnowledgeUpdateSettings &settings)
Evaluates the expression tree.
Definition:
SystemCallPrintSystemCalls.cpp:282
madara::expression::SystemCallPrintSystemCalls::item
virtual madara::knowledge::KnowledgeRecord item(void) const
Returns the value of the node.
Definition:
SystemCallPrintSystemCalls.cpp:26
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::expression::SystemCallsHelp
std::map< std::string, std::string > SystemCallsHelp
Definition:
SystemCallPrintSystemCalls.h:17
madara
Copyright(c) 2020 Galois.
Definition:
AggregateFilter.h:31
include
madara
expression
SystemCallPrintSystemCalls.h
Generated on Sat Jan 20 2024 00:40:26 for MADARA by
1.9.1