MrSID Decode SDK for Raster Reference Manual  9.0.0.3864
lt_utilStatus.h
Go to the documentation of this file.
00001 /* $Id$ */
00002 /* //////////////////////////////////////////////////////////////////////////
00003 //                                                                         //
00004 // This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue,   //
00005 // Suite 200, Seattle, WA 98104.  Unauthorized use or distribution         //
00006 // prohibited.  Access to and use of this code is permitted only under     //
00007 // license from LizardTech, Inc.  Portions of the code are protected by    //
00008 // US and foreign patents and other filings. All Rights Reserved.          //
00009 //                                                                         //
00011 /* PUBLIC */
00012 
00013 #ifndef LT_UTILSTATUS_H
00014 #define LT_UTILSTATUS_H
00015 
00016 #include "lt_base.h"
00017 
00018 // these should be in lt_define.h
00019 LT_STATUSSTRING_ADD(LT_STS_Success, "Success")
00020 LT_STATUSSTRING_ADD(LT_STS_Failure, "Failure")
00021 LT_STATUSSTRING_ADD(LT_STS_BadParam, "bad function parameter")
00022 LT_STATUSSTRING_ADD(LT_STS_BadContext, "bad calling context")
00023 LT_STATUSSTRING_ADD(LT_STS_ForeignError, "3rd-party library error")
00024 LT_STATUSSTRING_ADD(LT_STS_NotReached, "unreachable code")
00025 LT_STATUSSTRING_ADD(LT_STS_NullPointer, "NULL pointer dereferenced")
00026 LT_STATUSSTRING_ADD(LT_STS_OutOfMemory, "out of memory")
00027 LT_STATUSSTRING_ADD(LT_STS_Unimplemented, "not implemented")
00028 
00029 // these are only used for testing
00030 LT_STATUSSTRING_ADD(910, "status test uint32=%u")
00031 LT_STATUSSTRING_ADD(911, "status test int32=%d")
00032 LT_STATUSSTRING_ADD(912, "status test double=%f")
00033 LT_STATUSSTRING_ADD(913, "status test string=%s")
00034 LT_STATUSSTRING_ADD(914, "status test uint=%u uint=%u double=%f string=%s string=%s string=%s foo")
00035 LT_STATUSSTRING_ADD(915, "status test filespec=%F")
00036 
00038 #define LTUTIL_STATUS_BASE                         3000
00039 LT_STATUSSTRING_ADD(LTUTIL_STATUS_BASE, "lt_lib_utils BASE")
00040 
00041 
00042 #define LTUTIL_STATUS_MAX                          3999
00043 LT_STATUSSTRING_ADD(LTUTIL_STATUS_MAX, "lt_lib_utils MAX")
00044 
00045 #define LTUTIL_STS_NULL_POINTER                    3001
00046 LT_STATUSSTRING_ADD(LTUTIL_STS_NULL_POINTER, "NULL pointer dereferenced")
00047 #define LTUTIL_STS_NOT_FOUND                       3002
00048 LT_STATUSSTRING_ADD(LTUTIL_STS_NOT_FOUND, "The specified resource was not found")
00049 
00050 // caller failed to call initialize() (or called it twice)
00051 #define LTUTIL_STS_CRITICAL_SECTION_INIT           3010
00052 LT_STATUSSTRING_ADD(LTUTIL_STS_CRITICAL_SECTION_INIT, "critical section initialization failure")
00053 
00054 // problem closing mutex
00055 #define LTUTIL_STS_MUTEX_CLOSE_ERROR               3020
00056 LT_STATUSSTRING_ADD(LTUTIL_STS_MUTEX_CLOSE_ERROR, "mutex close error")
00057 #define LTUTIL_STS_MUTEX_LOCK_ERROR                3021
00058 LT_STATUSSTRING_ADD(LTUTIL_STS_MUTEX_LOCK_ERROR, "mutex lock error")
00059 #define LTUTIL_STS_MUTEX_UNLOCK_ERROR              3022
00060 LT_STATUSSTRING_ADD(LTUTIL_STS_MUTEX_UNLOCK_ERROR, "mutex unlock error")
00061 
00062 // LTFileUtils
00063 #define LTUTIL_STS_DELETE_ERROR                    3030
00064 LT_STATUSSTRING_ADD(LTUTIL_STS_DELETE_ERROR, "delete error")
00065 #define LTUTIL_STS_MOVE_ERROR                      3031
00066 LT_STATUSSTRING_ADD(LTUTIL_STS_MOVE_ERROR, "move error")
00067 #define LTUTIL_STS_CREATEDIR_ERROR                 3032
00068 LT_STATUSSTRING_ADD(LTUTIL_STS_CREATEDIR_ERROR, "createdir error")
00069 #define LTUTIL_STS_INVALIDFILESPEC_ERROR           3033
00070 LT_STATUSSTRING_ADD(LTUTIL_STS_INVALIDFILESPEC_ERROR, "invalid filespec error")
00071 #define LTUTIL_STS_ERR_TEMPNAM_FAIL                3034
00072 LT_STATUSSTRING_ADD(LTUTIL_STS_ERR_TEMPNAM_FAIL, "tempnam error")
00073 #define LTUTIL_STS_FILE_NOT_FOUND                  3035
00074 LT_STATUSSTRING_ADD(LTUTIL_STS_FILE_NOT_FOUND, "The file was not found")
00075 #define LTUTIL_STS_DIR_NOT_FOUND                   3036
00076 LT_STATUSSTRING_ADD(LTUTIL_STS_DIR_NOT_FOUND, "The directory was not found")
00077 #define LTUTIL_STS_ERR_MKTEMP_FAIL                 3037
00078 LT_STATUSSTRING_ADD(LTUTIL_STS_ERR_MKTEMP_FAIL, "mktemp error")
00079 #define LTUTIL_STS_ERR_STAT_FAIL                 3038
00080 LT_STATUSSTRING_ADD(LTUTIL_STS_ERR_STAT_FAIL, "stat error")
00081 #define LTUTIL_STS_ERR_CHMOD_FAIL                 3039
00082 LT_STATUSSTRING_ADD(LTUTIL_STS_ERR_CHMOD_FAIL, "chmod error")
00083 
00084 
00085 // lt_winUtils.cpp
00086 #define LT_STS_UTIL_ExtractRegistryText                     3040
00087 LT_STATUSSTRING_ADD(LT_STS_UTIL_ExtractRegistryText, "error extracting registry text - %s")
00088 
00089 
00090 #define LTUTIL_STS_InvalidProtocol                          3050
00091 LT_STATUSSTRING_ADD(LTUTIL_STS_InvalidProtocol, "Invalid protocol")
00092 
00093 // lt_utilShell.cpp
00094 #define LT_STS_UTIL_ShellRedirectCannotOpenFile             3060
00095 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectCannotOpenFile, "ShellRedirectCannotOpenFile")
00096 #define LT_STS_UTIL_ShellRedirectDUPError1                  3061
00097 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectDUPError1, "ShellRedirectDUPError1")
00098 #define LT_STS_UTIL_ShellRedirectDUPError2                  3062
00099 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectDUPError2, "ShellRedirectDUPError2")
00100 #define LT_STS_UTIL_ShellRedirectDUPError3                  3063
00101 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectDUPError3, "ShellRedirectDUPError3")
00102 #define LT_STS_UTIL_ShellRedirectCannotCloseFile            3064
00103 LT_STATUSSTRING_ADD(LT_STS_UTIL_ShellRedirectCannotCloseFile, "ShellRedirectCannotCloseFile")
00104 
00105 // lt_utilStatusData.cpp
00107 #define LT_STS_UTIL_StatusDataInitialized                   3070
00108 LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataInitialized, "StatusData initialization error")
00110 #define LT_STS_UTIL_StatusDataTypeError                     3071
00111 LT_STATUSSTRING_ADD(LT_STS_UTIL_StatusDataTypeError, "StatusData data type error")
00112 
00113 // lt_packageInfo.cpp
00114 #define LT_STS_UTIL_PackageHomeNotFound                     3080
00115 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeNotFound, "package home not found")
00116 #define LT_STS_UTIL_PackageDirNotFound                      3081
00117 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageDirNotFound, "package directory not found")
00118 #define LT_STS_UTIL_PackageFileNotFound                     3082
00119 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageFileNotFound, "package file not found")
00120 #define LT_STS_UTIL_PackageHomeRegKeyNotFound               3083
00121 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeRegKeyNotFound, "package home registry key not found")
00122 #define LT_STS_UTIL_PackageHomeEnvVarUndefined              3084
00123 LT_STATUSSTRING_ADD(LT_STS_UTIL_PackageHomeEnvVarUndefined, "package home environment variable not defined")
00124 
00125 // lt_utilTimer.cpp
00126 #define LT_STS_UTIL_TimeUnknown                             3090
00127 LT_STATUSSTRING_ADD(LT_STS_UTIL_TimeUnknown, "time could not be determined")
00128 
00129 // lt_utilLocale.h
00130 #define LT_STS_UTIL_LocaleNotSet                            3100
00131 LT_STATUSSTRING_ADD(LT_STS_UTIL_LocaleNotSet, "locale could not be set")
00132 
00133 //   lt_utilThread.h
00134 #define LT_STS_UTIL_ThreadAlreadyRunning                    3110
00135 LT_STATUSSTRING_ADD(LT_STS_UTIL_ThreadAlreadyRunning,      "thread is already running")
00136 
00137 #endif // LT_UTILSTATUS_H