equal
deleted
inserted
replaced
|
1 // |
|
2 // LOG.H |
|
3 /** |
|
4 * Copyright (c) 1996-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 * All rights reserved. |
|
6 * This component and the accompanying materials are made available |
|
7 * under the terms of "Eclipse Public License v1.0" |
|
8 * which accompanies this distribution, and is available |
|
9 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 * |
|
11 * Initial Contributors: |
|
12 * Nokia Corporation - initial contribution. |
|
13 * |
|
14 * Contributors: |
|
15 * |
|
16 * Description: |
|
17 * Logging |
|
18 * Written by AdamG, Oct 1996 |
|
19 * |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 /** |
|
26 @file LOG.H |
|
27 @internalComponent |
|
28 */ |
|
29 |
|
30 #if !defined(__LOG_H__) |
|
31 #define __LOG_H__ |
|
32 |
|
33 #include <e32std.h> |
|
34 #include <e32base.h> |
|
35 |
|
36 #if defined(_MKLOG) |
|
37 /** |
|
38 @internalComponent |
|
39 */ |
|
40 # define _LOG |
|
41 #endif |
|
42 |
|
43 #if defined(_LOG) |
|
44 |
|
45 |
|
46 # if defined(__WINS__) |
|
47 /** |
|
48 @internalComponent |
|
49 */ |
|
50 # define LOG(a) a |
|
51 # elif defined (__EPOC32__) |
|
52 /** No equivelent for EPOC32 yet */ |
|
53 # define LOG(a) |
|
54 //# undef _LOG |
|
55 # endif |
|
56 #else |
|
57 # define LOG(a) |
|
58 # undef _LOG |
|
59 #endif // _LOG |
|
60 |
|
61 #ifdef _LOG |
|
62 |
|
63 class Log |
|
64 /** |
|
65 @internalComponent |
|
66 */ |
|
67 { |
|
68 public: |
|
69 IMPORT_C static void Write(const TDesC& aDes); |
|
70 IMPORT_C static void Printf(TRefByValue<const TDesC> aFmt, ...); |
|
71 IMPORT_C static void HexDump(const TText* aHeader, const TText* aMargin, const TUint8* aPtr, TInt aLen); |
|
72 }; |
|
73 #endif |
|
74 |
|
75 #endif |