moab
|
#include <ReadTxt.hpp>
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. | |
ReadTxt (Interface *impl=NULL) | |
Constructor. | |
virtual | ~ReadTxt () |
Destructor. | |
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. | |
Static Public Member Functions | |
static ReaderIface * | factory (Interface *) |
factory method | |
Private Attributes | |
ReadUtilIface * | readMeshIface |
Interface * | mdbImpl |
interface instance |
Definition at line 29 of file ReadTxt.hpp.
moab::ReadTxt::ReadTxt | ( | Interface * | impl = NULL | ) |
Constructor.
Definition at line 45 of file ReadTxt.cpp.
: mdbImpl(impl) { mdbImpl->query_interface(readMeshIface); }
moab::ReadTxt::~ReadTxt | ( | ) | [virtual] |
Destructor.
Definition at line 51 of file ReadTxt.cpp.
{ if (readMeshIface) { mdbImpl->release_interface(readMeshIface); readMeshIface = 0; } }
ReaderIface * moab::ReadTxt::factory | ( | Interface * | iface | ) | [static] |
ErrorCode moab::ReadTxt::load_file | ( | const char * | file_name, |
const EntityHandle * | file_set, | ||
const FileOptions & | opts, | ||
const SubsetList * | subset_list = 0 , |
||
const Tag * | file_id_tag = 0 |
||
) | [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 59 of file ReadTxt.cpp.
{ return MB_NOT_IMPLEMENTED; }
ErrorCode moab::ReadTxt::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 |
||
) | [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 68 of file ReadTxt.cpp.
{ return MB_NOT_IMPLEMENTED; }
Interface* moab::ReadTxt::mdbImpl [private] |
interface instance
Definition at line 60 of file ReadTxt.hpp.
ReadUtilIface* moab::ReadTxt::readMeshIface [private] |
Definition at line 57 of file ReadTxt.hpp.