moab
|
00001 #include "moab/Types.hpp" 00002 00003 const char* const moab::ErrorCodeStr[] = { 00004 "MB_SUCCESS", 00005 "MB_INDEX_OUT_OF_RANGE", 00006 "MB_TYPE_OUT_OF_RANGE", 00007 "MB_MEMORY_ALLOCATION_FAILED", 00008 "MB_ENTITY_NOT_FOUND", 00009 "MB_MULTIPLE_ENTITIES_FOUND", 00010 "MB_TAG_NOT_FOUND", 00011 "MB_FILE_DOES_NOT_EXIST", 00012 "MB_FILE_WRITE_ERROR", 00013 "MB_NOT_IMPLEMENTED", 00014 "MB_ALREADY_ALLOCATED", 00015 "MB_VARIABLE_DATA_LENGTH", 00016 "MB_INVALID_SIZE", 00017 "MB_UNSUPPORTED_OPERATION", 00018 "MB_UNHANDLED_OPTION", 00019 "MB_STRUCTURED_MESH", 00020 "MB_FAILURE" 00021 }; 00022 00023 const char* const moab::DataTypeStr[] = { 00024 "MB_TYPE_OPAQUE", 00025 "MB_TYPE_INTEGER", 00026 "MB_TYPE_DOUBLE", 00027 "MB_TYPE_BIT", 00028 "MB_TYPE_HANDLE" 00029 }; 00030 00031 const char* const SenseTypeStr_private[] = { 00032 "SENSE_INVALID", 00033 "SENSE_REVERSE", 00034 "SENSE_BOTH", 00035 "SENSE_FORWARD" 00036 }; 00037 00038 /* Make this point into SenseTypeStr_private such that 00039 it can be indexed with negative enumeration values. 00040 NOTE: If SENSE_INVALID is negative, then subtracting 00041 it means that we are adding abs(SENSE_INVALID). */ 00042 const char* const* const moab::SenseTypeStr = SenseTypeStr_private - moab::SENSE_INVALID;