#include <ReadSms.hpp>
Inheritance diagram for moab::ReadSms:
Collaboration diagram for moab::ReadSms:Public Member Functions | |
| ErrorCode | load_file (const char *file_name, const EntityHandle *file_set, const FileOptions &opts, const SubsetList *subset_list=0, const Tag *file_id_tag=0) |
| Load mesh from a file. More... | |
| ErrorCode | read_tag_values (const char *file_name, const char *tag_name, const FileOptions &opts, std::vector< int > &tag_values_out, const SubsetList *subset_list=0) |
| Read tag values from a file. More... | |
| ReadSms (Interface *impl=NULL) | |
| Constructor. More... | |
| virtual | ~ReadSms () |
| Destructor. More... | |
Public Member Functions inherited from moab::ReaderIface | |
| virtual | ~ReaderIface () |
Static Public Member Functions | |
| static ReaderIface * | factory (Interface *) |
| factory method More... | |
Private Member Functions | |
| ErrorCode | add_entities (EntityHandle start, EntityHandle count, const Tag *file_id_tag) |
| ErrorCode | load_file_impl (FILE *file, const Tag *file_id_tag) |
| ErrorCode | get_set (std::vector< EntityHandle > *sets, int set_type, int set_id, Tag set_tag, EntityHandle &this_set, const Tag *file_id_tag) |
| ErrorCode | read_parallel_info (FILE *file_ptr) |
Private Attributes | |
| ReadUtilIface * | readMeshIface |
| Interface * | mdbImpl |
| interface instance More... | |
| Tag | globalId |
| Tag | paramCoords |
| Tag | geomDimension |
| int | setId |
Definition at line 15 of file ReadSms.hpp.
| ReadSms::ReadSms | ( | Interface * | impl = NULL | ) |
Constructor.
Definition at line 56 of file ReadSms.cpp.
References mdbImpl, moab::Interface::query_interface(), and readMeshIface.
Referenced by factory().
|
virtual |
Destructor.
Definition at line 61 of file ReadSms.cpp.
References mdbImpl, readMeshIface, and moab::Interface::release_interface().
|
private |
Definition at line 485 of file ReadSms.cpp.
References moab::ReadUtilIface::assign_ids(), moab::Range::insert(), and readMeshIface.
Referenced by load_file_impl().
|
static |
factory method
Definition at line 51 of file ReadSms.cpp.
References iface, and ReadSms().
Referenced by moab::ReaderWriterSet::ReaderWriterSet().
|
private |
Definition at line 403 of file ReadSms.cpp.
References moab::Interface::create_meshset(), ErrorCode, globalId, MB_FILE_WRITE_ERROR, MB_SUCCESS, mdbImpl, MESHSET_SET, setId, and moab::Interface::tag_set_data().
Referenced by load_file_impl().
|
virtual |
Load mesh from a file.
Method all readers must provide to import a mesh.
| file_name | The file to read. |
| file_set | Optional pointer to entity set representing file. If this is not NULL, reader may optionally tag the pointed-to set with format-specific meta-data. |
| subset_list | An optional struct pointer specifying the tags identifying entity sets to be read. |
| file_id_tag | If specified, reader should store for each entity it reads, a unique integer ID for this tag. |
Implements moab::ReaderIface.
Definition at line 79 of file ReadSms.cpp.
References ErrorCode, load_file_impl(), MB_FILE_DOES_NOT_EXIST, MB_SET_ERR, MB_UNSUPPORTED_OPERATION, and setId.
Definition at line 105 of file ReadSms.cpp.
References moab::Interface::add_entities(), add_entities(), moab::ReadUtilIface::assign_ids(), moab::Range::begin(), CHECK, CHECKN, moab::Range::clear(), moab::Interface::create_element(), ErrorCode, GEOM_DIMENSION_TAG_NAME, geomDimension, moab::Interface::get_adjacencies(), moab::ReadUtilIface::get_element_connect(), moab::ReadUtilIface::get_node_coords(), moab::ReadUtilIface::get_ordered_vertices(), get_set(), globalId, moab::Interface::globalId_tag(), moab::MAX_SUB_ENTITIES, MB_CHK_ERR, MB_FILE_WRITE_ERROR, MB_START_ID, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_DENSE, MB_TAG_SPARSE, MB_TYPE_DOUBLE, MB_TYPE_INTEGER, MBEDGE, MBTRI, mdbImpl, paramCoords, read_parallel_info(), readMeshIface, moab::Range::size(), moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and moab::CN::VerticesPerEntity().
Referenced by load_file().
|
private |
Definition at line 440 of file ReadSms.cpp.
References MB_SUCCESS, and nparts.
Referenced by load_file_impl().
|
virtual |
Read tag values from a file.
Read the list if all integer tag values from the file for a tag that is a single integer value per entity.
| file_name | The file to read. |
| tag_name | The tag for which to read values |
| tag_values_out | Output: The list of tag values. |
| subset_list | An array of tag name and value sets specifying the subset of the file to read. If multiple tags are specified, the sets that match all tags (intersection) should be read. |
| subset_list_length | The length of the 'subset_list' array. |
Implements moab::ReaderIface.
Definition at line 70 of file ReadSms.cpp.
References MB_NOT_IMPLEMENTED.
|
private |
Definition at line 59 of file ReadSms.hpp.
Referenced by load_file_impl().
|
private |
Definition at line 59 of file ReadSms.hpp.
Referenced by get_set(), and load_file_impl().
|
private |
interface instance
Definition at line 57 of file ReadSms.hpp.
Referenced by get_set(), load_file_impl(), ReadSms(), and ~ReadSms().
|
private |
Definition at line 59 of file ReadSms.hpp.
Referenced by load_file_impl().
|
private |
Definition at line 54 of file ReadSms.hpp.
Referenced by add_entities(), load_file_impl(), ReadSms(), and ~ReadSms().
|
private |
Definition at line 61 of file ReadSms.hpp.
Referenced by get_set(), and load_file().