MADARA  3.4.1
KnowledgeReferenceSettings.h
Go to the documentation of this file.
1 #ifndef _MADARA_KNOWLEDGE_REFERENCE_SETTINGS_H_
2 #define _MADARA_KNOWLEDGE_REFERENCE_SETTINGS_H_
3 
12 #include "madara/MadaraExport.h"
13 #include "madara/utility/StdInt.h"
14 
15 namespace madara
16 {
17 namespace knowledge
18 {
22 class MADARA_EXPORT KnowledgeReferenceSettings
23 {
24 public:
25  /* Convenient pre-defined settings objects */
28 
33  : expand_variables(true), never_exit(false),
34  exception_on_unitialized(false)
35  {
36  }
37 
43  KnowledgeReferenceSettings(bool t_expand_variables, bool t_exception=false)
44  : expand_variables(t_expand_variables), never_exit(false),
45  exception_on_unitialized(t_exception)
46  {
47  }
48 
54  : expand_variables(rhs.expand_variables), never_exit(rhs.never_exit),
55  exception_on_unitialized(rhs.exception_on_unitialized)
56  {
57  }
58 
63 
69 
73  bool never_exit;
74 
77 };
78 }
79 }
80 #endif // _MADARA_KNOWLEDGE_REFERENCE_SETTINGS_H_
Settings for applying knowledge updates.
bool expand_variables
Toggle for always attempting to expand variables (true) or never expanding variables (false)
bool never_exit
Never allow MADARA to exit, even with fatal errors or invalid state.
static const KnowledgeReferenceSettings NO_EXPAND
bool exception_on_unitialized
throw an exception if reference is on uninitialized variable
static const KnowledgeReferenceSettings DEFAULT
KnowledgeReferenceSettings(const KnowledgeReferenceSettings &rhs)
Copy constructor.
KnowledgeReferenceSettings(bool t_expand_variables, bool t_exception=false)
Constructor.
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.