Geant4  10.01.p03
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.

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"
 

Function Documentation

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

Definition at line 121 of file statusMessageReporting.cc.

References s, and smr_vallocateFormatMessage().

+ Here is the call graph for this function:

char* smr_getFullMessage ( statusMessageReporting *  smr)

Definition at line 247 of file statusMessageReporting.cc.

References smr_getFullMessage2().

+ Here is the call graph for this function:

static char * smr_getFullMessage2 ( char const *  fmt,
  ... 
)
static

Definition at line 254 of file statusMessageReporting.cc.

References smr_vallocateFormatMessage().

Referenced by smr_getFullMessage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int smr_setAllocationFailure ( statusMessageReporting *  smr,
const char *  fmt,
va_list *  args 
)
static

Definition at line 197 of file statusMessageReporting.cc.

Referenced by smr_setMessage().

+ Here is the caller graph for this function:

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

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int smr_setMessageError ( statusMessageReporting *  smr,
void *  userInterface,
const char *  file,
int  line,
int  code,
const char *  fmt,
  ... 
)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

Variable Documentation

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

Definition at line 48 of file statusMessageReporting.cc.