[MOAB-dev] r1517 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Jan 14 13:07:07 CST 2008


Author: kraftche
Date: 2008-01-14 13:07:07 -0600 (Mon, 14 Jan 2008)
New Revision: 1517

Modified:
   MOAB/trunk/MBCore.cpp
   MOAB/trunk/MBTypes.h
Log:
Add new error codes: MB_INVALID_SIZE and MB_VARIABLE_LENGTH_DATA, and new constant MB_VARIABLE_LENGTH

Modified: MOAB/trunk/MBCore.cpp
===================================================================
--- MOAB/trunk/MBCore.cpp	2008-01-14 19:05:55 UTC (rev 1516)
+++ MOAB/trunk/MBCore.cpp	2008-01-14 19:07:07 UTC (rev 1517)
@@ -90,6 +90,8 @@
   "MB_FILE_WRITE_ERROR",
   "MB_NOT_IMPLEMENTED",
   "MB_ALREADY_ALLOCATED",
+  "MB_VARIABLE_DATA_LENGTH",
+  "MB_INVALID_SIZE",
   "MB_FAILURE",
 };
 

Modified: MOAB/trunk/MBTypes.h
===================================================================
--- MOAB/trunk/MBTypes.h	2008-01-14 19:05:55 UTC (rev 1516)
+++ MOAB/trunk/MBTypes.h	2008-01-14 19:07:07 UTC (rev 1517)
@@ -50,8 +50,15 @@
                    MB_FILE_WRITE_ERROR,
                    MB_NOT_IMPLEMENTED,
                    MB_ALREADY_ALLOCATED,
+                   MB_VARIABLE_DATA_LENGTH,
+                   MB_INVALID_SIZE,
                    MB_FAILURE};
 
+/** Misc. integer constants, declared in enum for portability */
+enum MBConstants {
+  MB_VARIABLE_LENGTH = -1 /**< Length value for variable-length tags */ 
+};
+
 /** Specify storage type for tags.  See MOAB users guide for more information. */
 enum MBTagType {
   MB_TAG_BIT = 0, /**< size measured in bits instead of bytes, otherwise identical to sparse */




More information about the moab-dev mailing list