moab
FBiGeom_MOAB.hpp File Reference
#include "FBiGeom.h"
#include "moab/Interface.hpp"
#include "moab/FBEngine.hpp"
#include "iMesh.h"
#include "MBiMesh.hpp"

Go to the source code of this file.

Classes

class  MBiGeom

Defines

#define MBI   MBI_cast(instance)
#define GETGTT(a)   (reinterpret_cast<MBiGeom*>(a)->FBItf()->get_gtt())
#define IMESH_INSTANCE(i)   reinterpret_cast<iMesh_Instance>( reinterpret_cast<MBiGeom*>(i)->mbimesh() )
#define MBIM   reinterpret_cast<MBiGeom*>(instance)->mbimesh()
#define RETURN(CODE)
#define ERROR(CODE, MSG)
#define CHKERR(CODE, MSG)
#define FWDERR()
#define CHECK_SIZE(array, allocated, size, type, retval)

Functions

static moab::InterfaceMBI_cast (FBiGeom_Instance i)
static moab::FBEngineFBE_cast (FBiGeom_Instance i)
static moab::EntityHandle MBH_cast (iBase_EntityHandle h)
static bool FBiGeom_isError (int code)
static bool FBiGeom_isError (moab::ErrorCode code)

Variables

const iBase_ErrorType iBase_ERROR_MAP [moab::MB_FAILURE+1]

Define Documentation

#define CHECK_SIZE (   array,
  allocated,
  size,
  type,
  retval 
)
Value:
do {                                                                 \
    if (0 != allocated && NULL != array && allocated < (size)) {       \
      ERROR(iBase_MEMORY_ALLOCATION_FAILED, "Allocated array not "     \
            "enough to hold returned contents.");                      \
    }                                                                  \
    if ((size) && ((allocated) == 0 || NULL == (array))) {             \
      array = (type*)malloc((size)*sizeof(type));                      \
      allocated=(size);                                                \
      if (NULL == array) {                                             \
        ERROR(iBase_MEMORY_ALLOCATION_FAILED,                          \
              "Couldn't allocate array.");                             \
      }                                                                \
    }                                                                  \
  } while(false)

Definition at line 102 of file FBiGeom_MOAB.hpp.

#define CHKERR (   CODE,
  MSG 
)
Value:
do {                                                                 \
    if (FBiGeom_isError((CODE)))                                       \
      ERROR((CODE),(MSG));                                             \
  } while(false)

Definition at line 90 of file FBiGeom_MOAB.hpp.

#define ERROR (   CODE,
  MSG 
)
Value:
do {                                                                 \
    *err = MBIM->set_last_error((CODE), (MSG));                    \
    return;                                                            \
  } while(false)

Definition at line 84 of file FBiGeom_MOAB.hpp.

#define FWDERR ( )
Value:
do {                                                                 \
    if (FBiGeom_isError(*err))                                         \
      return;                                                          \
  } while(false)

Definition at line 96 of file FBiGeom_MOAB.hpp.

#define GETGTT (   a)    (reinterpret_cast<MBiGeom*>(a)->FBItf()->get_gtt())

Definition at line 64 of file FBiGeom_MOAB.hpp.

#define IMESH_INSTANCE (   i)    reinterpret_cast<iMesh_Instance>( reinterpret_cast<MBiGeom*>(i)->mbimesh() )

Definition at line 72 of file FBiGeom_MOAB.hpp.

#define MBI   MBI_cast(instance)

Definition at line 55 of file FBiGeom_MOAB.hpp.

#define MBIM   reinterpret_cast<MBiGeom*>(instance)->mbimesh()

Definition at line 76 of file FBiGeom_MOAB.hpp.

#define RETURN (   CODE)
Value:
do {                                                                 \
    *err = MBIM->set_last_error((CODE), "");                       \
    return;                                                            \
  } while(false)

Definition at line 78 of file FBiGeom_MOAB.hpp.


Function Documentation

static moab::FBEngine* FBE_cast ( FBiGeom_Instance  i) [inline, static]

Definition at line 57 of file FBiGeom_MOAB.hpp.

  { return reinterpret_cast<MBiGeom*>(i) -> FBItf(); }
static bool FBiGeom_isError ( int  code) [inline, static]

Definition at line 66 of file FBiGeom_MOAB.hpp.

  { return (iBase_SUCCESS != code); }
static bool FBiGeom_isError ( moab::ErrorCode  code) [inline, static]

Definition at line 68 of file FBiGeom_MOAB.hpp.

  { return (moab::MB_SUCCESS != code); }
static moab::EntityHandle MBH_cast ( iBase_EntityHandle  h) [inline, static]

Definition at line 61 of file FBiGeom_MOAB.hpp.

  { return reinterpret_cast<moab::EntityHandle>(h); }         
static moab::Interface* MBI_cast ( FBiGeom_Instance  i) [inline, static]

Definition at line 52 of file FBiGeom_MOAB.hpp.

  { return reinterpret_cast<MBiGeom*>(i)->moabItf(); }

Variable Documentation

Definition at line 12 of file FBiGeom_MOAB.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines