Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6log.h
Go to the documentation of this file.
1 
10 #ifndef P6LOG_H__
11 #define P6LOG_H__ 1
12 
13 #include "p6err.h"
14 
15 
16 #ifdef __cplusplus
17 namespace P6R {
18 extern "C" {
19 #endif
20 
22 #define P6MAX_PRODUCER_NAME 32
23 #define P6MAX_PRODUCER_FMTSTR 2048
24 #define P6MAX_LOG_LEVEL_LEN 32
25 
32  #undef INTERFACE
33  #define INTERFACE p6ILogProducerInit
34  P6DECLAREIF_(p6ILogProducerInit,p6ICom)
35  {
54  P6DECLCOMMETHOD(initialize)(P6THIS_ const P6WCHAR *pwszName,const P6WCHAR *pwszLogmsgSection) P6PURE;
55  };
56 
57  #define IF_p6ILogProducerInit {0x12E27407,0xB44F,0x4061,{0xBA,0xDA,0x75,0xFC,0x14,0xC5,0x51,0x30}}
58 
84  #undef INTERFACE
85  #define INTERFACE p6ILogProducer
86  P6DECLAREIF_(p6ILogProducer,p6ICom)
87  {
89 
111  P6DECLCOMMETHOD(log)(P6THIS_ const P6WCHAR *pszStrTableID,const P6CHAR *pszFile,P6UINT32 nLine,P6ARG *pArgs,P6UINT32 cArgs) P6PURE;
112 
121  P6DECLCOMMETHOD(commit)(P6THIS) P6PURE;
122 
136  P6DECLCOMMETHOD(setVerbosity)(P6THIS_ P6INT32 nVerbosity,P6INT32 *pnOldVerbosity) P6PURE;
137  };
138 
139  #define IF_p6ILogProducer {0x3BC4330E,0x27CE,0x4360,{0xA0,0x4F,0x99,0xB2,0xB7,0x03,0xC2,0xA3}}
140  #define COMP_p6LogProducer {0x22BBB209,0x90EC,0x4330,{0x8B,0xC5,0x05,0x0A,0x41,0x8B,0x12,0xD3}}
141 
143 #ifdef __cplusplus
144 } // extern "C"
145 } // namespace
146 #endif
147 
148 
149 #endif
150 
uint32_t P6UINT32
Definition: p6types.h:77
#define P6DECLAREICOM
Definition: p6defs.h:191
#define P6PURE
Definition: p6defs.h:192
Standard error codes.
wchar_t P6WCHAR
Wide character type see p6i18n.h.
Definition: p6types.h:111
#define P6DECLCOMMETHOD(method)
Definition: p6defs.h:189
#define P6THIS_
Definition: p6defs.h:193
int32_t P6INT32
Definition: p6types.h:76
#define P6THIS
Definition: p6defs.h:194
char P6CHAR
Narrow character type.
Definition: p6types.h:105
#define P6DECLAREIF_(iface, baseif)
Definition: p6defs.h:188