Geant4
10.03.p03
|
#include <stdio.h>
#include <stdarg.h>
Go to the source code of this file.
Classes | |
struct | statusMessageReport |
struct | statusMessageReporting |
Macros | |
#define | smr_unknownID 0 |
#define | smr_tooManyIDs 1 |
#define | smr_invalidID 2 |
#define | smr_errnoID 3 |
#define | smr_smrID 4 |
#define | smr_maximumNumberOfRegisteredLibraries 128 |
#define | smr_maximumFileNameSize 1024 |
#define | smr_codeNULL 0 |
#define | smr_codeFileIO -1 |
#define | smr_codeMemoryAllocating -2 |
#define | smr_malloc2(smr, size, zero, forItem) smr_malloc( smr, size, zero, forItem, __FILE__, __LINE__, __func__ ) |
#define | smr_realloc2(smr, old, size, forItem) smr_realloc( smr, old, size, forItem, __FILE__, __LINE__, __func__ ) |
#define | smr_allocateCopyString2(smr, s, forItem) smr_allocateCopyString( smr, s, forItem, __FILE__, __LINE__, __func__ ) |
#define | smr_allocateCopyStringN2(smr, s, n, forItem) smr_allocateCopyStringN( smr, s, n, forItem, __FILE__, __LINE__, __func__ ) |
#define | smr_setReportInfo2(smr, libraryID, code, fmt,...) smr_setReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportInfo2p(smr, libraryID, code, fmt) smr_setReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportInfo2(smr, libraryID, code, fmt, args) smr_vsetReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
#define | smr_setReportWarning2(smr, libraryID, code, fmt,...) smr_setReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportWarning2p(smr, libraryID, code, fmt) smr_setReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportWarning2(smr, libraryID, code, fmt, args) smr_vsetReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
#define | smr_setReportError2(smr, libraryID, code, fmt,...) smr_setReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportError2p(smr, libraryID, code, fmt) smr_setReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportError2(smr, libraryID, code, fmt, args) smr_vsetReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
#define | smr_setReportInfo3(smr, userInterface, libraryID, code, fmt,...) smr_setReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportInfo3p(smr, userInterface, libraryID, code, fmt) smr_setReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportInfo3(smr, userInterface, libraryID, code, fmt, args) smr_vsetReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
#define | smr_setReportWarning3(smr, userInterface, libraryID, code, fmt,...) smr_setReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportWarning3p(smr, userInterface, libraryID, code, fmt) smr_setReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportWarning3(smr, userInterface, libraryID, code, fmt, args) smr_vsetReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
#define | smr_setReportError3(smr, userInterface, libraryID, code, fmt,...) smr_setReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
#define | smr_setReportError3p(smr, userInterface, libraryID, code, fmt) smr_setReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
#define | smr_vsetReportError3(smr, userInterface, libraryID, code, fmt, args) smr_vsetReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Typedefs | |
typedef char *(* | smr_userInterface )(void *userData) |
typedef struct statusMessageReport | statusMessageReport |
typedef struct statusMessageReporting | statusMessageReporting |
Enumerations | |
enum | smr_status { smr_status_Ok = 0, smr_status_Info, smr_status_Warning, smr_status_Error } |
#define smr_allocateCopyString2 | ( | smr, | |
s, | |||
forItem | |||
) | smr_allocateCopyString( smr, s, forItem, __FILE__, __LINE__, __func__ ) |
Definition at line 113 of file statusMessageReporting.h.
#define smr_allocateCopyStringN2 | ( | smr, | |
s, | |||
n, | |||
forItem | |||
) | smr_allocateCopyStringN( smr, s, n, forItem, __FILE__, __LINE__, __func__ ) |
Definition at line 114 of file statusMessageReporting.h.
#define smr_codeFileIO -1 |
Definition at line 25 of file statusMessageReporting.h.
#define smr_codeMemoryAllocating -2 |
Definition at line 26 of file statusMessageReporting.h.
#define smr_codeNULL 0 |
Definition at line 24 of file statusMessageReporting.h.
#define smr_errnoID 3 |
Definition at line 19 of file statusMessageReporting.h.
#define smr_invalidID 2 |
Definition at line 18 of file statusMessageReporting.h.
#define smr_malloc2 | ( | smr, | |
size, | |||
zero, | |||
forItem | |||
) | smr_malloc( smr, size, zero, forItem, __FILE__, __LINE__, __func__ ) |
Definition at line 111 of file statusMessageReporting.h.
#define smr_maximumFileNameSize 1024 |
Definition at line 23 of file statusMessageReporting.h.
#define smr_maximumNumberOfRegisteredLibraries 128 |
Definition at line 22 of file statusMessageReporting.h.
#define smr_realloc2 | ( | smr, | |
old, | |||
size, | |||
forItem | |||
) | smr_realloc( smr, old, size, forItem, __FILE__, __LINE__, __func__ ) |
Definition at line 112 of file statusMessageReporting.h.
#define smr_setReportError2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 122 of file statusMessageReporting.h.
#define smr_setReportError2p | ( | smr, | |
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 123 of file statusMessageReporting.h.
#define smr_setReportError3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 132 of file statusMessageReporting.h.
#define smr_setReportError3p | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 133 of file statusMessageReporting.h.
#define smr_setReportInfo2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 116 of file statusMessageReporting.h.
#define smr_setReportInfo2p | ( | smr, | |
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 117 of file statusMessageReporting.h.
#define smr_setReportInfo3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 126 of file statusMessageReporting.h.
#define smr_setReportInfo3p | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 127 of file statusMessageReporting.h.
#define smr_setReportWarning2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 119 of file statusMessageReporting.h.
#define smr_setReportWarning2p | ( | smr, | |
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 120 of file statusMessageReporting.h.
#define smr_setReportWarning3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
... | |||
) | smr_setReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, __VA_ARGS__ ) |
Definition at line 129 of file statusMessageReporting.h.
#define smr_setReportWarning3p | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt | |||
) | smr_setReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt ) |
Definition at line 130 of file statusMessageReporting.h.
#define smr_smrID 4 |
Definition at line 20 of file statusMessageReporting.h.
#define smr_tooManyIDs 1 |
Definition at line 17 of file statusMessageReporting.h.
#define smr_unknownID 0 |
Definition at line 16 of file statusMessageReporting.h.
#define smr_vsetReportError2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportError( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 124 of file statusMessageReporting.h.
#define smr_vsetReportError3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportError( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 134 of file statusMessageReporting.h.
#define smr_vsetReportInfo2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportInfo( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 118 of file statusMessageReporting.h.
#define smr_vsetReportInfo3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportInfo( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 128 of file statusMessageReporting.h.
#define smr_vsetReportWarning2 | ( | smr, | |
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportWarning( smr, NULL, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 121 of file statusMessageReporting.h.
#define smr_vsetReportWarning3 | ( | smr, | |
userInterface, | |||
libraryID, | |||
code, | |||
fmt, | |||
args | |||
) | smr_vsetReportWarning( smr, userInterface, __FILE__, __LINE__, __func__, libraryID, code, fmt, args ) |
Definition at line 131 of file statusMessageReporting.h.
Definition at line 28 of file statusMessageReporting.h.
typedef struct statusMessageReport statusMessageReport |
typedef struct statusMessageReporting statusMessageReporting |
enum smr_status |
Enumerator | |
---|---|
smr_status_Ok | |
smr_status_Info | |
smr_status_Warning | |
smr_status_Error |
Definition at line 27 of file statusMessageReporting.h.
char* smr_allocateCopyString | ( | statusMessageReporting * | smr, |
char const * | s, | ||
char const * | forItem, | ||
char const * | file, | ||
int | line, | ||
char const * | function | ||
) |
Definition at line 652 of file statusMessageReporting.cc.
char* smr_allocateCopyStringN | ( | statusMessageReporting * | smr, |
char const * | s, | ||
size_t | n, | ||
char const * | forItem, | ||
char const * | file, | ||
int | line, | ||
char const * | function | ||
) |
Definition at line 665 of file statusMessageReporting.cc.
char* smr_allocateFormatMessage | ( | char const * | fmt, |
... | |||
) |
Definition at line 568 of file statusMessageReporting.cc.
Definition at line 64 of file statusMessageReporting.cc.
statusMessageReporting* smr_clone | ( | statusMessageReporting * | smr | ) |
Definition at line 131 of file statusMessageReporting.cc.
char* smr_copyFullMessage | ( | statusMessageReport * | report | ) |
Definition at line 514 of file statusMessageReporting.cc.
char* smr_copyMessage | ( | statusMessageReport * | report | ) |
Definition at line 505 of file statusMessageReporting.cc.
statusMessageReport* smr_firstReport | ( | statusMessageReporting * | smr | ) |
Definition at line 424 of file statusMessageReporting.cc.
void* smr_free | ( | statusMessageReporting ** | smr | ) |
Definition at line 640 of file statusMessageReporting.cc.
int smr_getAppend | ( | statusMessageReporting * | smr | ) |
Definition at line 449 of file statusMessageReporting.cc.
int smr_getCode | ( | statusMessageReport * | report | ) |
Definition at line 465 of file statusMessageReporting.cc.
char const* smr_getFile | ( | statusMessageReport * | report | ) |
Definition at line 481 of file statusMessageReporting.cc.
char const* smr_getFunction | ( | statusMessageReport * | report | ) |
Definition at line 489 of file statusMessageReporting.cc.
int smr_getLibraryID | ( | statusMessageReport * | report | ) |
Definition at line 457 of file statusMessageReporting.cc.
int smr_getLine | ( | statusMessageReport * | report | ) |
Definition at line 473 of file statusMessageReporting.cc.
char const* smr_getMessage | ( | statusMessageReport * | report | ) |
Definition at line 497 of file statusMessageReporting.cc.
char const* smr_getRegisteredLibrariesName | ( | int | ID | ) |
Definition at line 101 of file statusMessageReporting.cc.
enum smr_status smr_getVerbosity | ( | statusMessageReporting * | smr | ) |
Definition at line 441 of file statusMessageReporting.cc.
enum smr_status smr_highestStatus | ( | statusMessageReporting * | smr | ) |
Definition at line 322 of file statusMessageReporting.cc.
int smr_initialize | ( | statusMessageReporting * | smr, |
enum smr_status | verbosity, | ||
int | append | ||
) |
Definition at line 120 of file statusMessageReporting.cc.
int smr_isError | ( | statusMessageReporting * | smr | ) |
Definition at line 355 of file statusMessageReporting.cc.
int smr_isInfo | ( | statusMessageReporting * | smr | ) |
Definition at line 341 of file statusMessageReporting.cc.
int smr_isOk | ( | statusMessageReporting * | smr | ) |
Definition at line 334 of file statusMessageReporting.cc.
int smr_isReportError | ( | statusMessageReport * | report | ) |
Definition at line 395 of file statusMessageReporting.cc.
int smr_isReportInfo | ( | statusMessageReport * | report | ) |
Definition at line 379 of file statusMessageReporting.cc.
int smr_isReportOk | ( | statusMessageReport * | report | ) |
Definition at line 371 of file statusMessageReporting.cc.
int smr_isReportWarning | ( | statusMessageReport * | report | ) |
Definition at line 387 of file statusMessageReporting.cc.
int smr_isReportWarningOrError | ( | statusMessageReport * | report | ) |
Definition at line 403 of file statusMessageReporting.cc.
int smr_isWarning | ( | statusMessageReporting * | smr | ) |
Definition at line 348 of file statusMessageReporting.cc.
int smr_isWarningOrError | ( | statusMessageReporting * | smr | ) |
Definition at line 362 of file statusMessageReporting.cc.
void* smr_malloc | ( | statusMessageReporting * | smr, |
size_t | size, | ||
int | zero, | ||
char const * | forItem, | ||
char const * | file, | ||
int | line, | ||
char const * | function | ||
) |
Definition at line 611 of file statusMessageReporting.cc.
statusMessageReporting* smr_new | ( | statusMessageReporting * | smr, |
enum smr_status | verbosity, | ||
int | append | ||
) |
Definition at line 109 of file statusMessageReporting.cc.
statusMessageReport* smr_nextReport | ( | statusMessageReport * | report | ) |
Definition at line 433 of file statusMessageReporting.cc.
Definition at line 94 of file statusMessageReporting.cc.
int smr_numberOfReports | ( | statusMessageReporting * | smr | ) |
Definition at line 411 of file statusMessageReporting.cc.
void smr_print | ( | statusMessageReporting * | smr, |
int | clear | ||
) |
Definition at line 523 of file statusMessageReporting.cc.
void* smr_realloc | ( | statusMessageReporting * | smr, |
void * | pOld, | ||
size_t | size, | ||
char const * | forItem, | ||
char const * | file, | ||
int | line, | ||
char const * | function | ||
) |
Definition at line 628 of file statusMessageReporting.cc.
int smr_registerLibrary | ( | char const * | libraryName | ) |
Definition at line 78 of file statusMessageReporting.cc.
void smr_release | ( | statusMessageReporting * | smr | ) |
Definition at line 139 of file statusMessageReporting.cc.
void smr_reportPrint | ( | statusMessageReport * | report | ) |
Definition at line 541 of file statusMessageReporting.cc.
void smr_reportWrite | ( | statusMessageReport * | report, |
FILE * | f | ||
) |
Definition at line 548 of file statusMessageReporting.cc.
int smr_setReportError | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
... | |||
) |
Definition at line 302 of file statusMessageReporting.cc.
int smr_setReportInfo | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
... | |||
) |
Definition at line 262 of file statusMessageReporting.cc.
int smr_setReportWarning | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
... | |||
) |
Definition at line 282 of file statusMessageReporting.cc.
Definition at line 42 of file statusMessageReporting.cc.
char const* smr_statusToString | ( | enum smr_status | status | ) |
Definition at line 555 of file statusMessageReporting.cc.
char* smr_vallocateFormatMessage | ( | char const * | fmt, |
va_list * | args | ||
) |
Definition at line 581 of file statusMessageReporting.cc.
int smr_vsetReportError | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
va_list * | args | ||
) |
Definition at line 315 of file statusMessageReporting.cc.
int smr_vsetReportInfo | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
va_list * | args | ||
) |
Definition at line 275 of file statusMessageReporting.cc.
int smr_vsetReportWarning | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
char const * | file, | ||
int | line, | ||
char const * | function, | ||
int | libraryID, | ||
int | code, | ||
char const * | fmt, | ||
va_list * | args | ||
) |
Definition at line 295 of file statusMessageReporting.cc.
void smr_write | ( | statusMessageReporting * | smr, |
FILE * | f, | ||
int | clear | ||
) |
Definition at line 530 of file statusMessageReporting.cc.