Tagged: Fri Nov 14 12:39:33 UTC 2003.
More...
#include <iostream>
#include <sstream>
#include <string>
#include "carma/szautil/ErrHandler.h"
#include "carma/szautil/Directives.h"
#include "carma/szautil/IoLock.h"
#include "carma/szautil/Logger.h"
#include "carma/szautil/XtermManip.h"
Go to the source code of this file.
|
| sza |
| Define a class for Calibrator control.
|
|
|
#define | CERR(statement) |
|
#define | COUT(statement) |
|
#define | COUTCOLOR(statement, color) |
|
#define | COUTCOLORNNL(statement, color) |
|
#define | CTERR(statement) |
|
#define | CTOUT(statement) |
|
#define | Error(x) sza::util::Exception((x), __FILE__, __LINE__, true) |
|
#define | ErrorDef(x, y) sza::util::Exception (x)((y), __FILE__, __LINE__, true) |
|
#define | ErrorNoReport(x) sza::util::Exception((x), __FILE__, __LINE__, false) |
|
#define | LogMessage(error, text) |
|
#define | ReportError(text) |
|
#define | ReportMessage(text) |
|
#define | ReportSimpleError(text) |
|
#define | ReportSysError(text) |
|
#define | ThrowColorError(text, color) |
|
#define | ThrowError(text) |
|
#define | ThrowSimpleError(text) |
|
#define | ThrowSysError(text) |
|
Tagged: Fri Nov 14 12:39:33 UTC 2003.
- Author
- Erik Leitch
Definition in file Exception.h.
#define CERR |
( |
|
statement | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << statement << std::endl; \
sza::util::Logger::printToStderr(_macroOs.str()); \
}
Definition at line 258 of file Exception.h.
#define COUT |
( |
|
statement | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << statement << std::endl; \
sza::util::Logger::printToStdout(_macroOs.str()); \
}
Definition at line 222 of file Exception.h.
#define COUTCOLOR |
( |
|
statement, |
|
|
|
color |
|
) |
| |
Value:{\
XtermManip _macroXtm;\
std::ostringstream _macroOs; \
_macroOs << _macroXtm.bg("black") << _macroXtm.fg(color) << _macroXtm.textMode("bold");\
_macroOs << statement << std::endl; \
_macroOs << _macroXtm.bg("default") << _macroXtm.fg("default") << _macroXtm.textMode("normal");\
sza::util::Logger::printToStdout(_macroOs.str()); \
}
Definition at line 229 of file Exception.h.
#define COUTCOLORNNL |
( |
|
statement, |
|
|
|
color |
|
) |
| |
Value:{\
sza::util::XtermManip _macroXtm; \
std::ostringstream _macroOs; \
_macroOs << _macroXtm.bg("black") << _macroXtm.fg(color) << _macroXtm.textMode("bold");\
_macroOs << statement; \
_macroOs << _macroXtm.bg("default") << _macroXtm.fg("default") << _macroXtm.textMode("normal");\
sza::util::Logger::printToStdout(_macroOs.str()); \
}
Definition at line 239 of file Exception.h.
#define CTERR |
( |
|
statement | ) |
|
Value:{\
sza::util::TimeVal _macroTimeVal;\
_macroTimeVal.setToCurrentTime();\
std::ostringstream _macroOs; \
_macroOs << _macroTimeVal << ": " << statement << std::endl; \
sza::util::Logger::printToStderr(_macroOs.str()); \
}
Definition at line 265 of file Exception.h.
#define CTOUT |
( |
|
statement | ) |
|
Value:{\
sza::util::TimeVal _macroTimeVal;\
_macroTimeVal.setToCurrentTime();\
std::ostringstream _macroOs; \
_macroOs << _macroTimeVal << ": " << statement << std::endl; \
sza::util::Logger::printToStdout(_macroOs.str()); \
}
Definition at line 249 of file Exception.h.
#define LogMessage |
( |
|
error, |
|
|
|
text |
|
) |
| |
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::log(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, false, true, false);\
}
Definition at line 215 of file Exception.h.
#define ReportError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, false, false);\
}
Definition at line 171 of file Exception.h.
#define ReportMessage |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, false, true, false);\
}
Definition at line 204 of file Exception.h.
#define ReportSimpleError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, true, false);\
}
Definition at line 182 of file Exception.h.
#define ReportSysError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::report(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, false, true);\
}
Definition at line 193 of file Exception.h.
#define ThrowColorError |
( |
|
text, |
|
|
|
color |
|
) |
| |
Value:{\
XtermManip _macroXtm;\
std::ostringstream _macroOs; \
_macroOs << _macroXtm.bg("black") << _macroXtm.fg(color) << _macroXtm.textMode("bold");\
_macroOs << text;\
_macroOs << _macroXtm.bg("default") << _macroXtm.fg("default") << _macroXtm.textMode("normal");\
sza::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, false, false);\
}
Definition at line 135 of file Exception.h.
#define ThrowError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, false, false);\
}
Definition at line 124 of file Exception.h.
#define ThrowSimpleError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, true, false);\
}
Definition at line 149 of file Exception.h.
#define ThrowSysError |
( |
|
text | ) |
|
Value:{\
std::ostringstream _macroOs; \
_macroOs << text;\
sza::util::ErrHandler::throwError(_macroOs, __FILE__, __LINE__, __PRETTY_FUNCTION__, true, false, true);\
}
Definition at line 160 of file Exception.h.