Geant4  10.02
statusMessageReporting.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "statusMessageReporting.h"
+ Include dependency graph for statusMessageReporting.cc:

Go to the source code of this file.

Macros

#define SMR_InitialMessageSize   1024
 
#define SMR_IncrementMessageSize   1024
 

Functions

static statusMessageReport * smr_reportNew (void)
 
static int smr_reportInitialize (statusMessageReport *report)
 
static void smr_reportRelease (statusMessageReport *report)
 
static int smr_setReport (statusMessageReporting *smr, void *userInterface, char const *file, int line, char const *function, int libraryID, int code, enum smr_status status, char const *fmt, va_list *args)
 
static int smr_setAllocationFailure (statusMessageReport *report, char const *file, int line, char const *function, char const *fmt, va_list *args)
 
int smr_setup (void)
 
int smr_cleanup (void)
 
int smr_registerLibrary (char const *libraryName)
 
int smr_numberOfRegisteredLibraries (void)
 
char const * smr_getRegisteredLibrariesName (int ID)
 
statusMessageReporting * smr_new (statusMessageReporting *smr, enum smr_status verbosity, int append)
 
int smr_initialize (statusMessageReporting *smr, enum smr_status verbosity, int append)
 
statusMessageReporting * smr_clone (statusMessageReporting *smr)
 
void smr_release (statusMessageReporting *smr)
 
void * smr_free (statusMessageReporting **smr)
 
int smr_setReportInfo (statusMessageReporting *smr, void *userInterface, char const *file, int line, char const *function, int libraryID, int code, char const *fmt,...)
 
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)
 
int smr_setReportWarning (statusMessageReporting *smr, void *userInterface, char const *file, int line, char const *function, int libraryID, int code, char const *fmt,...)
 
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)
 
int smr_setReportError (statusMessageReporting *smr, void *userInterface, char const *file, int line, char const *function, int libraryID, int code, char const *fmt,...)
 
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)
 
enum smr_status smr_highestStatus (statusMessageReporting *smr)
 
int smr_isOk (statusMessageReporting *smr)
 
int smr_isInfo (statusMessageReporting *smr)
 
int smr_isWarning (statusMessageReporting *smr)
 
int smr_isError (statusMessageReporting *smr)
 
int smr_isWarningOrError (statusMessageReporting *smr)
 
int smr_isReportOk (statusMessageReport *report)
 
int smr_isReportInfo (statusMessageReport *report)
 
int smr_isReportWarning (statusMessageReport *report)
 
int smr_isReportError (statusMessageReport *report)
 
int smr_isReportWarningOrError (statusMessageReport *report)
 
int smr_numberOfReports (statusMessageReporting *smr)
 
statusMessageReport * smr_firstReport (statusMessageReporting *smr)
 
statusMessageReport * smr_nextReport (statusMessageReport *report)
 
enum smr_status smr_getVerbosity (statusMessageReporting *smr)
 
int smr_getAppend (statusMessageReporting *smr)
 
int smr_getLibraryID (statusMessageReport *report)
 
int smr_getCode (statusMessageReport *report)
 
int smr_getLine (statusMessageReport *report)
 
char const * smr_getFile (statusMessageReport *report)
 
char const * smr_getFunction (statusMessageReport *report)
 
char const * smr_getMessage (statusMessageReport *report)
 
char * smr_copyMessage (statusMessageReport *report)
 
char * smr_copyFullMessage (statusMessageReport *report)
 
void smr_print (statusMessageReporting *smr, int clear)
 
void smr_write (statusMessageReporting *smr, FILE *f, int clear)
 
void smr_reportPrint (statusMessageReport *report)
 
void smr_reportWrite (statusMessageReport *report, FILE *f)
 
char const * smr_statusToString (enum smr_status status)
 
char * smr_allocateFormatMessage (char const *fmt,...)
 
char * smr_vallocateFormatMessage (char const *fmt, va_list *args)
 
void * smr_malloc (statusMessageReporting *smr, size_t size, int zero, char const *forItem, char const *file, int line, char const *function)
 
void * smr_realloc (statusMessageReporting *smr, void *pOld, size_t size, char const *forItem, char const *file, int line, char const *function)
 
void * smr_freeMemory (void **p)
 
char * smr_allocateCopyString (statusMessageReporting *smr, char const *s, char const *forItem, char const *file, int line, char const *function)
 
char * smr_allocateCopyStringN (statusMessageReporting *smr, char const *s, size_t n, char const *forItem, char const *file, int line, char const *function)
 

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]
 

Macro Definition Documentation

#define SMR_IncrementMessageSize   1024

Definition at line 18 of file statusMessageReporting.cc.

Referenced by smr_vallocateFormatMessage().

#define SMR_InitialMessageSize   1024

Definition at line 17 of file statusMessageReporting.cc.

Referenced by smr_vallocateFormatMessage().

Function Documentation

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.

References smr_setReportError().

Referenced by MCGIDI_particle_getInternalID().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References n, and smr_malloc().

+ Here is the call graph for this function:

char* smr_allocateFormatMessage ( char const *  fmt,
  ... 
)

Definition at line 568 of file statusMessageReporting.cc.

References s, and smr_vallocateFormatMessage().

Referenced by _MCGIDI_map_smrUserInterface(), smr_copyFullMessage(), smr_copyMessage(), and xDataXML_smrUserInterface().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int smr_cleanup ( void  )

Definition at line 64 of file statusMessageReporting.cc.

References numberOfRegisteredLibraries, and smr_freeMemory().

+ Here is the call graph for this function:

statusMessageReporting* smr_clone ( statusMessageReporting *  smr)

Definition at line 131 of file statusMessageReporting.cc.

References smr_new().

+ Here is the call graph for this function:

char* smr_copyFullMessage ( statusMessageReport *  report)

Definition at line 514 of file statusMessageReporting.cc.

References smr_allocateFormatMessage().

+ Here is the call graph for this function:

char* smr_copyMessage ( statusMessageReport *  report)

Definition at line 505 of file statusMessageReporting.cc.

References smr_allocateFormatMessage().

+ Here is the call graph for this function:

statusMessageReport* smr_firstReport ( statusMessageReporting *  smr)

Definition at line 424 of file statusMessageReporting.cc.

Referenced by smr_highestStatus(), smr_numberOfReports(), smr_release(), smr_setReport(), and smr_write().

+ Here is the caller graph for this function:

void* smr_free ( statusMessageReporting **  smr)

Definition at line 154 of file statusMessageReporting.cc.

References smr_freeMemory(), and smr_release().

+ Here is the call graph for this function:

void* smr_freeMemory ( void **  p)

Definition at line 640 of file statusMessageReporting.cc.

References free.

Referenced by _MCGIDI_map_addEntry(), G4GIDI::dataFilename(), G4GIDI::freeTarget(), G4GIDI_Z_AMass(), G4GIDI::getAlreadyReadTarget(), G4GIDI::getNamesOfAvailableLibraries(), G4GIDI::isThisDataAvailable(), MCGIDI_angular_free(), MCGIDI_angularEnergy_free(), MCGIDI_angularEnergy_release(), MCGIDI_distribution_free(), MCGIDI_energy_free(), MCGIDI_energyAngular_free(), MCGIDI_energyAngular_release(), MCGIDI_fromTOM_pdfOfX(), MCGIDI_KalbachMann_free(), MCGIDI_KalbachMann_parseFromTOM2(), MCGIDI_KalbachMann_release(), MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM(), MCGIDI_map_free(), MCGIDI_map_release(), MCGIDI_misc_setMessageError_Element(), MCGIDI_outputChannel_free(), MCGIDI_outputChannel_release(), MCGIDI_particle_free(), MCGIDI_particle_freeInternalList(), MCGIDI_particle_release(), MCGIDI_POP_free(), MCGIDI_POP_new(), MCGIDI_POP_release(), MCGIDI_POPs_addParticleIfNeeded(), MCGIDI_POPs_free(), MCGIDI_POPs_new(), MCGIDI_POPs_release(), MCGIDI_product_free(), MCGIDI_product_release(), MCGIDI_reaction_free(), MCGIDI_reaction_release(), MCGIDI_sampledProducts_release(), MCGIDI_sampling_pdfsOfX_release(), MCGIDI_sampling_pdfsOfXGivenW_release(), MCGIDI_target_free(), MCGIDI_target_heated_free(), MCGIDI_target_heated_new(), MCGIDI_target_heated_newRead(), MCGIDI_target_heated_parseParticleGammas(), MCGIDI_target_heated_release(), MCGIDI_target_newRead(), MCGIDI_target_newReadFromMap(), MCGIDI_target_newReadFromMapViaPoPIDs(), MCGIDI_target_release(), PoP_free(), PoP_release(), PoPs_addParticleIfNeeded(), PoPs_copyAddParticleIfNeeded(), PoPs_particleLoadInfo(), PoPs_releasePrivate(), G4GIDI::readTarget(), smr_cleanup(), smr_free(), smr_release(), smr_reportRelease(), unitsDB_addUnitIfNeeded(), unitsDB_release(), xDataTOM_axes_release(), xDataTOM_axis_initialize(), xDataTOM_axis_new(), xDataTOM_axis_release(), xDataTOM_freeElement(), xDataTOM_freeTOM(), xDataTOM_KalbachMann_free(), xDataTOM_KalbachMann_initialize(), xDataTOM_KalbachMann_release(), xDataTOM_LegendreSeries_release(), xDataTOM_mallocElement(), xDataTOM_mallocTOM(), xDataTOM_polynomial_free(), xDataTOM_polynomial_initialize(), xDataTOM_polynomial_release(), xDataTOM_regionsW_XYs_LegendreSeries_free(), xDataTOM_regionsW_XYs_LegendreSeries_release(), xDataTOM_regionsXYs_free(), xDataTOM_releaseElement(), xDataTOM_setFileNameTOM(), xDataTOM_V_W_XYs_free(), xDataTOM_V_W_XYs_initialize(), xDataTOM_V_W_XYs_LegendreSeries_free(), xDataTOM_W_XYs_free(), xDataTOM_W_XYs_initialize(), xDataTOM_W_XYs_LegendreSeries_free(), xDataTOM_W_XYs_LegendreSeries_release(), xDataTOM_W_XYs_new(), xDataTOM_W_XYs_release(), xDataTOM_XYs_free(), xDataTOM_XYs_release(), xDataTOMAL_addAttribute(), xDataTOMAL_release(), xDataXML_addElementToRoot(), xDataXML_axesToTOM(), xDataXML_freeDoc(), xDataXML_freeElement(), xDataXML_freeElementItems(), xDataXML_freeElementList(), xDataXML_initializeData(), xDataXML_KalbachMannCoefficientsToTOM(), xDataXML_KalbachMannToTOM(), xDataXML_polynomialToTOM(), xDataXML_setFileName(), xDataXML_V_W_XYsToTOM(), xDataXML_W_XYsToTOM(), xDataXML_XYsDataToTOM(), xDataXML_XYsDataToTOM2(), and G4GIDI_target::~G4GIDI_target().

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.

References smr_firstReport(), and smr_nextReport().

Referenced by smr_isError(), smr_isInfo(), smr_isOk(), smr_isWarning(), and smr_isWarningOrError().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int smr_initialize ( statusMessageReporting *  smr,
enum smr_status  verbosity,
int  append 
)

Definition at line 120 of file statusMessageReporting.cc.

References smr_reportInitialize().

Referenced by G4GIDI_map::G4GIDI_map(), G4GIDI_target::init(), smr_new(), and smr_release().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int smr_isError ( statusMessageReporting *  smr)

Definition at line 355 of file statusMessageReporting.cc.

References smr_highestStatus().

+ Here is the call graph for this function:

int smr_isInfo ( statusMessageReporting *  smr)

Definition at line 341 of file statusMessageReporting.cc.

References smr_highestStatus().

+ Here is the call graph for this function:

int smr_isOk ( statusMessageReporting *  smr)

Definition at line 334 of file statusMessageReporting.cc.

References smr_highestStatus().

Referenced by G4GIDI_map::G4GIDI_map(), G4GIDI_target::getFinalState(), G4GIDI_target::init(), MCGIDI_angular_parseFromTOM(), MCGIDI_angular_sampleMu(), MCGIDI_angularEnergy_parsePointwiseFromTOM(), MCGIDI_energy_parseNBodyPhaseSpaceFromTOM(), MCGIDI_energy_sampleEnergy(), MCGIDI_energyAngular_linear_parseFromTOM(), MCGIDI_fromTOM_pdfsOfXGivenW(), MCGIDI_KalbachMann_parseFromTOM(), MCGIDI_KalbachMann_sampleEp(), MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM(), MCGIDI_map_findTargetViaPoPIDs(), MCGIDI_map_initialize(), MCGIDI_map_readFile(), MCGIDI_misc_Data2ptwXYPointsInUnitsOf(), MCGIDI_misc_dataFromXYs2ptwXYPointsInUnitsOf(), MCGIDI_misc_pointerToAttributeIfAllOk(), MCGIDI_misc_pointerToTOMAttributeIfAllOk(), MCGIDI_misc_PQUStringToDoubleInUnitOf(), MCGIDI_miscNameToZAm(), MCGIDI_outputChannel_getFinalQ(), MCGIDI_outputChannel_sampleProductsAtE(), MCGIDI_particle_getInternalID(), MCGIDI_product_parsePolynomialMultiplicity(), MCGIDI_target_heated_read(), PoPs_particleReadDatabase(), xDataTOM_initializeTOM(), xDataXML_constructTOM(), xDataXML_endXMLParsing(), xDataXML_importFile2(), xDataXML_initializeDoc(), xDataXML_parseCharacterData(), and xDataXML_parseStartElement().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References smr_highestStatus().

+ Here is the call graph for this function:

int smr_isWarningOrError ( statusMessageReporting *  smr)

Definition at line 362 of file statusMessageReporting.cc.

References smr_highestStatus().

+ Here is the call graph for this function:

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.

References smr_realloc().

Referenced by smr_allocateCopyStringN().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

statusMessageReporting* smr_new ( statusMessageReporting *  smr,
enum smr_status  verbosity,
int  append 
)

Definition at line 109 of file statusMessageReporting.cc.

References smr_initialize().

Referenced by smr_clone().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

statusMessageReport* smr_nextReport ( statusMessageReport *  report)

Definition at line 433 of file statusMessageReporting.cc.

Referenced by smr_highestStatus(), smr_numberOfReports(), smr_release(), and smr_write().

+ Here is the caller graph for this function:

int smr_numberOfRegisteredLibraries ( void  )

Definition at line 94 of file statusMessageReporting.cc.

int smr_numberOfReports ( statusMessageReporting *  smr)

Definition at line 411 of file statusMessageReporting.cc.

References n, smr_firstReport(), and smr_nextReport().

+ Here is the call graph for this function:

void smr_print ( statusMessageReporting *  smr,
int  clear 
)

Definition at line 523 of file statusMessageReporting.cc.

References smr_write().

Referenced by G4GIDI_map::G4GIDI_map(), G4GIDI_target::getChannelsID(), G4GIDI_target::getElasticFinalState(), G4GIDI_target::getFinalState(), and G4GIDI_target::init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References smr_setReportError().

Referenced by smr_malloc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int smr_registerLibrary ( char const *  libraryName)

Definition at line 78 of file statusMessageReporting.cc.

References numberOfRegisteredLibraries.

void smr_release ( statusMessageReporting *  smr)

Definition at line 139 of file statusMessageReporting.cc.

References smr_firstReport(), smr_freeMemory(), smr_initialize(), smr_nextReport(), and smr_reportRelease().

Referenced by smr_free(), smr_setReport(), smr_write(), G4GIDI_map::~G4GIDI_map(), and G4GIDI_target::~G4GIDI_target().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int smr_reportInitialize ( statusMessageReport *  report)
static

Definition at line 177 of file statusMessageReporting.cc.

Referenced by smr_initialize(), smr_reportNew(), and smr_reportRelease().

+ Here is the caller graph for this function:

static statusMessageReport * smr_reportNew ( void  )
static

Definition at line 166 of file statusMessageReporting.cc.

References smr_reportInitialize().

Referenced by smr_setReport().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void smr_reportPrint ( statusMessageReport *  report)

Definition at line 541 of file statusMessageReporting.cc.

References smr_reportWrite().

+ Here is the call graph for this function:

static void smr_reportRelease ( statusMessageReport *  report)
static

Definition at line 192 of file statusMessageReporting.cc.

References smr_freeMemory(), and smr_reportInitialize().

Referenced by smr_release().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void smr_reportWrite ( statusMessageReport *  report,
FILE *  f 
)

Definition at line 548 of file statusMessageReporting.cc.

Referenced by smr_reportPrint(), and smr_write().

+ Here is the caller graph for this function:

static int smr_setAllocationFailure ( statusMessageReport *  report,
char const *  file,
int  line,
char const *  function,
char const *  fmt,
va_list *  args 
)
static

Definition at line 247 of file statusMessageReporting.cc.

Referenced by smr_setReport().

+ Here is the caller graph for this function:

static int smr_setReport ( statusMessageReporting *  smr,
void *  userInterface,
char const *  file,
int  line,
char const *  function,
int  libraryID,
int  code,
enum smr_status  status,
char const *  fmt,
va_list *  args 
)
static

Definition at line 202 of file statusMessageReporting.cc.

References free, numberOfRegisteredLibraries, smr_firstReport(), smr_release(), smr_reportNew(), smr_setAllocationFailure(), and smr_vallocateFormatMessage().

Referenced by smr_setReportError(), smr_setReportInfo(), smr_setReportWarning(), smr_vsetReportError(), smr_vsetReportInfo(), and smr_vsetReportWarning().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References smr_setReport().

Referenced by MCGIDI_misc_pointerToAttributeIfAllOk(), MCGIDI_misc_pointerToTOMAttributeIfAllOk(), MCGIDI_misc_setMessageError_Element(), PoPs_particleIndex_smr(), smr_allocateCopyString(), smr_realloc(), and xDataTOM_setMessageError_ReturnInt().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References smr_setReport().

+ Here is the call graph for this function:

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.

References smr_setReport().

+ Here is the call graph for this function:

int smr_setup ( void  )
char const* smr_statusToString ( enum smr_status  status)
char* smr_vallocateFormatMessage ( char const *  fmt,
va_list *  args 
)

Definition at line 581 of file statusMessageReporting.cc.

References buffer, n, SMR_IncrementMessageSize, and SMR_InitialMessageSize.

Referenced by MCGIDI_misc_setMessageError_Element(), smr_allocateFormatMessage(), and smr_setReport().

+ Here is the caller graph for this function:

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.

References smr_setReport().

Referenced by MCGIDI_misc_setMessageError_Element().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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.

References smr_setReport().

+ Here is the call graph for this function:

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.

References smr_setReport().

+ Here is the call graph for this function:

void smr_write ( statusMessageReporting *  smr,
FILE *  f,
int  clear 
)

Definition at line 530 of file statusMessageReporting.cc.

References smr_firstReport(), smr_nextReport(), smr_release(), and smr_reportWrite().

Referenced by smr_print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char errnoLibrary[] = "errnoID"
static

Definition at line 29 of file statusMessageReporting.cc.

Referenced by smr_setup().

char invalidLibrary[] = "invalidID"
static

Definition at line 28 of file statusMessageReporting.cc.

Referenced by smr_setup().

int numberOfRegisteredLibraries = 0
static
char* registeredLibraries[smr_maximumNumberOfRegisteredLibraries]
static

Definition at line 31 of file statusMessageReporting.cc.

char smr_mallocFailed[] = "statusMessageReporting could not allocate memory for message"
static

Definition at line 21 of file statusMessageReporting.cc.

int smrIsSetup = 0
static

Definition at line 20 of file statusMessageReporting.cc.

char smrLibrary[] = "statusMessageReporting"
static

Definition at line 30 of file statusMessageReporting.cc.

Referenced by smr_setup().

char statusStringError[] = "Error"
static

Definition at line 23 of file statusMessageReporting.cc.

Referenced by smr_statusToString().

char statusStringInfo[] = "Info"
static

Definition at line 22 of file statusMessageReporting.cc.

Referenced by smr_statusToString().

char statusStringInvalid[] = "Invalid"
static

Definition at line 23 of file statusMessageReporting.cc.

Referenced by smr_statusToString().

char statusStringOk[] = "Ok"
static

Definition at line 22 of file statusMessageReporting.cc.

char statusStringWarning[] = "Warning"
static

Definition at line 23 of file statusMessageReporting.cc.

Referenced by smr_statusToString().

char tooManyLibrary[] = "tooManyIDs"
static

Definition at line 27 of file statusMessageReporting.cc.

Referenced by smr_setup().

char unknownLibrary[] = "unknownID"
static

Definition at line 26 of file statusMessageReporting.cc.

Referenced by smr_setup().