equal
deleted
inserted
replaced
|
1 // wsp_log.h |
|
2 // |
|
3 // Copyright (c) 2002 - 2010 Accenture. All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Accenture - Initial contribution |
|
11 // |
|
12 |
|
13 #ifndef __WSP_LOG_H__ |
|
14 #define __WSP_LOG_H__ |
|
15 |
|
16 #ifdef _DEBUG |
|
17 //#define WSP_LOGGING |
|
18 #endif |
|
19 |
|
20 #ifndef WSP_LOGGING |
|
21 #define WSP_LOG(a) |
|
22 #define WSP_RAW_LOG(a) |
|
23 #else |
|
24 #define WSP_LOG(a) a |
|
25 #define WSP_RAW_LOG(a) a |
|
26 #define _WSP_LOG |
|
27 |
|
28 #include <e32std.h> |
|
29 |
|
30 class WspLog |
|
31 { |
|
32 public: |
|
33 static TInt Open(); |
|
34 static void Close(); |
|
35 static void Write(const TDesC& aDes); |
|
36 static void Printf(TRefByValue<const TDesC> aFmt, ...); |
|
37 static void Printf(TRefByValue<const TDesC8> aFmt, ...); |
|
38 static void HexDump(const TText* aHeader, const TText* aMargin, const TUint8* aPtr, TInt aLen); |
|
39 static void WriteRawInbound(const TDesC8& aDes); |
|
40 static void WriteRawOutbound(const TDesC8& aDes); |
|
41 }; |
|
42 |
|
43 #endif // WSP_LOGGING |
|
44 |
|
45 #endif //__WSP_LOG_H__ |