CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
zmex::ZMexValidationStyle Class Reference

#include <ZMexLogger.h>

+ Inheritance diagram for zmex::ZMexValidationStyle:

Public Member Functions

 ZMexValidationStyle ()
 
 ZMexValidationStyle (std::ostream &os)
 
virtual ~ZMexValidationStyle ()
 
virtual ZMexValidationStyleclone () const
 
virtual ZMexLogResult emit (const ZMexception &x)
 
virtual ZMexLogResult emit (const std::string &s)
 
virtual bool isTimeDesired () const
 
virtual bool isFilePathDesired () const
 
- Public Member Functions inherited from zmex::ZMexLogBehavior
 ZMexLogBehavior ()
 
virtual ~ZMexLogBehavior ()
 
virtual ZMexLogBehaviorclone () const
 
virtual ZMexLogResult emit (const ZMexception &x)
 
virtual ZMexLogResult emit (const std::string &s)
 
virtual bool isTimeDesired () const
 
virtual bool isFilePathDesired () const
 

Detailed Description

Definition at line 220 of file ZMexLogger.h.

Constructor & Destructor Documentation

◆ ZMexValidationStyle() [1/2]

zmex::ZMexValidationStyle::ZMexValidationStyle ( )

Definition at line 204 of file ZMexLogger.cc.

206, myOs( std::cerr )
207{ ; }

Referenced by clone().

◆ ZMexValidationStyle() [2/2]

zmex::ZMexValidationStyle::ZMexValidationStyle ( std::ostream &  os)

Definition at line 209 of file ZMexLogger.cc.

211, myOs( os )
212{ ; }

◆ ~ZMexValidationStyle()

zmex::ZMexValidationStyle::~ZMexValidationStyle ( )
virtual

Definition at line 214 of file ZMexLogger.cc.

214{ ; }

Member Function Documentation

◆ clone()

ZMexValidationStyle * zmex::ZMexValidationStyle::clone ( ) const
virtual

Reimplemented from zmex::ZMexLogBehavior.

Definition at line 217 of file ZMexLogger.cc.

217{ return new ZMexValidationStyle( *this ); }

◆ emit() [1/2]

ZMexLogResult zmex::ZMexValidationStyle::emit ( const std::string &  s)
virtual

Reimplemented from zmex::ZMexLogBehavior.

Definition at line 228 of file ZMexLogger.cc.

230 {
231 //DEBUG cerr << "ZMexValidationStyle::emit( \"" << s << "\" )" << endl;
232
233 // Emit the message, flushing the output right away:
234 myOs << s << std::flush;
235 return ZMexLOGGED;
236}
@ ZMexLOGGED
Definition: ZMexLogResult.h:19

◆ emit() [2/2]

ZMexLogResult zmex::ZMexValidationStyle::emit ( const ZMexception x)
virtual

Reimplemented from zmex::ZMexLogBehavior.

Definition at line 219 of file ZMexLogger.cc.

219 {
220 std::string s = x.logMessage();
221 if ( s != "" )
222 return emit( s );
223
224 x.logObject();
225 return ZMexLOGGED;
226}
virtual ZMexLogResult emit(const ZMexception &x)
Definition: ZMexLogger.cc:219

Referenced by emit().

◆ isFilePathDesired()

bool zmex::ZMexValidationStyle::isFilePathDesired ( ) const
virtual

Reimplemented from zmex::ZMexLogBehavior.

Definition at line 239 of file ZMexLogger.cc.

239{ return false; }

◆ isTimeDesired()

bool zmex::ZMexValidationStyle::isTimeDesired ( ) const
virtual

Reimplemented from zmex::ZMexLogBehavior.

Definition at line 238 of file ZMexLogger.cc.

238{ return false; }

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