svn-gvsig-desktop / tags / v1_1_2_Build_1043 / libraries / libjni-ecw / include / NCSJPCDump.h @ 33914
History | View | Annotate | Download (2.44 KB)
1 | 3538 | nacho | /********************************************************
|
---|---|---|---|
2 | ** Copyright 2003 Earth Resource Mapping Ltd.
|
||
3 | ** This document contains proprietary source code of
|
||
4 | ** Earth Resource Mapping Ltd, and can only be used under
|
||
5 | ** one of the three licenses as described in the
|
||
6 | ** license.txt file supplied with this distribution.
|
||
7 | ** See separate license.txt file for license details
|
||
8 | ** and conditions.
|
||
9 | **
|
||
10 | ** This software is covered by US patent #6,442,298,
|
||
11 | ** #6,102,897 and #6,633,688. Rights to use these patents
|
||
12 | ** is included in the license agreements.
|
||
13 | **
|
||
14 | ** FILE: $Archive: /NCS/Source/include/NCSJPCDump.h $
|
||
15 | ** CREATED: 12/02/2003 3:27:34 PM
|
||
16 | ** AUTHOR: Simon Cope
|
||
17 | ** PURPOSE: CNCSJPCDump class header
|
||
18 | ** EDITS: [xx] ddMmmyy NAME COMMENTS
|
||
19 | *******************************************************/
|
||
20 | |||
21 | #ifndef NCSJPCDUMP_H
|
||
22 | #define NCSJPCDUMP_H
|
||
23 | #ifdef _DEBUG
|
||
24 | #ifndef NCSJPCTYPES_H
|
||
25 | #include "NCSJPCTypes.h" |
||
26 | #endif // NCSJPCTYPES_H |
||
27 | |||
28 | #ifndef NCSLOG_H
|
||
29 | #include "NCSLog.h" |
||
30 | #endif // NCSLOG_H |
||
31 | #ifndef NCSERROR_H
|
||
32 | #include "NCSError.h" |
||
33 | #endif // NCSERROR_H |
||
34 | |||
35 | #ifdef WIN32
|
||
36 | #include "TCHAR.h" |
||
37 | #endif // WIN32 |
||
38 | |||
39 | /**
|
||
40 | * CNCSJPCDump class - the JPC dumper class.
|
||
41 | *
|
||
42 | * @author Simon Cope
|
||
43 | * @version $Revision$ $Author$ $Date$
|
||
44 | */
|
||
45 | class NCSJPC_EXPORT_ALL CNCSJPCDump: public CNCSLog { |
||
46 | public:
|
||
47 | /** Default constructor, initialises members */
|
||
48 | CNCSJPCDump(); |
||
49 | /** Virtual destructor */
|
||
50 | virtual ~CNCSJPCDump(); |
||
51 | |||
52 | #if defined(_WCHAR_T_DEFINED)||defined(_WCHAR_T)
|
||
53 | /**
|
||
54 | * Dump the formated varargs to stderr & log.
|
||
55 | * @param eLevel LogLevel for dump
|
||
56 | * @param pFormat Format string
|
||
57 | * @param ... Varargs for format string
|
||
58 | * @return CNCSError NCS_SUCCESS, or Error code on failure.
|
||
59 | */
|
||
60 | virtual CNCSError Dump(CNCSLog::NCSLogLevel eLevel, wchar_t *pFormat, ...); |
||
61 | #endif
|
||
62 | /**
|
||
63 | * Dump the formated varargs to stderr & log.
|
||
64 | * @param eLevel LogLevel for dump
|
||
65 | * @param pFormat Format string
|
||
66 | * @param ... Varargs for format string
|
||
67 | * @return CNCSError NCS_SUCCESS, or Error code on failure.
|
||
68 | */
|
||
69 | virtual CNCSError Dump(CNCSLog::NCSLogLevel eLevel, char *pFormat, ...);
|
||
70 | private:
|
||
71 | /**
|
||
72 | * Dump the formated varargs to stderr & log.
|
||
73 | * @param eLevel LogLevel for dump
|
||
74 | * @param pFormat Format string
|
||
75 | * @param va Varargs list
|
||
76 | * @return CNCSError NCS_SUCCESS, or Error code on failure.
|
||
77 | */
|
||
78 | virtual CNCSError Dump(CNCSLog::NCSLogLevel eLevel, wchar_t *pFormat, va_list va); |
||
79 | }; |
||
80 | |||
81 | #endif // _DEBUG |
||
82 | #endif // !NCSJPCDUMP_H |