MrSID Decode SDK for Raster Reference Manual 9.5.5.5244
lt_utilStatus.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
8#ifndef LT_UTILSTATUS_H
9#define LT_UTILSTATUS_H
10
11#include "lt_base.h"
12
13// these should be in lt_define.h
16LT_STATUSSTRING_ADD(LT_STS_BadParam, "bad function parameter")
17LT_STATUSSTRING_ADD(LT_STS_BadContext, "bad calling context")
18LT_STATUSSTRING_ADD(LT_STS_ForeignError, "3rd-party library error")
19LT_STATUSSTRING_ADD(LT_STS_NotReached, "unreachable code")
20LT_STATUSSTRING_ADD(LT_STS_NullPointer, "nullptr pointer dereferenced")
23LT_STATUSSTRING_ADD(LT_STS_NoEncryption, "this SDK does not support decoding password protected MrSID files")
24
25// these are only used for testing
26LT_STATUSSTRING_ADD(910, "status test uint32=%u")
27LT_STATUSSTRING_ADD(911, "status test int32=%d")
28LT_STATUSSTRING_ADD(912, "status test double=%f")
29LT_STATUSSTRING_ADD(913, "status test string=%s")
30LT_STATUSSTRING_ADD(914, "status test uint=%u uint=%u double=%f string=%s string=%s string=%s foo")
31LT_STATUSSTRING_ADD(915, "status test filespec=%F")
32
34#define LTUTIL_STATUS_BASE 3000
35LT_STATUSSTRING_ADD(LTUTIL_STATUS_BASE, "lt_lib_utils BASE")
36
37
38#define LTUTIL_STATUS_MAX 3999
39LT_STATUSSTRING_ADD(LTUTIL_STATUS_MAX, "lt_lib_utils MAX")
40
41#define LTUTIL_STS_NULL_POINTER 3001
42LT_STATUSSTRING_ADD(LTUTIL_STS_NULL_POINTER, "nullptr pointer dereferenced")
43#define LTUTIL_STS_NOT_FOUND 3002
44LT_STATUSSTRING_ADD(LTUTIL_STS_NOT_FOUND, "The specified resource was not found")
45
46// caller failed to call initialize() (or called it twice)
47#define LTUTIL_STS_CRITICAL_SECTION_INIT 3010
48LT_STATUSSTRING_ADD(LTUTIL_STS_CRITICAL_SECTION_INIT, "critical section initialization failure")
49
50// problem closing mutex
51#define LTUTIL_STS_MUTEX_CLOSE_ERROR 3020
53#define LTUTIL_STS_MUTEX_LOCK_ERROR 3021
55#define LTUTIL_STS_MUTEX_UNLOCK_ERROR 3022
57
58// LTFileUtils
59#define LTUTIL_STS_DELETE_ERROR 3030
61#define LTUTIL_STS_MOVE_ERROR 3031
63#define LTUTIL_STS_CREATEDIR_ERROR 3032
65#define LTUTIL_STS_INVALIDFILESPEC_ERROR 3033
67#define LTUTIL_STS_ERR_TEMPNAM_FAIL 3034
69#define LTUTIL_STS_FILE_NOT_FOUND 3035
70LT_STATUSSTRING_ADD(LTUTIL_STS_FILE_NOT_FOUND, "The file was not found")
71#define LTUTIL_STS_DIR_NOT_FOUND 3036
72LT_STATUSSTRING_ADD(LTUTIL_STS_DIR_NOT_FOUND, "The directory was not found")
73#define LTUTIL_STS_ERR_MKTEMP_FAIL 3037
75#define LTUTIL_STS_ERR_STAT_FAIL 3038
77#define LTUTIL_STS_ERR_CHMOD_FAIL 3039
79
80
81// lt_winUtils.cpp
82#define LT_STS_UTIL_ExtractRegistryText 3040
83LT_STATUSSTRING_ADD(LT_STS_UTIL_ExtractRegistryText, "error extracting registry text - %s")
84
85
86#define LTUTIL_STS_InvalidProtocol 3050
88
89// lt_utilShell.cpp
90#define LT_STS_UTIL_ShellRedirectCannotOpenFile 3060
92#define LT_STS_UTIL_ShellRedirectDUPError1 3061
94#define LT_STS_UTIL_ShellRedirectDUPError2 3062
96#define LT_STS_UTIL_ShellRedirectDUPError3 3063
98#define LT_STS_UTIL_ShellRedirectCannotCloseFile 3064
100
101// lt_utilStatusData.cpp
103#define LT_STS_UTIL_StatusDataInitialized 3070
104LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataInitialized, "StatusData initialization error")
106#define LT_STS_UTIL_StatusDataTypeError 3071
107LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataTypeError, "StatusData data type error")
108
109// lt_packageInfo.cpp
110#define LT_STS_UTIL_PackageHomeNotFound 3080
112#define LT_STS_UTIL_PackageDirNotFound 3081
113LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageDirNotFound, "package directory not found")
114#define LT_STS_UTIL_PackageFileNotFound 3082
116#define LT_STS_UTIL_PackageHomeRegKeyNotFound 3083
117LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeRegKeyNotFound, "package home registry key not found")
118#define LT_STS_UTIL_PackageHomeEnvVarUndefined 3084
119LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeEnvVarUndefined, "package home environment variable not defined")
120
121// lt_utilTimer.cpp
122#define LT_STS_UTIL_TimeUnknown 3090
123LT_STATUSSTRING_ADD(LT_STS_UTIL_TimeUnknown, "time could not be determined")
124
125// lt_utilLocale.h
126#define LT_STS_UTIL_LocaleNotSet 3100
127LT_STATUSSTRING_ADD(LT_STS_UTIL_LocaleNotSet, "locale could not be set")
128
129// lt_utilThread.h
130#define LT_STS_UTIL_ThreadAlreadyRunning 3110
131LT_STATUSSTRING_ADD(LT_STS_UTIL_ThreadAlreadyRunning, "thread is already running")
132
133
134#define LT_STS_ForkError 3111
135LT_STATUSSTRING_ADD(LT_STS_ForkError, "could not start child process")
136
137
138#endif // LT_UTILSTATUS_H
Include file for all LizardTech sources.
#define LT_STATUSSTRING_ADD(NUM, STR)
Definition: lt_define.h:114
#define LT_STS_NoEncryption
Status code indicating that the SDK does not support Encryption.
Definition: lt_status.h:132
#define LT_STS_BadContext
status code indicating bad calling context for function
Definition: lt_status.h:85
#define LT_STS_Unimplemented
Status code indicating that the called function has not been implemented.
Definition: lt_status.h:126
#define LT_STS_ForeignError
status code indicating 3rd-party library error
Definition: lt_status.h:93
#define LT_STS_NullPointer
status code indicating bad nullptr pointer dereference
Definition: lt_status.h:112
#define LT_STS_Failure
status code indicating failure
Definition: lt_status.h:51
#define LT_STS_Success
status code indicating success
Definition: lt_status.h:43
#define LT_STS_OutOfMemory
status code indicating new/malloc/calloc failed
Definition: lt_status.h:120
#define LT_STS_BadParam
status code indicating bad function parameter
Definition: lt_status.h:70
#define LT_STS_NotReached
status code indicating unreachable code
Definition: lt_status.h:104
#define LTUTIL_STS_NULL_POINTER
Definition: lt_utilStatus.h:41
#define LT_STS_UTIL_PackageFileNotFound
#define LTUTIL_STS_INVALIDFILESPEC_ERROR
Definition: lt_utilStatus.h:65
#define LT_STS_ForkError
#define LT_STS_UTIL_PackageHomeNotFound
#define LT_STS_UTIL_ShellRedirectCannotOpenFile
Definition: lt_utilStatus.h:90
#define LTUTIL_STS_ERR_CHMOD_FAIL
Definition: lt_utilStatus.h:77
#define LT_STS_UTIL_TimeUnknown
#define LT_STS_UTIL_PackageDirNotFound
#define LTUTIL_STS_MOVE_ERROR
Definition: lt_utilStatus.h:61
#define LT_STS_UTIL_StatusDataTypeError
indicates StatusData data type error
#define LTUTIL_STS_NOT_FOUND
Definition: lt_utilStatus.h:43
#define LTUTIL_STS_DIR_NOT_FOUND
Definition: lt_utilStatus.h:71
#define LTUTIL_STS_FILE_NOT_FOUND
Definition: lt_utilStatus.h:69
#define LT_STS_UTIL_LocaleNotSet
#define LTUTIL_STS_ERR_STAT_FAIL
Definition: lt_utilStatus.h:75
#define LTUTIL_STS_MUTEX_LOCK_ERROR
Definition: lt_utilStatus.h:53
#define LTUTIL_STS_ERR_TEMPNAM_FAIL
Definition: lt_utilStatus.h:67
#define LTUTIL_STS_MUTEX_UNLOCK_ERROR
Definition: lt_utilStatus.h:55
#define LT_STS_UTIL_ShellRedirectCannotCloseFile
Definition: lt_utilStatus.h:98
#define LTUTIL_STS_DELETE_ERROR
Definition: lt_utilStatus.h:59
#define LT_STS_UTIL_ThreadAlreadyRunning
#define LTUTIL_STS_MUTEX_CLOSE_ERROR
Definition: lt_utilStatus.h:51
#define LTUTIL_STATUS_BASE
Base value for util library error codes
Definition: lt_utilStatus.h:34
#define LTUTIL_STS_CRITICAL_SECTION_INIT
Definition: lt_utilStatus.h:47
#define LTUTIL_STS_InvalidProtocol
Definition: lt_utilStatus.h:86
#define LT_STS_UTIL_ShellRedirectDUPError2
Definition: lt_utilStatus.h:94
#define LT_STS_UTIL_PackageHomeEnvVarUndefined
#define LT_STS_UTIL_ExtractRegistryText
Definition: lt_utilStatus.h:82
#define LTUTIL_STS_ERR_MKTEMP_FAIL
Definition: lt_utilStatus.h:73
#define LT_STS_UTIL_ShellRedirectDUPError1
Definition: lt_utilStatus.h:92
#define LT_STS_UTIL_StatusDataInitialized
indicates StatusData initialization error
#define LTUTIL_STS_CREATEDIR_ERROR
Definition: lt_utilStatus.h:63
#define LTUTIL_STATUS_MAX
Max value for util library error codes
Definition: lt_utilStatus.h:38
#define LT_STS_UTIL_PackageHomeRegKeyNotFound
#define LT_STS_UTIL_ShellRedirectDUPError3
Definition: lt_utilStatus.h:96

Extensis