35 #ifndef _OutputDefinitions_H__ 36 #define _OutputDefinitions_H__ 49 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 50 #define REGISTER_OUTPUT_CONTEXT(name) \ 51 inline const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 53 #define REGISTER_OUTPUT_CONTEXT(name) \ 54 inline const OutputContextContainer& name() { return registerContext(#name); } 67 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 68 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 69 inline const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; } 71 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 72 inline const OutputContextContainer& subname() { return registerContext(#name, #subname); } 106 using namespace level;
120 return this->mask == other.
mask && this->sub_id == other.
sub_id && this->name == other.
name;
134 static constexpr OutputContextMask
all = 0xFFFFFFFFFFFFFFFFull;
135 static constexpr OutputContextMask
none = 0x0000000000000000ull;
Output level, used to notify the user about the program's state.
Definition: OutputDefinitions.h:93
#define _UtilExport
Definition: UtilPrereqs.h:60
static constexpr OutputContextSubID no_subcontext
Used as ID for contexts which are not sub-contexts.
Definition: OutputDefinitions.h:137
OutputContextMask mask
The mask of the context (or the mask of the main-context if this container defines a sub-context) ...
Definition: OutputDefinitions.h:114
bool operator==(const OutputContextContainer &other) const
Definition: OutputDefinitions.h:118
Stores all information about a context.
Definition: OutputDefinitions.h:112
OutputContextSubID sub_id
The id of the sub-context (or context::no_subcontext if this container doesn't define a sub-context) ...
Definition: OutputDefinitions.h:115
::std::string string
Definition: gtest-port.h:756
Output level, usually not visible, used for unimportant debug information.
Definition: OutputDefinitions.h:99
Output level, used for warnings which are important for developers.
Definition: OutputDefinitions.h:96
Output level, used for messages directed to the user (e.g. "Press any key to continue") ...
Definition: OutputDefinitions.h:89
#define REGISTER_OUTPUT_SUBCONTEXT(name, subname)
Defines a sub-context.
Definition: OutputDefinitions.h:68
Output level, usually not visible, used for unimportant debug information (even less important than v...
Definition: OutputDefinitions.h:101
OutputLevel
Output levels define type and importance of an output message.
Definition: OutputDefinitions.h:84
Output level, used to log the program's internal state in the log file.
Definition: OutputDefinitions.h:97
Output level, used for error messages which are important for developers.
Definition: OutputDefinitions.h:95
Level mask with all bits set to 0.
Definition: OutputDefinitions.h:87
Output level, used for error messages which are important for the user.
Definition: OutputDefinitions.h:91
_UtilExport const OutputContextContainer & registerContext(const std::string &name, const std::string &subname="")
Registers a context.
Definition: OutputManager.cc:260
Output level, used for temporary debug output while writing code.
Definition: OutputDefinitions.h:90
uint16_t OutputContextSubID
Used to store the IDs of sub-contexts. Each number except context::no_subcontext defines a sub-contex...
Definition: OutputDefinitions.h:109
#define REGISTER_OUTPUT_CONTEXT(name)
Defines a context function with a given name.
Definition: OutputDefinitions.h:50
std::string name
The name of this context.
Definition: OutputDefinitions.h:116
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the util library ...
Output level, usually not visible, used for unimportant debug information (less important than verbos...
Definition: OutputDefinitions.h:100
The Scripts' code is executed through lua.
Level mask with all bits set to 1.
Definition: OutputDefinitions.h:86
Output level, used to log information about the program's progress in the log file.
Definition: OutputDefinitions.h:98
const OutputContextContainer &( OutputContextFunction)()
Definition: OutputDefinitions.h:124
Output level, used for warnings which are important for the user.
Definition: OutputDefinitions.h:92
uint64_t OutputContextMask
Used to store the context masks. Each bit defines a context.
Definition: OutputDefinitions.h:108
Output level, used to provide the user with additional progress information.
Definition: OutputDefinitions.h:94