Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | Related Pages

stat.h

00001 /*
00002  *  libFreiburg - src/LibFreiburg/include/msgque/stat.h
00003  *  
00004  *  (C) 2004 - Freiburg - Project - Group
00005  *  ------------------------------------------------------
00006  *  EMail: freiburg AT compiler-factory DOT de
00007  *  ------------------------------------------------------
00008  *  all rights reserved
00009  */
00010 
00022 #ifndef MQ_STAT_H
00023 #define MQ_STAT_H
00024 
00025 /*****************************************************************************/
00026 /*                                                                           */
00027 /*                                stat_ctx                                   */
00028 /*                                                                           */
00029 /*****************************************************************************/
00030 
00033 typedef struct MqStatCtxS {
00034   MqSP msgque;                  
00035   MqBufferSP name;              
00036   MQ_INT2 level;                
00037   MQ_INT4 count;                
00038   MQ_FLT8 val;                  
00039 } MqStatCtxS;
00040 
00043 MQ_EXTERN MqStatCtxSP MqStatCtxCreate (
00044   MqSP const msgque,
00045   const MQ_STR name,
00046   MQ_INT4 count,
00047   MQ_INT2 level
00048 );
00049 
00051 MQ_EXTERN inline void MqStatCtxDelete (
00052   MqStatCtxSP *statctxP
00053 );
00054 
00056 MQ_EXTERN inline void MqStatCtxPrint (
00057   MqStatCtxSP statctx
00058 );
00059 
00061 MQ_EXTERN inline void MqStatCtxPrintCHK (
00062   const MQ_INT2 stat,
00063   MqStatCtxSP statctx
00064 );
00065 
00067 MQ_EXTERN void MqStatCtxCalc (
00068   MqStatCtxSP statctx,
00069   MqStatSP const stat
00070 );
00071 
00073 MQ_EXTERN inline void MqStatCtxCalcCHK (
00074   const MQ_INT2 stat,
00075   MqStatCtxSP statctx,
00076   MqStatSP const statistic
00077 );
00078 
00080 //( \change20: return \ref MqStatSP and not int
00081 MQ_EXTERN MqStatSP MqStatCreate (
00082   MqSP const msgque
00083 );
00084 
00086 MQ_EXTERN MqErrorE MqStatDelete (
00087   MqStatSP *statP
00088 );
00089 
00091 MQ_EXTERN MqErrorE MqStatInit (
00092   MqStatSP stat
00093 );
00094 
00096 MQ_EXTERN void MqStatLog (
00097   const char *prefix,
00098   MqStatSP const stat
00099 );
00100 
00103 #endif /* MQ_STAT_H */

Generated on Tue Nov 23 16:13:06 2004 for libFreiburg by  doxygen 1.3.8-20040928