Geant4
10.03.p03
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "statusMessageReporting.h"
Go to the source code of this file.
Macros | |
#define | SMR_InitialMessageSize 1024 |
#define | SMR_IncrementMessageSize 1024 |
Variables | |
static int | smrIsSetup = 0 |
static char | smr_mallocFailed [] = "statusMessageReporting could not allocate memory for message" |
static char | statusStringOk [] = "Ok" |
static char | statusStringInfo [] = "Info" |
static char | statusStringWarning [] = "Warning" |
static char | statusStringError [] = "Error" |
static char | statusStringInvalid [] = "Invalid" |
static int | numberOfRegisteredLibraries = 0 |
static char | unknownLibrary [] = "unknownID" |
static char | tooManyLibrary [] = "tooManyIDs" |
static char | invalidLibrary [] = "invalidID" |
static char | errnoLibrary [] = "errnoID" |
static char | smrLibrary [] = "statusMessageReporting" |
static char * | registeredLibraries [smr_maximumNumberOfRegisteredLibraries] |
#define SMR_IncrementMessageSize 1024 |
Definition at line 18 of file statusMessageReporting.cc.
#define SMR_InitialMessageSize 1024 |
Definition at line 17 of file statusMessageReporting.cc.
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.
|
static |
Definition at line 177 of file statusMessageReporting.cc.
|
static |
Definition at line 166 of file statusMessageReporting.cc.
void smr_reportPrint | ( | statusMessageReport * | report | ) |
Definition at line 541 of file statusMessageReporting.cc.
|
static |
Definition at line 192 of file statusMessageReporting.cc.
void smr_reportWrite | ( | statusMessageReport * | report, |
FILE * | f | ||
) |
Definition at line 548 of file statusMessageReporting.cc.
|
static |
Definition at line 247 of file statusMessageReporting.cc.
|
static |
Definition at line 202 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.
|
static |
Definition at line 29 of file statusMessageReporting.cc.
|
static |
Definition at line 28 of file statusMessageReporting.cc.
|
static |
Definition at line 25 of file statusMessageReporting.cc.
|
static |
Definition at line 31 of file statusMessageReporting.cc.
|
static |
Definition at line 21 of file statusMessageReporting.cc.
|
static |
Definition at line 20 of file statusMessageReporting.cc.
|
static |
Definition at line 30 of file statusMessageReporting.cc.
|
static |
Definition at line 23 of file statusMessageReporting.cc.
|
static |
Definition at line 22 of file statusMessageReporting.cc.
|
static |
Definition at line 23 of file statusMessageReporting.cc.
|
static |
Definition at line 22 of file statusMessageReporting.cc.
|
static |
Definition at line 23 of file statusMessageReporting.cc.
|
static |
Definition at line 27 of file statusMessageReporting.cc.
|
static |
Definition at line 26 of file statusMessageReporting.cc.