MOAB: Mesh Oriented datABase  (version 5.4.1)
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

Definition at line 2917 of file Tqdcfr.cpp.

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

Member Function Documentation

Definition at line 2922 of file Tqdcfr.cpp.

{
    std::cout << "grpID = " << grpID << std::endl;
    std::cout << "grpType = " << grpType << std::endl;
    std::cout << "memCt = " << memCt << std::endl;
    std::cout << "memOffset = " << memOffset << std::endl;
    std::cout << "memTypeCt = " << memTypeCt << std::endl;
    std::cout << "grpLength = " << grpLength << std::endl;
    std::cout << "setHandle = " << setHandle << std::endl;
}
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.

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().

{
    group_headers = new GroupHeader[info.numEntities];
    instance->FSEEK( model_offset + info.tableOffset );
    ErrorCode result;

    if( 0 == instance->categoryTag )
    {
        static const char val[CATEGORY_TAG_SIZE] = { 0 };
        result = instance->mdbImpl->tag_get_handle( CATEGORY_TAG_NAME, CATEGORY_TAG_SIZE, MB_TYPE_OPAQUE,
                                                    instance->categoryTag, MB_TAG_SPARSE | MB_TAG_CREAT, val );
        if( MB_SUCCESS != result ) return result;
    }

    for( unsigned int i = 0; i < info.numEntities; i++ )
    {
        // Create an entity set for this entity
        result = instance->create_set( group_headers[i].setHandle );
        if( MB_SUCCESS != result ) return result;
        static const char group_category[CATEGORY_TAG_SIZE] = "Group\0";

        instance->FREADI( 6 );
        group_headers[i].grpID     = instance->uint_buf[0];
        group_headers[i].grpType   = instance->uint_buf[1];
        group_headers[i].memCt     = instance->uint_buf[2];
        group_headers[i].memOffset = instance->uint_buf[3];
        group_headers[i].memTypeCt = instance->uint_buf[4];
        group_headers[i].grpLength = instance->uint_buf[5];

        // Set the category tag to signify this is a group
        result = instance->mdbImpl->tag_set_data( instance->categoryTag, &( group_headers[i].setHandle ), 1,
                                                  group_category );
        if( MB_SUCCESS != result ) return result;

        // Set a global id tag
        result = instance->mdbImpl->tag_set_data( instance->globalIdTag, &( group_headers[i].setHandle ), 1,
                                                  &( group_headers[i].grpID ) );
        if( MB_SUCCESS != result ) return result;

        instance->gidSetMap[5][group_headers[i].grpID] = group_headers[i].setHandle;
    }

    return MB_SUCCESS;
}

Member Data Documentation

Definition at line 140 of file Tqdcfr.hpp.

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

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 140 of file Tqdcfr.hpp.

Referenced by read_info_header().

Definition at line 140 of file Tqdcfr.hpp.

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

Definition at line 140 of file Tqdcfr.hpp.

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

List of all members.


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