Cat
MsgSvc.h
Go to the documentation of this file.
1 // $Id: $
2 #ifndef INC_MSGSVC_H
3 #define INC_MSGSVC_H 1
4 
5 // Include files
6 #include <string>
7 
8 #include <iostream>
9 #include <string>
10 #include <vector>
11 #include <stdio.h>
12 #include <time.h>
13 
21 class MsgSvc {
22 
23 public:
26 
28  MsgSvc( );
29  virtual ~MsgSvc( );
30  void msgSvc ( MsgSvc::MsgLevel , std::string, std::string call = std::string(""));
31 
32  void setLineLength ( int linelength ) { m_lineLength = linelength ; } //< Set Msg line length
33  void setCallSize ( int callSize ) { m_callSize = callSize ; } //< Set Msg call field size
34 
35 protected:
36  void log ( MsgSvc::MsgLevel , std::string, std::string );
37 
38 private:
39 
40  std::vector<std::string> colors;
41  int m_callSize ;
43 
44  std::string logtime();
45  std::string m_origin;
46 };
47 
48 #endif // INC_MSGSVC_H
std::string m_origin
Definition: MsgSvc.h:45
int m_callSize
Definition: MsgSvc.h:41
MsgSvc()
Standard constructor.
Definition: MsgSvc.cpp:19
virtual ~MsgSvc()
Destructor.
Definition: MsgSvc.cpp:36
int m_lineLength
Definition: MsgSvc.h:42
std::vector< std::string > colors
Definition: MsgSvc.h:40
void setCallSize(int callSize)
Definition: MsgSvc.h:33
MsgLevel
Definition: MsgSvc.h:24
MsgColor
Definition: MsgSvc.h:25
void setLineLength(int linelength)
Definition: MsgSvc.h:32
void log(MsgSvc::MsgLevel, std::string, std::string)
Definition: MsgSvc.cpp:69
std::string logtime()
Definition: MsgSvc.cpp:54
Definition: MsgSvc.h:21
void msgSvc(MsgSvc::MsgLevel, std::string, std::string call=std::string(""))
Definition: MsgSvc.cpp:42