#include <IssueSeverity.h>
Collaboration diagram for IssueSeverity:
Public Types | |
| NIL = 0 | |
| VERBOSE | |
| DEBUG | |
| DEBUG1 | |
| DEBUG2 | |
| DEBUG3 | |
| INFO | |
| WARNING | |
| RECOVERABLE | |
| ERROR | |
| FATAL | |
| ALWAYS | |
| NUM_LEVELS | |
| enum | Level { NIL = 0, VERBOSE, DEBUG, DEBUG1, DEBUG2, DEBUG3, INFO, WARNING, RECOVERABLE, ERROR, FATAL, ALWAYS, NUM_LEVELS } |
Public Member Functions | |
| IssueSeverity () | |
| IssueSeverity (const IssueSeverity::Level &level, int line, const std::string &file, const std::string &msg="") | |
| IssueSeverity (const IssueSeverity::Level &level, const std::string &msg="") | |
| IssueSeverity (const IssueSeverity &es) | |
| IssueSeverity (IssueSeverity *es) | |
| IssueSeverity & | operator= (const IssueSeverity &rhs) |
| ~IssueSeverity () | |
| void | setLevel (const IssueSeverity::Level &l) |
| void | setMsg (const std::string &m) |
| IssueSeverity::Level | getLevel () const |
| std::string | getMsg () const |
| std::string | getOrigin () const |
| void | report () |
| operator StatusCode () const | |
Static Private Member Functions | |
| static void | init () |
Private Attributes | |
| int | m_line |
| std::string | m_file |
| IssueSeverity::Level | m_level |
| std::string | m_msg |
| bool | m_reported |
Static Private Attributes | |
| static bool | m_init |
| static IIssueLogger * | m_ers |
Friends | |
| std::ostream & | operator<< (std::ostream &, const IssueSeverity &) |
Definition at line 41 of file IssueSeverity.h.
| enum IssueSeverity::Level |
| NIL | |
| VERBOSE | |
| DEBUG | |
| DEBUG1 | |
| DEBUG2 | |
| DEBUG3 | |
| INFO | |
| WARNING | |
| RECOVERABLE | |
| ERROR | |
| FATAL | |
| ALWAYS | |
| NUM_LEVELS |
Definition at line 45 of file IssueSeverity.h.
00045 { 00046 NIL = 0, 00047 VERBOSE, 00048 DEBUG, 00049 DEBUG1, 00050 DEBUG2, 00051 DEBUG3, 00052 INFO, 00053 WARNING, 00054 RECOVERABLE, 00055 ERROR, 00056 FATAL, 00057 ALWAYS, 00058 NUM_LEVELS 00059 };
| IssueSeverity::IssueSeverity | ( | ) | [inline] |
Definition at line 108 of file IssueSeverity.h.
00108 : m_line(0), m_file(""), 00109 m_level(IssueSeverity::NIL), 00110 m_msg(""), m_reported(true) {}
| IssueSeverity::IssueSeverity | ( | const IssueSeverity::Level & | level, | |
| int | line, | |||
| const std::string & | file, | |||
| const std::string & | msg = "" | |||
| ) | [inline] |
Definition at line 112 of file IssueSeverity.h.
00114 : 00115 m_line(line), m_file(file), m_level(level), m_msg(msg), m_reported(false) { 00116 00117 init(); 00118 report(); 00119 00120 }
| IssueSeverity::IssueSeverity | ( | const IssueSeverity::Level & | level, | |
| const std::string & | msg = "" | |||
| ) | [inline] |
Definition at line 122 of file IssueSeverity.h.
00123 : 00124 m_line(0), m_file("??"), m_level(level), m_msg(msg), m_reported(false) { 00125 00126 init(); 00127 report(); 00128 00129 }
| IssueSeverity::IssueSeverity | ( | const IssueSeverity & | es | ) | [inline] |
Definition at line 131 of file IssueSeverity.h.
00131 { 00132 m_line = rhs.m_line; 00133 m_file = rhs.m_file; 00134 m_level = rhs.m_level; 00135 m_msg = rhs.m_msg; 00136 m_reported = true; 00137 }
| IssueSeverity::IssueSeverity | ( | IssueSeverity * | es | ) | [inline] |
Definition at line 139 of file IssueSeverity.h.
00139 { 00140 m_line = rhs->m_line; 00141 m_file = rhs->m_file; 00142 m_level = rhs->m_level; 00143 m_msg = rhs->m_msg; 00144 m_reported = true; 00145 }
| IssueSeverity::~IssueSeverity | ( | ) |
| IssueSeverity & IssueSeverity::operator= | ( | const IssueSeverity & | rhs | ) | [inline] |
| void IssueSeverity::setLevel | ( | const IssueSeverity::Level & | l | ) | [inline] |
| void IssueSeverity::setMsg | ( | const std::string & | m | ) | [inline] |
| IssueSeverity::Level IssueSeverity::getLevel | ( | ) | const [inline] |
| std::string IssueSeverity::getMsg | ( | ) | const [inline] |
| std::string IssueSeverity::getOrigin | ( | ) | const |
| void IssueSeverity::report | ( | ) |
| IssueSeverity::operator StatusCode | ( | ) | const |
| static void IssueSeverity::init | ( | ) | [static, private] |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const IssueSeverity & | rhs | |||
| ) | [friend] |
Definition at line 156 of file IssueSeverity.h.
00156 { 00157 os << "ISSUE: level " << rhs.getLevel() << " from: " << rhs.getOrigin() 00158 << " msg: " << rhs.getMsg(); 00159 return os; 00160 }
int IssueSeverity::m_line [private] |
Definition at line 94 of file IssueSeverity.h.
std::string IssueSeverity::m_file [private] |
Definition at line 95 of file IssueSeverity.h.
bool IssueSeverity::m_init [static, private] |
Definition at line 97 of file IssueSeverity.h.
IIssueLogger* IssueSeverity::m_ers [static, private] |
Definition at line 98 of file IssueSeverity.h.
IssueSeverity::Level IssueSeverity::m_level [private] |
Definition at line 100 of file IssueSeverity.h.
std::string IssueSeverity::m_msg [private] |
Definition at line 101 of file IssueSeverity.h.
bool IssueSeverity::m_reported [private] |
Definition at line 102 of file IssueSeverity.h.
1.4.7