p6log.h

Go to the documentation of this file.
00001 
00010 #ifndef P6LOG_H__
00011 #define P6LOG_H__ 1
00012 
00013 #include "p6err.h"
00014 
00015 namespace P6R {
00016 
00017 #ifdef  __cplusplus
00018 extern "C" {
00019 #endif
00020 
00022 #define P6MAX_PRODUCER_NAME   32
00023 #define P6MAX_PRODUCER_FMTSTR 2048
00024 #define P6MAX_LOG_LEVEL_LEN   32
00025 
00032 interface p6ILogProducerInit : p6ICom
00033 {
00051    P6COMMETHOD                   initialize(const P6R::P6WCHAR *pwszName,const P6R::P6WCHAR *pwszLogmsgSection) = 0;
00052 };
00053 
00054 #define IF_p6ILogProducerInit {0x12E27407,0xB44F,0x4061,{0xBA,0xDA,0x75,0xFC,0x14,0xC5,0x51,0x30}}
00055 
00081 interface p6ILogProducer : p6ICom
00082 {
00083 
00105    P6COMMETHOD                   log(const P6R::P6WCHAR *pszStrTableID,const P6R::P6CHAR *pszFile,P6R::P6UINT32 nLine,P6R::P6ARG *pArgs,P6R::P6UINT32 cArgs) = 0;
00106 
00115    P6COMMETHOD                   commit() = 0;
00116 
00130    P6COMMETHOD                   setVerbosity(P6R::P6INT32 nVerbosity,P6R::P6INT32 *pnOldVerbosity) = 0;
00131 };
00132 
00133 #define IF_p6ILogProducer {0x3BC4330E,0x27CE,0x4360,{0xA0,0x4F,0x99,0xB2,0xB7,0x03,0xC2,0xA3}}
00134 #define COMP_p6LogProducer {0x22BBB209,0x90EC,0x4330,{0x8B,0xC5,0x05,0x0A,0x41,0x8B,0x12,0xD3}}
00135 
00136 
00137 #ifdef  __cplusplus
00138 }
00139 #endif
00140 
00141 } // namespace 
00142 
00143 #endif
00144 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.