Geant4
10.01.p01
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "statusMessageReporting.h"
Go to the source code of this file.
Functions | |
static int | smr_setAllocationFailure (statusMessageReporting *smr, const char *fmt, va_list *args) |
static int | smr_setMessage (statusMessageReporting *smr, void *userInterface, const char *file, int line, int code, enum smr_status status, const char *fmt, va_list *args) |
static char * | smr_getFullMessage2 (char const *fmt,...) |
int | smr_initialize (statusMessageReporting *smr) |
int | smr_release (statusMessageReporting *smr) |
int | smr_setMessageInfo (statusMessageReporting *smr, void *userInterface, const char *file, int line, int code, const char *fmt,...) |
int | smr_vsetMessageInfo (statusMessageReporting *smr, void *userInterface, const char *file, int line, int code, const char *fmt, va_list *args) |
int | smr_setMessageError (statusMessageReporting *smr, void *userInterface, const char *file, int line, int code, const char *fmt,...) |
int | smr_vsetMessageError (statusMessageReporting *smr, void *userInterface, const char *file, int line, int code, const char *fmt, va_list *args) |
char * | smr_allocateFormatMessage (const char *fmt,...) |
char * | smr_vallocateFormatMessage (const char *fmt, va_list *args) |
int | smr_isOk (statusMessageReporting *smr) |
int | smr_isInfo (statusMessageReporting *smr) |
int | smr_isError (statusMessageReporting *smr) |
int | smr_isFatal (statusMessageReporting *smr) |
const char * | smr_getMessage (statusMessageReporting *smr) |
char * | smr_getFullMessage (statusMessageReporting *smr) |
void | smr_print (statusMessageReporting *smr, FILE *f, int clear) |
Variables | |
static const char | smr_mallocFailed [] = "statusMessageReporting could not allocate memory for message" |
char* smr_allocateFormatMessage | ( | const char * | fmt, |
... | |||
) |
Definition at line 121 of file statusMessageReporting.cc.
References s, and smr_vallocateFormatMessage().
char* smr_getFullMessage | ( | statusMessageReporting * | smr | ) |
Definition at line 247 of file statusMessageReporting.cc.
References smr_getFullMessage2().
|
static |
Definition at line 254 of file statusMessageReporting.cc.
References smr_vallocateFormatMessage().
Referenced by smr_getFullMessage().
const char* smr_getMessage | ( | statusMessageReporting * | smr | ) |
Definition at line 240 of file statusMessageReporting.cc.
int smr_initialize | ( | statusMessageReporting * | smr | ) |
Definition at line 57 of file statusMessageReporting.cc.
Referenced by G4GIDI_map::G4GIDI_map(), G4GIDI_target::init(), and smr_release().
int smr_isError | ( | statusMessageReporting * | smr | ) |
Definition at line 224 of file statusMessageReporting.cc.
int smr_isFatal | ( | statusMessageReporting * | smr | ) |
Definition at line 232 of file statusMessageReporting.cc.
int smr_isInfo | ( | statusMessageReporting * | smr | ) |
Definition at line 216 of file statusMessageReporting.cc.
int smr_isOk | ( | statusMessageReporting * | smr | ) |
Definition at line 208 of file statusMessageReporting.cc.
Referenced by _tpia_target_heated_getEnergyGridAndAllocateTotalCrossSections(), G4GIDI_map::G4GIDI_map(), G4GIDI_target::init(), tpia_angularEnergy_SampleEp(), tpia_channel_getFromElement(), tpia_decayChannel_sampleProductsAtE(), tpia_frame_setFromString(), tpia_map_findTarget(), tpia_map_readFile(), tpia_misc_pointerToAttributeIfAllOk(), tpia_miscNameToZAm(), tpia_particle_getInternalID(), tpia_product_getFromElement(), tpia_target_getEnergyGridAtTIndex(), tpia_target_getTotalCrossSectionAtTIndex(), tpia_target_heated_read(), tpia_target_read(), xData_parseCharacterData(), xData_parseEndElement(), xData_parseEndOfXML(), xData_parseInitialize(), xData_parseReadFile(), xData_parseStartElement(), and xData_parseString().
void smr_print | ( | statusMessageReporting * | smr, |
FILE * | f, | ||
int | clear | ||
) |
Definition at line 267 of file statusMessageReporting.cc.
References smr_release().
Referenced by G4GIDI_map::G4GIDI_map(), and G4GIDI_target::init().
int smr_release | ( | statusMessageReporting * | smr | ) |
Definition at line 69 of file statusMessageReporting.cc.
References smr_initialize().
Referenced by smr_print(), smr_setMessage(), G4GIDI_map::~G4GIDI_map(), and G4GIDI_target::~G4GIDI_target().
|
static |
Definition at line 197 of file statusMessageReporting.cc.
Referenced by smr_setMessage().
|
static |
Definition at line 164 of file statusMessageReporting.cc.
References smr_release(), smr_setAllocationFailure(), and smr_vallocateFormatMessage().
Referenced by smr_setMessageError(), smr_setMessageInfo(), smr_vsetMessageError(), and smr_vsetMessageInfo().
int smr_setMessageError | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 100 of file statusMessageReporting.cc.
References smr_setMessage().
Referenced by _tpi_channelID_parse2(), _tpi_spectralID_parse2(), getRowStartEndAtIndex(), toData(), tpia_decayChannel_sampleProductsAtE(), tpia_depot_addTargetFromMap(), tpia_frame_getColumn(), tpia_frame_setColumn(), tpia_frame_setFromString(), tpia_frame_toString(), tpia_map_readFile(), tpia_misc_pointerToAttributeIfAllOk(), tpia_misc_setMessageError_Element(), tpia_miscNameToZAm(), tpia_particleMass_AMU(), tpia_target_getHeatedTargetAtIndex_ReadIfNeeded(), tpia_target_getHeatedTargetAtTIndex(), tpia_target_getTotalCrossSectionAtTIndex(), tpia_target_heated_getChannelAtIndex_smr(), tpia_target_read(), tpia_target_readHeatedTarget(), xData_1d_x_copyData(), xData_convertAttributeTo_xData_Int(), xData_convertAttributeToDouble(), xData_getCommonData(), xData_getOneElementByTagName(), xData_is_xDataType(), xData_parseAddElementToRoot(), xData_parseEndElement(), xData_parseEndOfXML(), xData_parseInitialize(), xData_parseReadFile(), xData_realloc(), xData_setMessageError_ReturnInt(), xData_stringTo_double(), xData_stringTo_xData_Int(), xData_xDataTypeConvertAttributes(), and xDataMisc_getAbsPath().
int smr_setMessageInfo | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 79 of file statusMessageReporting.cc.
References smr_setMessage().
Referenced by _tpia_map_findAllOfTarget2(), _tpia_map_findTarget2(), tpia_map_findTarget(), and tpia_map_toXMLString().
char* smr_vallocateFormatMessage | ( | const char * | fmt, |
va_list * | args | ||
) |
Definition at line 134 of file statusMessageReporting.cc.
References n.
Referenced by smr_allocateFormatMessage(), smr_getFullMessage2(), smr_setMessage(), and tpia_misc_setMessageError_Element().
int smr_vsetMessageError | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
va_list * | args | ||
) |
Definition at line 113 of file statusMessageReporting.cc.
References smr_setMessage().
Referenced by tpia_misc_setMessageError_Element().
int smr_vsetMessageInfo | ( | statusMessageReporting * | smr, |
void * | userInterface, | ||
const char * | file, | ||
int | line, | ||
int | code, | ||
const char * | fmt, | ||
va_list * | args | ||
) |
Definition at line 92 of file statusMessageReporting.cc.
References smr_setMessage().
|
static |
Definition at line 48 of file statusMessageReporting.cc.