ATLAS Offline Software
Loading...
Searching...
No Matches
IOVCallbackError Class Reference

#include <IOVCallbackError.h>

Inheritance diagram for IOVCallbackError:
Collaboration diagram for IOVCallbackError:

Public Member Functions

 IOVCallbackError (const std::string &source)
virtual ~IOVCallbackError () throw ()
virtual const std::string & source () const
virtual std::ostream & printOut (std::ostream &os=std::cerr) const
virtual MsgStream & printOut (MsgStream &os) const
virtual const char * what () const throw ()
 method from std::exception

Private Attributes

std::string m_src

Friends

std::ostream & operator<< (std::ostream &os, const IOVCallbackError &ge)
 overloaded printout to std::ostream
std::ostream & operator<< (std::ostream &os, const IOVCallbackError *pge)
MsgStream & operator<< (MsgStream &os, const IOVCallbackError &ge)
 overloaded printout to MsgStream
MsgStream & operator<< (MsgStream &os, const IOVCallbackError *pge)
 overloaded printout to MsgStream

Detailed Description

Definition at line 14 of file IOVCallbackError.h.

Constructor & Destructor Documentation

◆ IOVCallbackError()

IOVCallbackError::IOVCallbackError ( const std::string & source)
inline

Definition at line 26 of file IOVCallbackError.h.

26 :
27 m_src(source) { }
virtual const std::string & source() const

◆ ~IOVCallbackError()

virtual IOVCallbackError::~IOVCallbackError ( )
throw ( )
inlinevirtual

Definition at line 29 of file IOVCallbackError.h.

29{}

Member Function Documentation

◆ printOut() [1/2]

virtual MsgStream & IOVCallbackError::printOut ( MsgStream & os) const
inlinevirtual

Definition at line 40 of file IOVCallbackError.h.

40 {
41 os << "IOVCallbackError generated by " << source();
42 return os;
43 }

◆ printOut() [2/2]

virtual std::ostream & IOVCallbackError::printOut ( std::ostream & os = std::cerr) const
inlinevirtual

Definition at line 35 of file IOVCallbackError.h.

35 {
36 os << "IOVCallbackError generated by " << source();
37 return os;
38 }

◆ source()

virtual const std::string & IOVCallbackError::source ( ) const
inlinevirtual

Definition at line 31 of file IOVCallbackError.h.

31 {
32 return m_src;
33 }

◆ what()

virtual const char * IOVCallbackError::what ( ) const
throw ( )
inlinevirtual

method from std::exception

Definition at line 46 of file IOVCallbackError.h.

46{ return source().c_str() ; }

◆ operator<< [1/4]

MsgStream & operator<< ( MsgStream & os,
const IOVCallbackError & ge )
friend

overloaded printout to MsgStream

Definition at line 61 of file IOVCallbackError.h.

61 {
62 return ge.printOut( os );
63}
virtual std::ostream & printOut(std::ostream &os=std::cerr) const

◆ operator<< [2/4]

MsgStream & operator<< ( MsgStream & os,
const IOVCallbackError * pge )
friend

overloaded printout to MsgStream

Definition at line 65 of file IOVCallbackError.h.

65 {
66 return (0 == pge) ?
67 ( os << " IOVCallbackError* points to NULL!" ) : ( os << *pge );
68}

◆ operator<< [3/4]

std::ostream & operator<< ( std::ostream & os,
const IOVCallbackError & ge )
friend

overloaded printout to std::ostream

Definition at line 53 of file IOVCallbackError.h.

53 {
54 return ge.printOut( os );
55}

◆ operator<< [4/4]

std::ostream & operator<< ( std::ostream & os,
const IOVCallbackError * pge )
friend

Definition at line 56 of file IOVCallbackError.h.

57{ return (0 == pge) ?
58 ( os << " IOVCallbackError* points to NULL!" ) : ( os << *pge ); }

Member Data Documentation

◆ m_src

std::string IOVCallbackError::m_src
private

Definition at line 49 of file IOVCallbackError.h.


The documentation for this class was generated from the following file: