1 #ifndef _MADARA_EVAL_SETTINGS_
2 #define _MADARA_EVAL_SETTINGS_
15 #include "madara/MadaraExport.h"
70 delay_sending_modifieds(false),
71 pre_print_statement(
""),
72 post_print_statement(
"")
105 bool t_treat_globals_as_locals =
false,
bool t_signal_updates =
true,
106 bool t_always_overwrite =
false,
bool t_always_expand =
true,
107 bool t_track_local_changes =
false,
109 std::string t_post_print_statement =
"", uint64_t t_clock_increment = 1,
110 bool t_treat_locals_as_globals =
false,
111 bool t_stream_changes =
true,
112 bool t_exceptions_on_unitialized =
false)
114 t_always_overwrite, t_always_expand, t_track_local_changes,
115 t_clock_increment, t_treat_locals_as_globals,
117 t_exceptions_on_unitialized),
118 delay_sending_modifieds(t_delay_sending_modifieds),
119 pre_print_statement(t_pre_print_statement),
120 post_print_statement(t_post_print_statement)
130 delay_sending_modifieds(rhs.delay_sending_modifieds),
131 pre_print_statement(rhs.pre_print_statement),
132 post_print_statement(rhs.post_print_statement),
133 send_list(rhs.send_list)
Settings for applying knowledge updates.
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.
Encapsulates settings for an evaluation statement.
static const EvalSettings SEND_EXPAND
Settings to immediately send modifieds and expand variables.
std::map< std::string, bool > send_list
Map of record names that are allowed to be sent after operation.
static const EvalSettings DELAY_CHECKPOINT
Settings to delay sending modifieds and enable checkpoints.
static const EvalSettings DELAY_EXPAND
Settings to delay sending modifieds and expand variables.
static const EvalSettings CHECKPOINT
Settings to enable checkpoints.
EvalSettings(bool t_delay_sending_modifieds, bool t_treat_globals_as_locals=false, bool t_signal_updates=true, bool t_always_overwrite=false, bool t_always_expand=true, bool t_track_local_changes=false, std::string t_pre_print_statement="", std::string t_post_print_statement="", uint64_t t_clock_increment=1, bool t_treat_locals_as_globals=false, bool t_stream_changes=true, bool t_exceptions_on_unitialized=false)
Constructor.
EvalSettings()
Constructor.
std::string post_print_statement
Statement to print after evaluations.
static const EvalSettings NO_EXPAND_CHECKPOINT
Settings to not expand odifieds and enable checkpoints.
static const EvalSettings DEFAULT
Settings to use whatever defaults there are.
bool delay_sending_modifieds
Toggle for sending modifieds in a single update event after each evaluation.
static const EvalSettings SEND_NO_EXPAND
Settings to immediately send modifieds and not expand variables.
static const EvalSettings SEND
Settings to immediately send modifieds and expand variables.
static const EvalSettings DELAY
Settings to delay sending modifieds and expand variables.
static const EvalSettings NO_EXPAND
Settings to delay sending modifieds and expand variables.
static const EvalSettings EXPAND
Settings to delay sending modifieds and expand variables.
EvalSettings(const EvalSettings &rhs)
Copy constructor.
static const EvalSettings DELAY_NO_EXPAND
Settings to delay send modifieds and not expand variables.
std::string pre_print_statement
Statement to print before evaluations.