Go to the documentation of this file.
   11 #ifndef GAUDIKERNEL_MESSAGE_H 
   12 #define GAUDIKERNEL_MESSAGE_H 
   50   void setType( 
int msg_type ) { m_type = msg_type; }
 
   56   void setSource( std::string_view src ) { m_source = src; }
 
   94   void invalidFormat() 
const;
 
  103   void sizeField( 
const std::string& text, 
bool middle = 
false ) 
const;
 
  106   void setWidth( 
const std::string& formatArg ) 
const;
 
  114   mutable char        m_fill{ 
' ' };                        
 
  115   mutable int         m_width{ 0 };                         
 
  116   mutable bool        m_left{ 
true };                       
 
  123   pthread_t                  m_ecThrd{};                                   
 
  128   static const char FORMAT_PREFIX = 
'%';
 
  132   static const char JUSTIFY_LEFT = 
'L';
 
  135   static const char JUSTIFY_RIGHT = 
'R';
 
  138   static const char MESSAGE = 
'M';
 
  141   static const char TYPE = 
'T';
 
  144   static const char TIME = 
't';
 
  147   static const char UTIME = 
'u';
 
  150   static const char SOURCE = 
'S';
 
  153   static const char COMP = 
'C';
 
  156   static const char SLOT = 
's';
 
  159   static const char EVTNUM = 
'e';
 
  162   static const char THREAD = 
'X';
 
  165   static const char EVENTID = 
'E';
 
  168   static const char FILL = 
'F';
 
  171   static const char WIDTH = 
'W';
 
  175   static constexpr 
const char* DEFAULT_FORMAT = 
"% F%18W%S%7W%R%T %0W%M";
 
  178   static constexpr 
const char* DEFAULT_TIME_FORMAT = 
"%Y-%m-%d %H:%M:%S,%f";
 
  
 
bool operator<(backwards_compatibility_hack_time_timespan, backwards_compatibility_hack_time_timespan)
~Message()=default
Default destructor.
static constexpr ContextID_t INVALID_CONTEXT_ID
Message()=default
Default constructor.
static const std::string getDefaultFormat()
Get the default format string.
void setMessage(std::string msg)
Set the message string.
const std::string & getTimeFormat() const
Get the time format string.
std::ostream & operator<<(std::ostream &o, const Catalog &c)
printout operator
EventContext::ContextID_t getEventSlot() const
static constexpr ContextEvt_t INVALID_CONTEXT_EVT
void setSource(std::string_view src)
Set the message source.
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
EventContext::ContextEvt_t getEventNumber() const
std::string m_message
The message text.
const EventIDBase & getEventID() const
const std::string & getMessage() const
Get the message string.
const std::string & getFormat() const
Get the format string.
EventIDBase m_ecEvtId
Full event ID.
std::string m_formatted_msg
Formatted message.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
static const std::string getDefaultTimeFormat()
Get the default time format string.
int getType() const
Get the message type.
void setType(int msg_type)
Set the message type.
const std::string & getSource() const
Get the message source.
bool operator==(const PropertyId &lhs, const PropertyId &rhs)