Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ColorMsgAlg Class Reference

#include <ColorMsgAlg.h>

List of all members.

Public Member Functions

 ColorMsgAlg (const std::string &name, ISvcLocator *pSvcLocator)
 ColorMsgAlg (const std::string &name, ISvcLocator *pSvcLocator)
 ColorMsgAlg (const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute ()
StatusCode execute ()
StatusCode execute ()
StatusCode finalize ()
StatusCode finalize ()
StatusCode finalize ()
StatusCode initialize ()
StatusCode initialize ()
StatusCode initialize ()


Constructor & Destructor Documentation

ColorMsgAlg::ColorMsgAlg const std::string &  name,
ISvcLocator *  pSvcLocator
 

00013                                                                           :
00014   Algorithm(name, pSvcLocator)
00015 {
00016 
00017 }

ColorMsgAlg::ColorMsgAlg const std::string &  name,
ISvcLocator *  pSvcLocator
 

ColorMsgAlg::ColorMsgAlg const std::string &  name,
ISvcLocator *  pSvcLocator
 


Member Function Documentation

StatusCode ColorMsgAlg::execute  ) 
 

StatusCode ColorMsgAlg::execute  ) 
 

StatusCode ColorMsgAlg::execute  ) 
 

00029                                 {
00030 
00031   MsgStream log(msgSvc(), name());
00032 
00033   log << MSG::FATAL << "THIS IS A FATAL MESSAGE" << endreq;
00034   log << MSG::ERROR << "THIS IS AN ERROR MESSAGE" << endreq;
00035   log << MSG::WARNING << "THIS IS A WARNING MESSAGE" << endreq;
00036   log << MSG::INFO << "THIS IS A INFO MESSAGE" << endreq;
00037   log << MSG::DEBUG << "THIS IS A DEBUG MESSAGE" << endreq;
00038   log << MSG::VERBOSE << "THIS IS A VERBOSE MESSAGE" << endreq;
00039 
00040   log << MSG::ERROR << "this is another";
00041   log.setColor(MSG::GREEN);
00042   log << " error ";
00043   log.resetColor();
00044   log << "message" << endreq;
00045 
00046   log << MSG::WARNING << "This is another";
00047   log.setColor(MSG::PURPLE);
00048   log << " warning ";
00049   log.resetColor();
00050   log << "message" << endreq;
00051 
00052   log << MSG::INFO << "testing colour" << endreq;
00053 
00054   log << MSG::INFO << "setting....";
00055   log.setColor(MSG::YELLOW);
00056   log << "this should be in yellow";
00057   log.setColor(MSG::RED);
00058   log << " and red";
00059   //  log.setColor(MSG::U1);
00060   //  log << "/n this should be in unknown";
00061   log << endreq;
00062 
00063   log << MSG::INFO << "multicolor: ";
00064   log.setColor(MSG::BLUE,MSG::GREEN);
00065   log << "this is blue on green";
00066   log.setColor(MSG::PURPLE,MSG::WHITE);
00067   log << " and purple on white" << endreq;
00068   
00069   log.setColor(MSG::GREEN);
00070   log << MSG::INFO << "This is green. ";
00071   log.setColor(MSG::YELLOW,MSG::BLUE);
00072   log << "This is in yellow on blue. ";
00073   log.resetColor();
00074   log << "This is back to normal" << endreq;
00075 
00076 
00077   return StatusCode::SUCCESS;
00078 
00079 }

StatusCode ColorMsgAlg::finalize  ) 
 

StatusCode ColorMsgAlg::finalize  ) 
 

StatusCode ColorMsgAlg::finalize  ) 
 

00083                                  {
00084 
00085   return StatusCode::SUCCESS;
00086 
00087 }

StatusCode ColorMsgAlg::initialize  ) 
 

StatusCode ColorMsgAlg::initialize  ) 
 

StatusCode ColorMsgAlg::initialize  ) 
 

00021                                    {
00022 
00023   return StatusCode::SUCCESS;
00024   
00025 }


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 15:56:24 2011 for BOSS6.5.5 by  doxygen 1.3.9.1