Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
moab::Tqdcfr::GroupHeader Class Reference

#include <Tqdcfr.hpp>

Public Member Functions

void print ()
 
 GroupHeader ()
 

Static Public Member Functions

static ErrorCode read_info_header (const unsigned int model_offset, const FEModelHeader::ArrayInfo &info, Tqdcfr *instance, GroupHeader *&entity_headers)
 

Public Attributes

unsigned int grpID
 
unsigned int grpType
 
unsigned int memCt
 
unsigned int memOffset
 
unsigned int memTypeCt
 
unsigned int grpLength
 
EntityHandle setHandle
 

Detailed Description

Definition at line 137 of file Tqdcfr.hpp.

Constructor & Destructor Documentation

◆ GroupHeader()

moab::Tqdcfr::GroupHeader::GroupHeader ( )

Definition at line 2917 of file Tqdcfr.cpp.

2918  : grpID( 0 ), grpType( 0 ), memCt( 0 ), memOffset( 0 ), memTypeCt( 0 ), grpLength( 0 ), setHandle( 0 )
2919 {
2920 }

Member Function Documentation

◆ print()

void moab::Tqdcfr::GroupHeader::print ( )

Definition at line 2922 of file Tqdcfr.cpp.

2923 {
2924  std::cout << "grpID = " << grpID << std::endl;
2925  std::cout << "grpType = " << grpType << std::endl;
2926  std::cout << "memCt = " << memCt << std::endl;
2927  std::cout << "memOffset = " << memOffset << std::endl;
2928  std::cout << "memTypeCt = " << memTypeCt << std::endl;
2929  std::cout << "grpLength = " << grpLength << std::endl;
2930  std::cout << "setHandle = " << setHandle << std::endl;
2931 }

◆ read_info_header()

ErrorCode moab::Tqdcfr::GroupHeader::read_info_header ( const unsigned int  model_offset,
const FEModelHeader::ArrayInfo info,
Tqdcfr instance,
Tqdcfr::GroupHeader *&  group_headers 
)
static

Definition at line 1952 of file Tqdcfr.cpp.

1956 {
1957  group_headers = new GroupHeader[info.numEntities];
1958  instance->FSEEK( model_offset + info.tableOffset );
1959  ErrorCode result;
1960 
1961  if( 0 == instance->categoryTag )
1962  {
1963  static const char val[CATEGORY_TAG_SIZE] = { 0 };
1964  result = instance->mdbImpl->tag_get_handle( CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, MB_TYPE_OPAQUE,
1965  instance->categoryTag, MB_TAG_SPARSE | MB_TAG_CREAT, val );
1966  if( MB_SUCCESS != result ) return result;
1967  }
1968 
1969  for( unsigned int i = 0; i < info.numEntities; i++ )
1970  {
1971  // Create an entity set for this entity
1972  result = instance->create_set( group_headers[i].setHandle );
1973  if( MB_SUCCESS != result ) return result;
1974  static const char group_category[CATEGORY_TAG_SIZE] = "Group\0";
1975 
1976  instance->FREADI( 6 );
1977  group_headers[i].grpID = instance->uint_buf[0];
1978  group_headers[i].grpType = instance->uint_buf[1];
1979  group_headers[i].memCt = instance->uint_buf[2];
1980  group_headers[i].memOffset = instance->uint_buf[3];
1981  group_headers[i].memTypeCt = instance->uint_buf[4];
1982  group_headers[i].grpLength = instance->uint_buf[5];
1983 
1984  // Set the category tag to signify this is a group
1985  result = instance->mdbImpl->tag_set_data( instance->categoryTag, &( group_headers[i].setHandle ), 1,
1986  group_category );
1987  if( MB_SUCCESS != result ) return result;
1988 
1989  // Set a global id tag
1990  result = instance->mdbImpl->tag_set_data( instance->globalIdTag, &( group_headers[i].setHandle ), 1,
1991  &( group_headers[i].grpID ) );
1992  if( MB_SUCCESS != result ) return result;
1993 
1994  instance->gidSetMap[5][group_headers[i].grpID] = group_headers[i].setHandle;
1995  }
1996 
1997  return MB_SUCCESS;
1998 }

References CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, moab::Tqdcfr::categoryTag, moab::Tqdcfr::create_set(), ErrorCode, moab::Tqdcfr::FREADI(), moab::Tqdcfr::FSEEK(), moab::Tqdcfr::gidSetMap, moab::Tqdcfr::globalIdTag, grpID, grpLength, grpType, MB_SUCCESS, MB_TAG_CREAT, MB_TAG_SPARSE, MB_TYPE_OPAQUE, moab::Tqdcfr::mdbImpl, memCt, memOffset, memTypeCt, moab::Tqdcfr::FEModelHeader::ArrayInfo::numEntities, setHandle, moab::Tqdcfr::FEModelHeader::ArrayInfo::tableOffset, moab::Interface::tag_get_handle(), moab::Interface::tag_set_data(), and moab::Tqdcfr::uint_buf.

Referenced by moab::Tqdcfr::ModelEntry::read_header_info().

Member Data Documentation

◆ grpID

unsigned int moab::Tqdcfr::GroupHeader::grpID

Definition at line 140 of file Tqdcfr.hpp.

Referenced by moab::Tqdcfr::read_group(), and read_info_header().

◆ grpLength

unsigned int moab::Tqdcfr::GroupHeader::grpLength

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ grpType

unsigned int moab::Tqdcfr::GroupHeader::grpType

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ memCt

unsigned int moab::Tqdcfr::GroupHeader::memCt

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

◆ memOffset

unsigned int moab::Tqdcfr::GroupHeader::memOffset

Definition at line 140 of file Tqdcfr.hpp.

Referenced by moab::Tqdcfr::read_group(), and read_info_header().

◆ memTypeCt

unsigned int moab::Tqdcfr::GroupHeader::memTypeCt

Definition at line 140 of file Tqdcfr.hpp.

Referenced by moab::Tqdcfr::read_group(), and read_info_header().

◆ setHandle

EntityHandle moab::Tqdcfr::GroupHeader::setHandle

Definition at line 142 of file Tqdcfr.hpp.

Referenced by moab::Tqdcfr::read_group(), and read_info_header().


The documentation for this class was generated from the following files: