#include <errcode.h>
Definition at line 69 of file errcode.h.
| ERRCODE::ERRCODE |
( |
const char * |
string | ) |
|
|
inline |
| void ERRCODE::error |
( |
const char * |
caller, |
|
|
TessErrorLogCode |
action, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| const |
Definition at line 41 of file errcode.cpp.
52 msgptr += sprintf (msgptr,
"%s:", caller);
54 msgptr += sprintf (msgptr,
"Error:%s", message);
56 msgptr += sprintf (msgptr,
":");
57 va_start(args, format);
60 msgptr += _vsnprintf (msgptr,
MAX_MSG - 2 - (msgptr - msg), format, args);
65 msgptr += vsprintf (msgptr, format, args);
67 msgptr += sprintf (msgptr,
"\n");
73 msgptr += sprintf (msgptr,
"\n");
76 fprintf(stderr,
"%s", msg);
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
const ERRCODE BADERRACTION
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccutil/errcode.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccutil/errcode.cpp