11 #ifndef GAUDIKERNEL_IMESSAGESVC_H 12 #define GAUDIKERNEL_IMESSAGESVC_H 56 virtual void reportMessage(
const Message&
msg,
int outputLevel ) = 0;
61 virtual void reportMessage(
const Message& message ) = 0;
83 virtual void reportMessage(
const char* source,
int type,
const char* message =
"" ) = 0;
92 virtual void eraseMessage() = 0;
95 virtual void eraseMessage(
const StatusCode& code ) = 0;
111 virtual void eraseStream() = 0;
114 virtual void eraseStream(
int message_type ) = 0;
133 virtual void setDefaultStream(
std::ostream* stream ) = 0;
136 virtual int outputLevel()
const = 0;
141 virtual int outputLevel( std::string_view source )
const = 0;
144 virtual void setOutputLevel(
int new_level ) = 0;
150 virtual void setOutputLevel( std::string_view source,
int new_level ) = 0;
154 virtual bool useColor()
const = 0;
159 virtual std::string getLogColor(
int logLevel )
const = 0;
178 #endif // GAUDIKERNEL_IMESSAGESVC_H
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
The IMessage is the interface implemented by the message service.
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Print levels enumeration.