35 #include <source_location>
Flags * flags
Global variable, used in every application.
std::basic_string< CepsChar > CepsString
C++ format string.
Base class for other (big) CEPS classes. All classes can get a pointer to this base class and also co...
Management of run options.
std::ofstream m_debugLog
Debug file stream (opened in init, closed at finalize)
void enableProfiling()
Activates profiling, opens profiling log stream.
CepsBool m_testing
Used for unit tests.
void disableWarnings()
Disables warning messages.
Flags(Flags &that)=delete
Copy construction. Deleted. Flags should not be copied.
CepsBool warnings() const
True if option -w was set in command line.
std::ofstream & getDebugLog()
the Log stream
CepsBool testing() const
Tells if currently running in a test suite (switched in CepsGlobalFixture.hpp)
CepsString m_profilingLogName
Profiling file name.
CepsString getDebugLogName() const
Name has the form debug_PID.log (PID of master node)
std::ofstream m_profilingLog
Profiling file stream (opened in init, closed at finalize)
std::ofstream & getProfilingLog()
The Profiling stream.
void disableTesting()
Disables testing (CepsException for errors now cause abort)
CepsBool verbose() const
True if option -d was set in command line.
void printHelp(CepsChar **argv)
Display info on how to type in command line.
CepsString m_debugLogName
Debug file name.
CepsBool m_verbose
Blah blah if true.
CepsString getProfilingLogName() const
Name has the form profiling_PID.log (PID of master node)
void enableTesting()
Enables testing (CepsException for errors do not cause abort)
CepsBool m_warnings
More blah blah if true.
CepsBool m_profiling
Profiling option.
CepsBool profiling() const
True if option -p was set in command line.
~Flags()
If needed closes the logs with current time.
void enableDebug()
Activates profiling, opens debug log stream.
void enableWarnings()
Enables warning messages.
Flags & operator=(Flags &that)=delete
Assignment operator. Deleted, flags should not be copied.
void setVerbose(CepsBool v)
Enable/disable verbosity.
A namespace for all utility methods.
CepsBool isVerbose()
Check if the verbosity is enabled on the master proc (always false on slave procs).
std::ofstream & debugLog()
Get the DebugLog used in Ceps.
CepsBool isWarnings()
Check if we enable the warnings on the master proc (always false on slave procs).
CepsBool isDebug()
Check if we enable the debug on the master proc (always false on slave procs).
std::ofstream & profilingLog()
Get the ProfilingLog used in Ceps.
void disableAbortOnError()
Set testing to true. Exceptions do not terminate program.
void enableAbortOnError()
Set testing to false. Exceptions terminate program.
CepsBool isProfiling()
Check if we are currently profiling on the master proc (always false on slave procs).