|
Gaudi Framework, version v25r2 |
| Home | Generated: Wed Jun 4 2014 |
#include <MessageSvc.h>


Classes | |
| struct | MsgAry |
| Private helper class to keep the count of messages of a type (MSG::LEVEL). More... | |
Public Types | |
| typedef std::pair< std::string, std::ostream * > | NamedStream |
| typedef std::multimap< int, NamedStream > | StreamMap |
| typedef std::multimap < StatusCode, Message > | MessageMap |
| typedef std::map< std::string, int > | ThresholdMap |
Public Types inherited from extends2< Service, IMessageSvc, IInactiveMessageCounter > | |
| typedef extends2 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces2 < IMessageSvc, IInactiveMessageCounter > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from Service | |
| typedef Gaudi::PluginService::Factory2 < IService *, const std::string &, ISvcLocator * > | Factory |
Public Types inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| typedef CommonMessaging | base_class |
Public Types inherited from implements3< IService, IProperty, IStateful > | |
| typedef implements3 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces3 < IService, IProperty, IStateful > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Public Types inherited from extend_interfaces3< I1, I2, I3 > | |
| typedef mpl::fold< typename I1::iid::iids::type, typename mpl::fold< typename I2::iid::iids::type, typename I3::iid::iids::type, mpl::insert< mpl::_1, mpl::_2 > >::type, mpl::insert< mpl::_1, mpl::_2 > >::type | ext_iids |
| MPL set of interfaces extended by this one. | |
Public Types inherited from extend_interfaces2< I1, I2 > | |
| typedef mpl::fold< typename I1::iid::iids::type, typename I2::iid::iids::type, mpl::insert< mpl::_1, mpl::_2 > >::type | ext_iids |
| MPL set of interfaces extended by this one. | |
Public Member Functions | |
| MessageSvc (const std::string &name, ISvcLocator *svcloc) | |
| virtual | ~MessageSvc () |
| virtual StatusCode | reinitialize () |
| Reinitialize Service. | |
| virtual StatusCode | initialize () |
| Initialize Service. | |
| virtual StatusCode | finalize () |
| Finalize Service. | |
| virtual void | reportMessage (const Message &message) |
| virtual void | reportMessage (const Message &msg, int outputLevel) |
| virtual void | reportMessage (const StatusCode &code, const std::string &source="") |
| virtual void | reportMessage (const char *source, int type, const char *message) |
| virtual void | reportMessage (const std::string &source, int type, const std::string &message) |
| virtual void | insertMessage (const StatusCode &code, const Message &message) |
| virtual void | eraseMessage () |
| virtual void | eraseMessage (const StatusCode &code) |
| virtual void | eraseMessage (const StatusCode &code, const Message &message) |
| virtual void | insertStream (int message_type, const std::string &name, std::ostream *stream) |
| virtual void | eraseStream () |
| virtual void | eraseStream (int message_type) |
| virtual void | eraseStream (int message_type, std::ostream *stream) |
| virtual void | eraseStream (std::ostream *stream) |
| virtual std::ostream * | defaultStream () const |
| virtual void | setDefaultStream (std::ostream *stream) |
| virtual int | outputLevel () const |
| virtual int | outputLevel (const std::string &source) const |
| virtual void | setOutputLevel (int new_level) |
| virtual void | setOutputLevel (const std::string &source, int new_level) |
| virtual bool | useColor () const |
| virtual std::string | getLogColor (int logLevel) const |
| virtual int | messageCount (MSG::Level logLevel) const |
| virtual void | incrInactiveCount (MSG::Level level, const std::string &src) |
Public Member Functions inherited from extends2< Service, IMessageSvc, IInactiveMessageCounter > | |
| extends2 (A1 a1, A2 a2, A3 a3) | |
| Templated constructor with 3 arguments. | |
| extends2 (A1 a1, A2 a2) | |
| Templated constructor with 2 arguments. | |
| extends2 (A1 a1) | |
| Templated constructor with 1 argument. | |
| extends2 () | |
| Default constructor. | |
| virtual void * | i_cast (const InterfaceID &tid) const |
| Implementation of IInterface::i_cast. | |
| virtual StatusCode | queryInterface (const InterfaceID &ti, void **pp) |
| Implementation of IInterface::queryInterface. | |
| virtual std::vector< std::string > | getInterfaceNames () const |
| Implementation of IInterface::getInterfaceNames. | |
| virtual | ~extends2 () |
| Virtual destructor. | |
Public Member Functions inherited from Service | |
| virtual unsigned long | release () |
| Release Interface instance. | |
| virtual const std::string & | name () const |
| Retrieve name of the service. | |
| virtual StatusCode | configure () |
| virtual StatusCode | start () |
| virtual StatusCode | stop () |
| virtual StatusCode | terminate () |
| virtual Gaudi::StateMachine::State | FSMState () const |
| virtual Gaudi::StateMachine::State | targetFSMState () const |
| virtual StatusCode | restart () |
| virtual StatusCode | sysInitialize () |
| Initialize Service. | |
| virtual StatusCode | sysStart () |
| Initialize Service. | |
| virtual StatusCode | sysStop () |
| Initialize Service. | |
| virtual StatusCode | sysFinalize () |
| Finalize Service. | |
| virtual StatusCode | sysReinitialize () |
| Re-initialize the Service. | |
| virtual StatusCode | sysRestart () |
| Re-initialize the Service. | |
| virtual StatusCode | setProperty (const Property &p) |
| virtual StatusCode | setProperty (const std::string &s) |
| virtual StatusCode | setProperty (const std::string &n, const std::string &v) |
| virtual StatusCode | getProperty (Property *p) const |
| virtual const Property & | getProperty (const std::string &name) const |
| virtual StatusCode | getProperty (const std::string &n, std::string &v) const |
| virtual const std::vector < Property * > & | getProperties () const |
| template<class TYPE > | |
| StatusCode | setProperty (const std::string &name, const TYPE &value) |
| set the property form the value | |
| Service (const std::string &name, ISvcLocator *svcloc) | |
| Standard Constructor. | |
| SmartIF< ISvcLocator > & | serviceLocator () const |
| Retrieve pointer to service locator. | |
| StatusCode | setProperties () |
| Method for setting declared properties to the values specified for the job. | |
| template<class T > | |
| StatusCode | service (const std::string &name, const T *&psvc, bool createIf=true) const |
| Access a service by name, creating it if it doesn't already exist. | |
| template<class T > | |
| StatusCode | service (const std::string &name, T *&psvc, bool createIf=true) const |
| template<class T > | |
| StatusCode | service (const std::string &svcType, const std::string &svcName, T *&psvc) const |
| Access a service by name and type, creating it if it doesn't already exist. | |
| template<class T > | |
| Property * | declareProperty (const std::string &name, T &property, const std::string &doc="none") const |
| Declare the named property. | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const |
| Declare remote named properties. | |
| SmartIF< IAuditorSvc > & | auditorSvc () const |
| The standard auditor service.May not be invoked before sysInitialize() has been invoked. | |
Public Member Functions inherited from CommonMessaging< implements3< IService, IProperty, IStateful > > | |
| CommonMessaging (const A1 &a1, const A2 &a2, const A3 &a3) | |
| Templated constructor with 3 arguments. | |
| CommonMessaging (const A1 &a1, const A2 &a2) | |
| Templated constructor with 2 arguments. | |
| CommonMessaging (const A1 &a1) | |
| Templated constructor with 1 argument. | |
| CommonMessaging () | |
| Default constructor. | |
| virtual | ~CommonMessaging () |
| Virtual destructor. | |
| SmartIF< IMessageSvc > & | msgSvc () const |
| The standard message service. | |
| MsgStream & | msgStream () const |
| Return an uninitialized MsgStream. | |
| MsgStream & | msgStream (const MSG::Level level) const |
| Predefined configurable message stream for the efficient printouts. | |
| MsgStream & | always () const |
| shortcut for the method msgStream(MSG::ALWAYS) | |
| MsgStream & | fatal () const |
| shortcut for the method msgStream(MSG::FATAL) | |
| MsgStream & | err () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | error () const |
| shortcut for the method msgStream(MSG::ERROR) | |
| MsgStream & | warning () const |
| shortcut for the method msgStream(MSG::WARNING) | |
| MsgStream & | info () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MsgStream & | debug () const |
| shortcut for the method msgStream(MSG::DEBUG) | |
| MsgStream & | verbose () const |
| shortcut for the method msgStream(MSG::VERBOSE) | |
| MsgStream & | msg () const |
| shortcut for the method msgStream(MSG::INFO) | |
| MSG::Level | msgLevel () const |
| get the output level from the embedded MsgStream | |
| bool | msgLevel (MSG::Level lvl) const |
| get the output level from the embedded MsgStream | |
Public Member Functions inherited from extend_interfaces2< I1, I2 > | |
| virtual | ~extend_interfaces2 () |
| Virtual destructor. | |
Private Types | |
| typedef std::map< std::string, MSG::Color > | ColorMap |
| typedef std::map< std::string, std::ostream * > | LoggedStreamsMap_t |
Private Member Functions | |
| std::string | colTrans (std::string, int) |
| void | initColors (Property &prop) |
| void | setupColors (Property &prop) |
| void | setupLimits (Property &prop) |
| void | setupThreshold (Property &prop) |
| void | setupInactCount (Property &prop) |
| void | setupLogStreams () |
| void | tee (const std::string &sourceName, const std::string &logFileName, const std::set< std::string > &declaredOutFileNames) |
Private Attributes | |
| std::ostream * | m_defaultStream |
| Pointer to the output stream. | |
| Message | m_defaultMessage |
| Default Message. | |
| StreamMap | m_streamMap |
| Stream map. | |
| MessageMap | m_messageMap |
| Message map. | |
| ThresholdMap | m_thresholdMap |
| Output level threshold map. | |
| std::string | m_defaultFormat |
| Default format for the messages. | |
| std::string | m_defaultTimeFormat |
| Default format for timestamps in the messages. | |
| StringArrayProperty | m_thresholdProp [MSG::NUM_LEVELS] |
| Properties controlling. | |
| BooleanProperty | m_color |
| BooleanProperty | m_stats |
| UnsignedIntegerProperty | m_statLevel |
| StringArrayProperty | m_logColors [MSG::NUM_LEVELS] |
| IntegerProperty | m_msgLimit [MSG::NUM_LEVELS] |
| std::string | m_logColorCodes [MSG::NUM_LEVELS] |
| std::map< std::string, MsgAry > | m_sourceMap |
| std::map< std::string, MsgAry > | m_inactiveMap |
| BooleanProperty | m_suppress |
| BooleanProperty | m_inactCount |
| ColorMap | m_colMap |
| int | m_msgCount [MSG::NUM_LEVELS] |
| std::map< std::string, std::string > | m_loggedStreamsName |
| LoggedStreamsMap_t | m_loggedStreams |
| boost::recursive_mutex | m_reportMutex |
| Mutex to synchronize multiple threads printing. | |
| boost::recursive_mutex | m_messageMapMutex |
| Mutex to synchronize multiple access to m_messageMap. | |
| boost::recursive_mutex | m_thresholdMapMutex |
| Mutex to synchronize multiple access to m_thresholdMap (. | |
Additional Inherited Members | |
Protected Member Functions inherited from Service | |
| virtual | ~Service () |
| Standard Destructor. | |
| int | outputLevel () const |
get the Service's output level | |
Protected Attributes inherited from Service | |
| IntegerProperty | m_outputLevel |
| Service output level. | |
| Gaudi::StateMachine::State | m_state |
| Service state. | |
| Gaudi::StateMachine::State | m_targetState |
| Service state. | |
Definition at line 31 of file MessageSvc.h.
|
private |
Definition at line 166 of file MessageSvc.h.
|
private |
Definition at line 172 of file MessageSvc.h.
| typedef std::multimap< StatusCode, Message > MessageSvc::MessageMap |
Definition at line 35 of file MessageSvc.h.
| typedef std::pair< std::string, std::ostream* > MessageSvc::NamedStream |
Definition at line 33 of file MessageSvc.h.
| typedef std::multimap< int, NamedStream > MessageSvc::StreamMap |
Definition at line 34 of file MessageSvc.h.
| typedef std::map< std::string, int > MessageSvc::ThresholdMap |
Definition at line 36 of file MessageSvc.h.
| MessageSvc::MessageSvc | ( | const std::string & | name, |
| ISvcLocator * | svcloc | ||
| ) |
Definition at line 26 of file MessageSvc.cpp.
|
virtual |
Definition at line 100 of file MessageSvc.cpp.
|
private |
Definition at line 461 of file MessageSvc.cpp.
|
inlinevirtual |
Definition at line 93 of file MessageSvc.h.
|
virtual |
Definition at line 734 of file MessageSvc.cpp.
|
virtual |
Definition at line 748 of file MessageSvc.cpp.
|
virtual |
Definition at line 762 of file MessageSvc.cpp.
|
virtual |
Definition at line 645 of file MessageSvc.cpp.
|
virtual |
Definition at line 657 of file MessageSvc.cpp.
|
virtual |
Definition at line 669 of file MessageSvc.cpp.
|
virtual |
Definition at line 694 of file MessageSvc.cpp.
|
virtual |
Finalize Service.
Reimplemented from Service.
Definition at line 332 of file MessageSvc.cpp.
|
virtual |
Definition at line 828 of file MessageSvc.cpp.
|
virtual |
Definition at line 846 of file MessageSvc.cpp.
|
private |
Definition at line 155 of file MessageSvc.cpp.
|
virtual |
Initialize Service.
Reimplemented from Service.
Definition at line 114 of file MessageSvc.cpp.
|
virtual |
Definition at line 719 of file MessageSvc.cpp.
|
virtual |
Definition at line 630 of file MessageSvc.cpp.
|
virtual |
Definition at line 838 of file MessageSvc.cpp.
|
virtual |
Definition at line 783 of file MessageSvc.cpp.
|
virtual |
Definition at line 789 of file MessageSvc.cpp.
|
virtual |
|
virtual |
Definition at line 556 of file MessageSvc.cpp.
|
virtual |
Definition at line 484 of file MessageSvc.cpp.
|
virtual |
Definition at line 593 of file MessageSvc.cpp.
|
virtual |
Definition at line 566 of file MessageSvc.cpp.
|
virtual |
Definition at line 579 of file MessageSvc.cpp.
|
inlinevirtual |
Definition at line 98 of file MessageSvc.h.
|
virtual |
Definition at line 805 of file MessageSvc.cpp.
|
virtual |
Definition at line 811 of file MessageSvc.cpp.
|
private |
Definition at line 197 of file MessageSvc.cpp.
|
private |
Definition at line 320 of file MessageSvc.cpp.
|
private |
Definition at line 249 of file MessageSvc.cpp.
|
private |
Definition at line 853 of file MessageSvc.cpp.
|
private |
Definition at line 276 of file MessageSvc.cpp.
|
private |
Definition at line 891 of file MessageSvc.cpp.
|
inlinevirtual |
Definition at line 116 of file MessageSvc.h.
|
private |
Definition at line 167 of file MessageSvc.h.
|
private |
Definition at line 138 of file MessageSvc.h.
|
private |
Default format for the messages.
Definition at line 135 of file MessageSvc.h.
|
private |
Default Message.
Definition at line 131 of file MessageSvc.h.
|
private |
Pointer to the output stream.
Definition at line 130 of file MessageSvc.h.
|
private |
Default format for timestamps in the messages.
Definition at line 136 of file MessageSvc.h.
|
private |
Definition at line 163 of file MessageSvc.h.
|
private |
Definition at line 162 of file MessageSvc.h.
|
private |
Definition at line 144 of file MessageSvc.h.
|
private |
Definition at line 141 of file MessageSvc.h.
|
private |
Definition at line 173 of file MessageSvc.h.
|
private |
Definition at line 171 of file MessageSvc.h.
|
private |
Message map.
Definition at line 133 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_messageMap.
Definition at line 190 of file MessageSvc.h.
|
private |
Definition at line 169 of file MessageSvc.h.
|
private |
Definition at line 142 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple threads printing.
Definition at line 187 of file MessageSvc.h.
|
private |
Definition at line 162 of file MessageSvc.h.
|
private |
Definition at line 140 of file MessageSvc.h.
|
private |
Definition at line 139 of file MessageSvc.h.
|
private |
Stream map.
Definition at line 132 of file MessageSvc.h.
|
private |
Definition at line 163 of file MessageSvc.h.
|
private |
Output level threshold map.
Definition at line 134 of file MessageSvc.h.
|
mutableprivate |
Mutex to synchronize multiple access to m_thresholdMap (.
Definition at line 194 of file MessageSvc.h.
|
private |
Properties controlling.
Definition at line 137 of file MessageSvc.h.