Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
moab::ReaderIface Class Reference

Interface for mesh reader implementations. More...

#include <ReaderIface.hpp>

+ Inheritance diagram for moab::ReaderIface:

Classes

struct  IDTag
struct  SubsetList

Public Member Functions

virtual ~ReaderIface ()
virtual 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)=0
 Load mesh from a file.
virtual 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)=0
 Read tag values from a file.

Detailed Description

Interface for mesh reader implementations.

Version:
1.00
Date:
2004-4-23
Author:
Jason Kraftcheck

Definition at line 34 of file ReaderIface.hpp.


Constructor & Destructor Documentation

virtual moab::ReaderIface::~ReaderIface ( ) [inline, virtual]

Definition at line 37 of file ReaderIface.hpp.

{}

Member Function Documentation

virtual ErrorCode moab::ReaderIface::load_file ( const char *  file_name,
const EntityHandle file_set,
const FileOptions opts,
const SubsetList subset_list = 0,
const Tag file_id_tag = 0 
) [pure virtual]

Load mesh from a file.

Method all readers must provide to import a mesh.

Parameters:
file_nameThe file to read.
file_setOptional 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_listAn optional struct pointer specifying the tags identifying entity sets to be read.
file_id_tagIf specified, reader should store for each entity it reads, a unique integer ID for this tag.
Author:
Jason Kraftcheck

Implemented in moab::ReadABAQUS, moab::Tqdcfr, moab::ReadOBJ, moab::ReadRTT, moab::ReadNCDF, moab::ReadNC, moab::ReadSTL, moab::ReadHDF5, moab::ReadCGM, moab::ReadMCNP5, moab::ReadNASTRAN, moab::ReadSmf, moab::ReadTetGen, moab::ReadCCMIO, moab::ReadDamsel, moab::ReadGmsh, moab::ReadVtk, moab::ReadIDEAS, moab::ReadTemplate, moab::ReadCGNS, and moab::ReadSms.

Referenced by moab::Core::serial_load_file().

virtual ErrorCode moab::ReaderIface::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 
) [pure 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.

Parameters:
file_nameThe file to read.
tag_nameThe tag for which to read values
tag_values_outOutput: The list of tag values.
subset_listAn 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_lengthThe length of the 'subset_list' array.

Implemented in moab::ReadABAQUS, moab::Tqdcfr, moab::ReadOBJ, moab::ReadRTT, moab::ReadCCMIO, moab::ReadNC, moab::ReadNCDF, moab::ReadSTL, moab::ReadHDF5, moab::ReadCGM, moab::ReadNASTRAN, moab::ReadMCNP5, moab::ReadDamsel, moab::ReadSmf, moab::ReadTetGen, moab::ReadGmsh, moab::ReadVtk, moab::ReadIDEAS, moab::ReadTemplate, moab::ReadCGNS, and moab::ReadSms.

Referenced by moab::Core::serial_read_tag().

List of all members.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines