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.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/hadronic/models/lend/include/statusMessageReporting.h (Version 11.3.0) and /processes/hadronic/models/lend/include/statusMessageReporting.h (Version 9.2.p2)


  1 #ifndef statusMessageReporting_h_included           1 
  2 #define statusMessageReporting_h_included         
  3                                                   
  4 #include <stdio.h>                                
  5 #include <stdarg.h>                               
  6                                                   
  7 #ifdef WIN32                                      
  8 #define __func__ __FUNCTION__                     
  9 #endif                                            
 10                                                   
 11 #if defined __cplusplus                           
 12     extern "C" {                                  
 13     namespace GIDI {                              
 14 #endif                                            
 15                                                   
 16 #define smr_unknownID 0                           
 17 #define smr_tooManyIDs 1                          
 18 #define smr_invalidID 2                           
 19 #define smr_errnoID 3                             
 20 #define smr_smrID 4                               
 21                                                   
 22 #define smr_maximumNumberOfRegisteredLibraries    
 23 #define smr_maximumFileNameSize 1024              
 24 #define smr_codeNULL 0                            
 25 #define smr_codeFileIO -1                         
 26 #define smr_codeMemoryAllocating -2               
 27 enum smr_status { smr_status_Ok = 0, smr_statu    
 28 typedef char *(*smr_userInterface)( void *user    
 29                                                   
 30 typedef struct statusMessageReport {              
 31     struct statusMessageReport *next;             
 32     enum smr_status status;                       
 33     int libraryID;                                
 34     int code;                                     
 35     int line;                                     
 36     char fileName[smr_maximumFileNameSize+1];     
 37     char function[smr_maximumFileNameSize+1];     
 38     char *message;                                
 39 } statusMessageReport;                            
 40                                                   
 41 typedef struct statusMessageReporting {           
 42     enum smr_status verbosity;                    
 43     int append;                                   
 44     statusMessageReport report;                   
 45 } statusMessageReporting;                         
 46                                                   
 47 int smr_setup( void );                            
 48 int smr_cleanup( void );                          
 49                                                   
 50 int smr_registerLibrary( char const *libraryNa    
 51 int smr_numberOfRegisteredLibraries( void );      
 52 char const *smr_getRegisteredLibrariesName( in    
 53                                                   
 54 statusMessageReporting *smr_new( statusMessage    
 55 int smr_initialize( statusMessageReporting *sm    
 56 void smr_release( statusMessageReporting *smr     
 57 void *smr_free( statusMessageReporting **smr )    
 58 statusMessageReporting *smr_clone( statusMessa    
 59                                                   
 60 int smr_setReportInfo(  statusMessageReporting    
 61 int smr_vsetReportInfo( statusMessageReporting    
 62 int smr_setReportWarning(  statusMessageReport    
 63 int smr_vsetReportWarning( statusMessageReport    
 64 int smr_setReportError(  statusMessageReportin    
 65 int smr_vsetReportError( statusMessageReportin    
 66                                                   
 67 enum smr_status smr_highestStatus( statusMessa    
 68 int smr_isOk( statusMessageReporting *smr );      
 69 int smr_isInfo( statusMessageReporting *smr );    
 70 int smr_isWarning( statusMessageReporting *smr    
 71 int smr_isError( statusMessageReporting *smr )    
 72 int smr_isWarningOrError( statusMessageReporti    
 73                                                   
 74 int smr_isReportOk( statusMessageReport *repor    
 75 int smr_isReportInfo( statusMessageReport *rep    
 76 int smr_isReportWarning( statusMessageReport *    
 77 int smr_isReportError( statusMessageReport *re    
 78 int smr_isReportWarningOrError( statusMessageR    
 79                                                   
 80 int smr_numberOfReports( statusMessageReportin    
 81 statusMessageReport *smr_firstReport( statusMe    
 82 statusMessageReport *smr_nextReport( statusMes    
 83                                                   
 84 enum smr_status smr_getVerbosity( statusMessag    
 85 int smr_getAppend( statusMessageReporting *smr    
 86                                                   
 87 int smr_getLibraryID( statusMessageReport *rep    
 88 int smr_getCode( statusMessageReport *report )    
 89 int smr_getLine( statusMessageReport *report )    
 90 char const *smr_getFile( statusMessageReport *    
 91 char const *smr_getFunction( statusMessageRepo    
 92 char const *smr_getMessage( statusMessageRepor    
 93 char *smr_copyMessage( statusMessageReport *re    
 94 char *smr_copyFullMessage( statusMessageReport    
 95 void smr_print( statusMessageReporting *smr, i    
 96 void smr_write( statusMessageReporting *smr, F    
 97 void smr_reportPrint( statusMessageReport *rep    
 98 void smr_reportWrite( statusMessageReport *rep    
 99                                                   
100 char const *smr_statusToString( enum smr_statu    
101                                                   
102 char *smr_allocateFormatMessage( char const *f    
103 char *smr_vallocateFormatMessage( char const *    
104                                                   
105 void *smr_malloc( statusMessageReporting *smr,    
106 void *smr_realloc( statusMessageReporting *smr    
107 void *smr_freeMemory( void **p );                 
108 char *smr_allocateCopyString( statusMessageRep    
109 char *smr_allocateCopyStringN( statusMessageRe    
110                                                   
111 #define smr_malloc2( smr, size, zero, forItem     
112 #define smr_realloc2( smr, old, size, forItem     
113 #define smr_allocateCopyString2( smr, s, forIt    
114 #define smr_allocateCopyStringN2( smr, s, n, f    
115                                                   
116 #define smr_setReportInfo2( smr, libraryID, co    
117 #define smr_setReportInfo2p( smr, libraryID, c    
118 #define smr_vsetReportInfo2( smr, libraryID, c    
119 #define smr_setReportWarning2( smr, libraryID,    
120 #define smr_setReportWarning2p( smr, libraryID    
121 #define smr_vsetReportWarning2( smr, libraryID    
122 #define smr_setReportError2( smr, libraryID, c    
123 #define smr_setReportError2p( smr, libraryID,     
124 #define smr_vsetReportError2( smr, libraryID,     
125                                                   
126 #define smr_setReportInfo3( smr, userInterface    
127 #define smr_setReportInfo3p( smr, userInterfac    
128 #define smr_vsetReportInfo3( smr, userInterfac    
129 #define smr_setReportWarning3( smr, userInterf    
130 #define smr_setReportWarning3p( smr, userInter    
131 #define smr_vsetReportWarning3( smr, userInter    
132 #define smr_setReportError3( smr, userInterfac    
133 #define smr_setReportError3p( smr, userInterfa    
134 #define smr_vsetReportError3( smr, userInterfa    
135                                                   
136 #if defined __cplusplus                           
137     }                                             
138     }                                             
139 #endif                                            
140                                                   
141 #endif              /* End of statusMessageRep    
142