moab
|
00001 00016 #ifndef MOAB_TYPES_HPP 00017 #define MOAB_TYPES_HPP 00018 00019 #ifdef __cplusplus 00020 #include "moab/EntityType.hpp" 00021 #include "moab/EntityHandle.hpp" 00022 #endif 00023 00028 00029 #ifdef __cplusplus 00030 namespace moab { 00031 #endif 00032 00034 enum ErrorCode { MB_SUCCESS = 0, 00035 MB_INDEX_OUT_OF_RANGE, 00036 MB_TYPE_OUT_OF_RANGE, 00037 MB_MEMORY_ALLOCATION_FAILED, 00038 MB_ENTITY_NOT_FOUND, 00039 MB_MULTIPLE_ENTITIES_FOUND, 00040 MB_TAG_NOT_FOUND, 00041 MB_FILE_DOES_NOT_EXIST, 00042 MB_FILE_WRITE_ERROR, 00043 MB_NOT_IMPLEMENTED, 00044 MB_ALREADY_ALLOCATED, 00045 MB_VARIABLE_DATA_LENGTH, 00046 MB_INVALID_SIZE, 00047 MB_UNSUPPORTED_OPERATION, 00048 MB_UNHANDLED_OPTION, 00049 MB_STRUCTURED_MESH, 00050 MB_FAILURE}; 00051 00052 #ifdef __cplusplus 00053 extern const char* const ErrorCodeStr[]; 00054 #endif 00055 00057 enum Constants { 00058 MB_VARIABLE_LENGTH = -1 00059 }; 00060 00062 enum TagType { 00063 MB_TAG_BIT = 0, 00064 MB_TAG_SPARSE= 1<<0, 00065 MB_TAG_DENSE = 1<<1, 00066 MB_TAG_MESH = 1<<2, 00067 MB_TAG_BYTES = 1<<3, 00068 MB_TAG_VARLEN= 1<<4, 00069 MB_TAG_CREAT = 1<<5, 00070 MB_TAG_EXCL = 1<<6, 00071 MB_TAG_STORE = 1<<7, 00072 MB_TAG_ANY = 1<<8, 00073 MB_TAG_NOOPQ = 1<<9, 00074 MB_TAG_DFTOK = 1<<10 00076 }; 00077 00079 enum DataType { 00080 MB_TYPE_OPAQUE = 0, 00081 MB_TYPE_INTEGER = 1, 00082 MB_TYPE_DOUBLE = 2, 00083 MB_TYPE_BIT = 3, 00084 MB_TYPE_HANDLE = 4, 00085 MB_MAX_DATA_TYPE = MB_TYPE_HANDLE 00086 }; 00087 00088 #ifdef __cplusplus 00089 extern const char* const DataTypeStr[]; 00090 #endif 00091 00096 #ifdef __cplusplus 00097 class TagInfo; 00098 typedef TagInfo* Tag; 00099 #else 00100 struct TagInfo; 00101 typedef struct TagInfo* Tag; 00102 #endif 00103 00107 enum EntitySetProperty { 00108 MESHSET_TRACK_OWNER = 0x1, 00109 MESHSET_SET = 0x2, 00110 MESHSET_ORDERED = 0x4 00111 }; 00112 00113 enum SenseType { 00114 SENSE_INVALID = -2, 00115 SENSE_REVERSE = -1, 00116 SENSE_BOTH = 0, 00117 SENSE_FORWARD = 1 00118 }; 00119 00120 #ifdef __cplusplus 00121 extern const char* const* const SenseTypeStr; 00122 #endif 00123 00124 #ifdef __cplusplus 00125 } /* namespace moab */ 00126 #endif 00127 00130 #endif