00001 //*************************************************************************** 00002 // (C) 2005 STEMMER IMAGING 00003 // 00010 // 00011 // License: This file is published under the license of the EMVA GenICam Standard Group. 00012 // A text file describing the legal terms is included in your installation as 'GenICam_license.pdf'. 00013 // If for some reason you are missing this file please contact the EMVA or visit the website 00014 // (http://www.genicam.org) for a full copy. 00015 // 00016 // THIS SOFTWARE IS PROVIDED BY THE EMVA GENICAM STANDARD GROUP "AS IS" 00017 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00018 // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00019 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE EMVA GENICAM STANDARD GROUP 00020 // OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00021 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00022 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00023 // OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00024 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00025 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00026 // POSSIBILITY OF SUCH DAMAGE. 00027 //*************************************************************************** 00028 00029 // TLIClientDummy.dll GenICam TransportLayer Dummy Client 00030 00031 #ifndef GC_ERROR_DEF_H 00032 #define GC_ERROR_DEF_H 00033 00034 #include <Base/GCTypes.h> 00035 00036 namespace GENICAM_NAMESPACE 00037 { 00040 typedef int32_t GC_ERROR; 00041 00045 enum GCErrorID 00046 { 00047 GC_ERR_SUCCESS = 0, 00048 GC_ERR_INVALID_BUFFER_SIZE = -1, 00049 GC_ERR_INVALID_HANDLE = -2, 00050 GC_ERR_INVALID_ID = -3, 00051 GC_ERR_ACCESS_DENIED = -4, 00052 GC_ERR_NO_DATA = -5, 00053 GC_ERR_ERROR = -6, 00054 GC_ERR_INVALID_PARAMETER = -7, 00055 GC_ERR_TIMEOUT = -8, 00056 GC_ERR_INVALID_FILENAME = -9, 00057 GC_ERR_INVALID_ADDRESS = -10, 00058 GC_ERR_FILE_IO = -11 00059 }; 00060 00063 enum GCModuleID { 00064 GC_MOD_SYSTEM = 0x0, 00065 GC_MOD_TLICLIENT = 0x20000000, 00066 GC_MOD_TLISYSTEM = 0x10000000, 00067 GC_MOD_FACTORY = 0x08000000, 00068 GC_MOD_GENAPI = 0x04000000 00069 00070 }; 00071 00072 #define GC_GET_ERROR(ErrorCode) (((ErrorCode ) & 0xFFFF ) | 0xFFFF0000) 00073 #define GC_IS_ERROR(ErrorCode) (((ErrorCode ) & 0x80000000) ? true : false) 00074 } 00075 #endif //GC_ERROR_DEF_H