|
MOAB: Mesh Oriented datABase
(version 5.4.1)
|
#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.
Defines | |
| #define | IS_BUILDING_MB |
| #define | CHKERR(A) |
Functions | |
| void | read_multiple_test () |
| int | main (int, char **) |
Variables | |
| std::string | input_file = "unittest/io/dum.sat" |
| #define CHKERR | ( | A | ) |
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.
| #define IS_BUILDING_MB |
Definition at line 4 of file read_cgm_load_test.cpp.
| int main | ( | int | , |
| char ** | |||
| ) |
Definition at line 38 of file read_cgm_load_test.cpp.
References read_multiple_test(), and RUN_TEST.
{
int result = RUN_TEST( read_multiple_test );
return result;
}
| void read_multiple_test | ( | ) |
Definition at line 29 of file read_cgm_load_test.cpp.
References CHECK_ERR, ErrorCode, input_file, moab::Core::load_file(), and mb.
Referenced by main().
{
Core mb;
ErrorCode rval = mb.load_file( input_file.c_str() );CHECK_ERR( rval );
// second load
rval = mb.load_file( input_file.c_str() );CHECK_ERR( rval );
}
| std::string input_file = "unittest/io/dum.sat" |
Definition at line 25 of file read_cgm_load_test.cpp.