MrSID Decode SDK for Raster Reference Manual  9.5.1.4427
lt_utilStatus.h
Go to the documentation of this file.
1 /* $Id$ */
2 /* //////////////////////////////////////////////////////////////////////////
3 // //
4 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue, //
5 // Suite 200, Seattle, WA 98104. Unauthorized use or distribution //
6 // prohibited. Access to and use of this code is permitted only under //
7 // license from LizardTech, Inc. Portions of the code are protected by //
8 // US and foreign patents and other filings. All Rights Reserved. //
9 // //
11 /* PUBLIC */
12 
13 #ifndef LT_UTILSTATUS_H
14 #define LT_UTILSTATUS_H
15 
16 #include "lt_base.h"
17 
18 // these should be in lt_define.h
21 LT_STATUSSTRING_ADD(LT_STS_BadParam, "bad function parameter")
22 LT_STATUSSTRING_ADD(LT_STS_BadContext, "bad calling context")
23 LT_STATUSSTRING_ADD(LT_STS_ForeignError, "3rd-party library error")
24 LT_STATUSSTRING_ADD(LT_STS_NotReached, "unreachable code")
25 LT_STATUSSTRING_ADD(LT_STS_NullPointer, "NULL pointer dereferenced")
27 LT_STATUSSTRING_ADD(LT_STS_Unimplemented, "not implemented")
28 
29 // these are only used for testing
30 LT_STATUSSTRING_ADD(910, "status test uint32=%u")
31 LT_STATUSSTRING_ADD(911, "status test int32=%d")
32 LT_STATUSSTRING_ADD(912, "status test double=%f")
33 LT_STATUSSTRING_ADD(913, "status test string=%s")
34 LT_STATUSSTRING_ADD(914, "status test uint=%u uint=%u double=%f string=%s string=%s string=%s foo")
35 LT_STATUSSTRING_ADD(915, "status test filespec=%F")
36 
38 #define LTUTIL_STATUS_BASE 3000
39 LT_STATUSSTRING_ADD(LTUTIL_STATUS_BASE, "lt_lib_utils BASE")
40 
41 
42 #define LTUTIL_STATUS_MAX 3999
43 LT_STATUSSTRING_ADD(LTUTIL_STATUS_MAX, "lt_lib_utils MAX")
44 
45 #define LTUTIL_STS_NULL_POINTER 3001
46 LT_STATUSSTRING_ADD(LTUTIL_STS_NULL_POINTER, "NULL pointer dereferenced")
47 #define LTUTIL_STS_NOT_FOUND 3002
48 LT_STATUSSTRING_ADD(LTUTIL_STS_NOT_FOUND, "The specified resource was not found")
49 
50 // caller failed to call initialize() (or called it twice)
51 #define LTUTIL_STS_CRITICAL_SECTION_INIT 3010
52 LT_STATUSSTRING_ADD(LTUTIL_STS_CRITICAL_SECTION_INIT, "critical section initialization failure")
53 
54 // problem closing mutex
55 #define LTUTIL_STS_MUTEX_CLOSE_ERROR 3020
57 #define LTUTIL_STS_MUTEX_LOCK_ERROR 3021
59 #define LTUTIL_STS_MUTEX_UNLOCK_ERROR 3022
61 
62 // LTFileUtils
63 #define LTUTIL_STS_DELETE_ERROR 3030
65 #define LTUTIL_STS_MOVE_ERROR 3031
67 #define LTUTIL_STS_CREATEDIR_ERROR 3032
69 #define LTUTIL_STS_INVALIDFILESPEC_ERROR 3033
71 #define LTUTIL_STS_ERR_TEMPNAM_FAIL 3034
73 #define LTUTIL_STS_FILE_NOT_FOUND 3035
74 LT_STATUSSTRING_ADD(LTUTIL_STS_FILE_NOT_FOUND, "The file was not found")
75 #define LTUTIL_STS_DIR_NOT_FOUND 3036
76 LT_STATUSSTRING_ADD(LTUTIL_STS_DIR_NOT_FOUND, "The directory was not found")
77 #define LTUTIL_STS_ERR_MKTEMP_FAIL 3037
79 #define LTUTIL_STS_ERR_STAT_FAIL 3038
81 #define LTUTIL_STS_ERR_CHMOD_FAIL 3039
83 
84 
85 // lt_winUtils.cpp
86 #define LT_STS_UTIL_ExtractRegistryText 3040
87 LT_STATUSSTRING_ADD(LT_STS_UTIL_ExtractRegistryText, "error extracting registry text - %s")
88 
89 
90 #define LTUTIL_STS_InvalidProtocol 3050
92 
93 // lt_utilShell.cpp
94 #define LT_STS_UTIL_ShellRedirectCannotOpenFile 3060
96 #define LT_STS_UTIL_ShellRedirectDUPError1 3061
98 #define LT_STS_UTIL_ShellRedirectDUPError2 3062
100 #define LT_STS_UTIL_ShellRedirectDUPError3 3063
102 #define LT_STS_UTIL_ShellRedirectCannotCloseFile 3064
103 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectCannotCloseFile, "ShellRedirectCannotCloseFile")
104 
105 // lt_utilStatusData.cpp
107 #define LT_STS_UTIL_StatusDataInitialized 3070
108 LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataInitialized, "StatusData initialization error")
110 #define LT_STS_UTIL_StatusDataTypeError 3071
111 LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataTypeError, "StatusData data type error")
112 
113 // lt_packageInfo.cpp
114 #define LT_STS_UTIL_PackageHomeNotFound 3080
115 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeNotFound, "package home not found")
116 #define LT_STS_UTIL_PackageDirNotFound 3081
117 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageDirNotFound, "package directory not found")
118 #define LT_STS_UTIL_PackageFileNotFound 3082
119 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageFileNotFound, "package file not found")
120 #define LT_STS_UTIL_PackageHomeRegKeyNotFound 3083
121 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeRegKeyNotFound, "package home registry key not found")
122 #define LT_STS_UTIL_PackageHomeEnvVarUndefined 3084
123 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeEnvVarUndefined, "package home environment variable not defined")
124 
125 // lt_utilTimer.cpp
126 #define LT_STS_UTIL_TimeUnknown 3090
127 LT_STATUSSTRING_ADD(LT_STS_UTIL_TimeUnknown, "time could not be determined")
128 
129 // lt_utilLocale.h
130 #define LT_STS_UTIL_LocaleNotSet 3100
131 LT_STATUSSTRING_ADD(LT_STS_UTIL_LocaleNotSet, "locale could not be set")
132 
133 // lt_utilThread.h
134 #define LT_STS_UTIL_ThreadAlreadyRunning 3110
135 LT_STATUSSTRING_ADD(LT_STS_UTIL_ThreadAlreadyRunning, "thread is already running")
136 
137 #endif // LT_UTILSTATUS_H

LizardTech