MOAB: Mesh Oriented datABase  (version 5.5.0)
read_cgm_load_test.cpp File Reference
#include <iostream>
#include "moab/Interface.hpp"
#include "TestUtil.hpp"
#include "Internals.hpp"
#include "moab/Core.hpp"
+ Include dependency graph for read_cgm_load_test.cpp:

Go to the source code of this file.

Macros

#define IS_BUILDING_MB
 
#define CHKERR(A)
 

Functions

void read_multiple_test ()
 
int main (int, char **)
 

Variables

std::string input_file = TestDir + "unittest/io/dum.sat"
 

Macro Definition Documentation

◆ CHKERR

#define CHKERR (   A)
Value:
do \
{ \
if( MB_SUCCESS != ( A ) ) \
{ \
std::cerr << "Failure (error code " << ( A ) << ") at " __FILE__ ":" << __LINE__ << std::endl; \
return A; \
} \
} while( false )

Definition at line 12 of file read_cgm_load_test.cpp.

◆ IS_BUILDING_MB

#define IS_BUILDING_MB

Definition at line 4 of file read_cgm_load_test.cpp.

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 38 of file read_cgm_load_test.cpp.

39 {
40  int result = RUN_TEST( read_multiple_test );
41 
42  return result;
43 }

References read_multiple_test(), and RUN_TEST.

◆ read_multiple_test()

void read_multiple_test ( )

Definition at line 29 of file read_cgm_load_test.cpp.

30 {
31  Core mb;
32 
33  ErrorCode rval = mb.load_file( input_file.c_str() );CHECK_ERR( rval );
34  // second load
35  rval = mb.load_file( input_file.c_str() );CHECK_ERR( rval );
36 }

References CHECK_ERR, ErrorCode, input_file, moab::Core::load_file(), and mb.

Referenced by main().

Variable Documentation

◆ input_file

std::string input_file = TestDir + "unittest/io/dum.sat"

Definition at line 25 of file read_cgm_load_test.cpp.

Referenced by read_multiple_test().