MrSID Decode SDK for Raster Reference Manual  9.5.4.4709
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 
138 #define LT_STS_ForkError 3111
139 LT_STATUSSTRING_ADD(LT_STS_ForkError, "could not start child process")
140 
141 
142 #endif // LT_UTILSTATUS_H
#define LT_STS_Failure
status code indicating failure
Definition: lt_status.h:60
#define LT_STS_UTIL_PackageHomeNotFound
#define LTUTIL_STS_ERR_CHMOD_FAIL
Definition: lt_utilStatus.h:81
#define LT_STS_UTIL_ExtractRegistryText
Definition: lt_utilStatus.h:86
#define LT_STS_UTIL_PackageHomeEnvVarUndefined
#define LT_STS_UTIL_TimeUnknown
#define LTUTIL_STS_ERR_MKTEMP_FAIL
Definition: lt_utilStatus.h:77
#define LT_STS_ForkError
#define LTUTIL_STS_DIR_NOT_FOUND
Definition: lt_utilStatus.h:75
#define LT_STS_NullPointer
status code indicating bad NULL pointer dereference
Definition: lt_status.h:121
#define LTUTIL_STS_MUTEX_LOCK_ERROR
Definition: lt_utilStatus.h:57
#define LT_STS_NotReached
status code indicating unreachable code
Definition: lt_status.h:113
#define LT_STS_BadParam
status code indicating bad function parameter
Definition: lt_status.h:79
#define LT_STS_UTIL_StatusDataInitialized
indicates StatusData initialization error
#define LT_STS_UTIL_StatusDataTypeError
indicates StatusData data type error
#define LTUTIL_STS_CREATEDIR_ERROR
Definition: lt_utilStatus.h:67
#define LTUTIL_STS_NOT_FOUND
Definition: lt_utilStatus.h:47
#define LTUTIL_STS_MUTEX_CLOSE_ERROR
Definition: lt_utilStatus.h:55
#define LT_STS_BadContext
status code indicating bad calling context for function
Definition: lt_status.h:94
#define LT_STS_UTIL_ShellRedirectDUPError2
Definition: lt_utilStatus.h:98
#define LT_STS_UTIL_ThreadAlreadyRunning
#define LTUTIL_STS_MUTEX_UNLOCK_ERROR
Definition: lt_utilStatus.h:59
#define LT_STS_UTIL_PackageHomeRegKeyNotFound
#define LTUTIL_STS_InvalidProtocol
Definition: lt_utilStatus.h:90
#define LTUTIL_STATUS_MAX
Max value for util library error codes.
Definition: lt_utilStatus.h:42
#define LTUTIL_STS_NULL_POINTER
Definition: lt_utilStatus.h:45
#define LTUTIL_STATUS_BASE
Base value for util library error codes.
Definition: lt_utilStatus.h:38
#define LT_STS_UTIL_ShellRedirectDUPError3
#define LT_STS_Success
status code indicating success
Definition: lt_status.h:52
#define LT_STATUSSTRING_ADD(NUM, STR)
Definition: lt_define.h:141
#define LT_STS_UTIL_ShellRedirectCannotOpenFile
Definition: lt_utilStatus.h:94
#define LT_STS_OutOfMemory
status code indicating new/malloc/calloc failed
Definition: lt_status.h:129
#define LTUTIL_STS_MOVE_ERROR
Definition: lt_utilStatus.h:65
#define LTUTIL_STS_CRITICAL_SECTION_INIT
Definition: lt_utilStatus.h:51
#define LTUTIL_STS_INVALIDFILESPEC_ERROR
Definition: lt_utilStatus.h:69
#define LT_STS_UTIL_PackageFileNotFound
#define LT_STS_UTIL_PackageDirNotFound
#define LT_STS_UTIL_ShellRedirectDUPError1
Definition: lt_utilStatus.h:96
#define LT_STS_UTIL_LocaleNotSet
#define LT_STS_UTIL_ShellRedirectCannotCloseFile
#define LT_STS_ForeignError
status code indicating 3rd-party library error
Definition: lt_status.h:102
#define LTUTIL_STS_ERR_TEMPNAM_FAIL
Definition: lt_utilStatus.h:71
Include file for all LizardTech sources.
#define LTUTIL_STS_FILE_NOT_FOUND
Definition: lt_utilStatus.h:73
#define LTUTIL_STS_ERR_STAT_FAIL
Definition: lt_utilStatus.h:79
#define LTUTIL_STS_DELETE_ERROR
Definition: lt_utilStatus.h:63
#define LT_STS_Unimplemented
Status code indicating that the called function has not been implemented.
Definition: lt_status.h:135

LizardTech