comparison Core/Enumerations.h @ 1579:b93c398f934d

check the size of the enumerations in the plugin engine
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 15:45:50 +0200
parents 09715095fc53
children 357c4bb15701
comparison
equal deleted inserted replaced
1578:09715095fc53 1579:b93c398f934d
43 43
44 // This enumeration is autogenerated by the script 44 // This enumeration is autogenerated by the script
45 // "Resources/GenerateErrorCodes.py" 45 // "Resources/GenerateErrorCodes.py"
46 enum ErrorCode 46 enum ErrorCode
47 { 47 {
48 ErrorCode_Custom = -1 /*!< Custom error, see the attached error message */, 48 ErrorCode_Custom = -2 /*!< Custom error, see the attached error message */,
49 ErrorCode_InternalError = -1 /*!< Internal error */,
49 ErrorCode_Success = 0 /*!< Success */, 50 ErrorCode_Success = 0 /*!< Success */,
50 ErrorCode_InternalError = 1 /*!< Internal error */, 51 ErrorCode_Plugin = 1 /*!< Error encountered within the plugin engine */,
51 ErrorCode_NotImplemented = 2 /*!< Not implemented yet */, 52 ErrorCode_NotImplemented = 2 /*!< Not implemented yet */,
52 ErrorCode_ParameterOutOfRange = 3 /*!< Parameter out of range */, 53 ErrorCode_ParameterOutOfRange = 3 /*!< Parameter out of range */,
53 ErrorCode_NotEnoughMemory = 4 /*!< Not enough memory */, 54 ErrorCode_NotEnoughMemory = 4 /*!< Not enough memory */,
54 ErrorCode_BadParameterType = 5 /*!< Bad type for a parameter */, 55 ErrorCode_BadParameterType = 5 /*!< Bad type for a parameter */,
55 ErrorCode_BadSequenceOfCalls = 6 /*!< Bad sequence of calls */, 56 ErrorCode_BadSequenceOfCalls = 6 /*!< Bad sequence of calls */,
69 ErrorCode_CorruptedFile = 20 /*!< Corrupted file (inconsistent MD5 hash) */, 70 ErrorCode_CorruptedFile = 20 /*!< Corrupted file (inconsistent MD5 hash) */,
70 ErrorCode_InexistentTag = 21 /*!< Inexistent tag */, 71 ErrorCode_InexistentTag = 21 /*!< Inexistent tag */,
71 ErrorCode_ReadOnly = 22 /*!< Cannot modify a read-only data structure */, 72 ErrorCode_ReadOnly = 22 /*!< Cannot modify a read-only data structure */,
72 ErrorCode_IncompatibleImageFormat = 23 /*!< Incompatible format of the images */, 73 ErrorCode_IncompatibleImageFormat = 23 /*!< Incompatible format of the images */,
73 ErrorCode_IncompatibleImageSize = 24 /*!< Incompatible size of the images */, 74 ErrorCode_IncompatibleImageSize = 24 /*!< Incompatible size of the images */,
74 ErrorCode_SharedLibrary = 25 /*!< Error while using a shared library (plugin) */, 75 ErrorCode_SharedLibrary = 25 /*!< Error while using a shared library (plugin) */
75 ErrorCode_Plugin = 26 /*!< Error encountered inside a plugin */
76 }; 76 };
77 77
78 enum LogLevel 78 enum LogLevel
79 { 79 {
80 LogLevel_Error, 80 LogLevel_Error,