moab
DamselUtil.hpp File Reference
#include "moab/Forward.hpp"
#include "DebugOutput.hpp"
#include "damsel.h"
#include "damsel-internal.h"

Go to the source code of this file.

Classes

class  moab::DamselUtil
class  moab::DamselUtil::tinfo
 struct to hold information on damsel/moab tags More...
struct  moab::DamselUtil::MtagP< T >
struct  moab::DamselUtil::DtagP< T >

Namespaces

namespace  moab
 

Class representing axis-aligned bounding box.


Defines

#define CHK_MB_ERR(A, B)
#define CHK_MB_ERR_NR(A, B)
#define CHK_MB_ERR_2(A, B, C)
#define CHK_MB_ERR_FINALIZE(A, B)
#define CHK_DMSL_ERR(A, B)
#define CHK_DMSL_ERR_2(A, B, C)
#define CHK_DMSL_ERR_NM(A)   if (DMSL_OK.id != A.id) return error(MB_FAILURE);
#define CHK_DMSL_ERR_FINALIZE(A, B)

Functions

static ErrorCode moab::error (ErrorCode rval)

Define Documentation

#define CHK_DMSL_ERR (   A,
 
)
Value:
do if (DMSL_OK.id != A.id) {             \
mError->set_last_error(B);\
return error(MB_FAILURE);             \
} while(false)

Definition at line 39 of file DamselUtil.hpp.

#define CHK_DMSL_ERR_2 (   A,
  B,
 
)
Value:
do if (DMSL_OK.id != A.id) {             \
mError->set_last_error(B, C);            \
return error(MB_FAILURE);             \
} while(false)

Definition at line 45 of file DamselUtil.hpp.

#define CHK_DMSL_ERR_FINALIZE (   A,
 
)
Value:
do if (DMSL_OK.id != A.id) {             \
  DMSLlib_finalize(dmslLib); \
  dmslLib = 0;          \
  mError->set_last_error(B);\
  return error(MB_FAILURE);                    \
} while(false)

Definition at line 54 of file DamselUtil.hpp.

#define CHK_DMSL_ERR_NM (   A)    if (DMSL_OK.id != A.id) return error(MB_FAILURE);

Definition at line 51 of file DamselUtil.hpp.

#define CHK_MB_ERR (   A,
 
)
Value:
do if (MB_SUCCESS != (A)) { \
mError->set_last_error(B);\
return error(A);} while(false)

Definition at line 16 of file DamselUtil.hpp.

#define CHK_MB_ERR_2 (   A,
  B,
 
)
Value:
do if (MB_SUCCESS != (A   )) { \
mError->set_last_error(B, C);                 \
return error(A);} while(false)

Definition at line 26 of file DamselUtil.hpp.

#define CHK_MB_ERR_FINALIZE (   A,
 
)
Value:
do if (MB_SUCCESS != (A)) {             \
  DMSLlib_finalize(dmslLib); \
  dmslLib = 0;          \
  mError->set_last_error(B);\
  return error(A);     \
} while(false)

Definition at line 31 of file DamselUtil.hpp.

#define CHK_MB_ERR_NR (   A,
 
)
Value:
do if (MB_SUCCESS != (A)) { \
mError->set_last_error(B);\
std::cerr << B << std::endl;} while(false)

Definition at line 21 of file DamselUtil.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines