Version: 9.16.0
MED::TTFamilyInfo Struct Referenceabstract

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTFamilyInfo:

Public Types

typedef TTNameInfo TNameInfoBase
 

Public Member Functions

 TTFamilyInfo (const PMeshInfo &theMeshInfo, const PFamilyInfo &theInfo)
 
 TTFamilyInfo (const PMeshInfo &theMeshInfo, TInt theNbGroup, TInt theNbAttr, TInt theId, const std::string &theValue)
 
 TTFamilyInfo (const PMeshInfo &theMeshInfo, const std::string &theValue, TInt theId, const TStringSet &theGroupNames, const TStringVector &theAttrDescs, const TIntVector &theAttrIds, const TIntVector &theAttrVals)
 
virtual std::string GetGroupName (TInt theId) const
 Gets name of a bound MED GROUP by its number. More...
 
virtual void SetGroupName (TInt theId, const std::string &theValue)
 Sets name of the defined MED GROUP by its number. More...
 
virtual std::string GetAttrDesc (TInt theId) const
 Get value of the MED FAMILY attribute by its number. More...
 
virtual void SetAttrDesc (TInt theId, const std::string &theValue)
 Set value of the MED FAMILY attribute by its number. More...
 
const PMeshInfoGetMeshInfo () const
 Get a reference to corresponding MED Mesh. More...
 
TInt GetId () const
 Gets number of the MED FAMILY. More...
 
void SetId (TInt theId)
 
TInt GetNbGroup () const
 Gets number of MED GROUPS the MED FAMILY is bound to. More...
 
TInt GetNbAttr () const
 Gets number of attached attributes for the MED FAMILY. More...
 
TInt GetAttrId (TInt theId) const
 Get MED FAMILY attribute by its number. More...
 
void SetAttrId (TInt theId, TInt theVal)
 Set MED FAMILY attribute by its number. More...
 
TInt GetAttrVal (TInt theId) const
 Get MED FAMILY attribute by its number. More...
 
void SetAttrVal (TInt theId, TInt theVal)
 Set MED FAMILY attribute by its number. More...
 
virtual std::string GetName () const =0
 Gets its name. More...
 
virtual void SetName (const std::string &theValue)=0
 Set a new name. More...
 
virtual void SetName (const TString &theValue)=0
 Set a new name. More...
 
virtual std::string GetName () const
 Gets its name. More...
 
virtual void SetName (const std::string &theValue)
 Set a new name. More...
 
virtual void SetName (const TString &theValue)
 Set a new name. More...
 

Data Fields

PMeshInfo myMeshInfo
 A reference to corresponding MED Mesh. More...
 
TInt myId
 An unique index of the MED FAMILY. More...
 
TInt myNbGroup
 Define number of the MED FAMILY. More...
 
TString myGroupNames
 Contains sequence of the names for the MED Groups connected to. More...
 
TInt myNbAttr
 Defines number of the MED Family attributes. More...
 
TFamAttr myAttrId
 Defines sequence of the indexes of the MED Family attributes. More...
 
TFamAttr myAttrVal
 Defines sequence of the values of the MED Family attributes. More...
 
TString myAttrDesc
 Defines sequence of the names of the MED Family attributes. More...
 
TString myName
 Keeps its name. More...
 

Member Typedef Documentation

◆ TNameInfoBase

Constructor & Destructor Documentation

◆ TTFamilyInfo() [1/3]

◆ TTFamilyInfo() [2/3]

◆ TTFamilyInfo() [3/3]

MED::TTFamilyInfo::TTFamilyInfo ( const PMeshInfo theMeshInfo,
const std::string &  theValue,
TInt  theId,
const TStringSet theGroupNames,
const TStringVector theAttrDescs,
const TIntVector theAttrIds,
const TIntVector theAttrVals 
)

Member Function Documentation

◆ GetAttrDesc()

virtual std::string MED::TTFamilyInfo::GetAttrDesc ( TInt  theId) const
virtual

Get value of the MED FAMILY attribute by its number.

Implements MED::TFamilyInfo.

References MED::GetDESCLength(), MED::GetString(), and MED::TFamilyInfo::myAttrDesc.

◆ GetAttrId()

TInt MED::TFamilyInfo::GetAttrId ( TInt  theId) const
inherited

Get MED FAMILY attribute by its number.

References MED::TFamilyInfo::myAttrId.

◆ GetAttrVal()

TInt MED::TFamilyInfo::GetAttrVal ( TInt  theId) const
inherited

Get MED FAMILY attribute by its number.

References MED::TFamilyInfo::myAttrVal.

◆ GetGroupName()

virtual std::string MED::TTFamilyInfo::GetGroupName ( TInt  theId) const
virtual

Gets name of a bound MED GROUP by its number.

Implements MED::TFamilyInfo.

References MED::GetLNOMLength(), MED::GetString(), and MED::TFamilyInfo::myGroupNames.

◆ GetId()

TInt MED::TFamilyInfo::GetId ( ) const
inherited

Gets number of the MED FAMILY.

◆ GetMeshInfo()

const PMeshInfo & MED::TFamilyInfo::GetMeshInfo ( ) const
inherited

Get a reference to corresponding MED Mesh.

◆ GetName() [1/2]

virtual std::string MED::TTNameInfo::GetName ( ) const
virtualinherited

Gets its name.

Implements MED::TNameInfo.

References MED::GetNOMLength(), MED::GetString(), and MED::TNameInfo::myName.

◆ GetName() [2/2]

virtual std::string MED::TNameInfo::GetName ( ) const
pure virtualinherited

Gets its name.

Implemented in MED::TTNameInfo.

◆ GetNbAttr()

TInt MED::TFamilyInfo::GetNbAttr ( ) const
inherited

Gets number of attached attributes for the MED FAMILY.

◆ GetNbGroup()

TInt MED::TFamilyInfo::GetNbGroup ( ) const
inherited

Gets number of MED GROUPS the MED FAMILY is bound to.

◆ SetAttrDesc()

virtual void MED::TTFamilyInfo::SetAttrDesc ( TInt  theId,
const std::string &  theValue 
)
virtual

Set value of the MED FAMILY attribute by its number.

Implements MED::TFamilyInfo.

References MED::GetDESCLength(), MED::TFamilyInfo::myAttrDesc, and MED::SetString().

Referenced by TTFamilyInfo().

◆ SetAttrId()

void MED::TFamilyInfo::SetAttrId ( TInt  theId,
TInt  theVal 
)
inherited

Set MED FAMILY attribute by its number.

References MED::TFamilyInfo::myAttrId.

◆ SetAttrVal()

void MED::TFamilyInfo::SetAttrVal ( TInt  theId,
TInt  theVal 
)
inherited

Set MED FAMILY attribute by its number.

References MED::TFamilyInfo::myAttrVal.

◆ SetGroupName()

virtual void MED::TTFamilyInfo::SetGroupName ( TInt  theId,
const std::string &  theValue 
)
virtual

Sets name of the defined MED GROUP by its number.

Implements MED::TFamilyInfo.

References MED::GetLNOMLength(), MED::TFamilyInfo::myGroupNames, and MED::SetString().

Referenced by TTFamilyInfo().

◆ SetId()

void MED::TFamilyInfo::SetId ( TInt  theId)
inherited

◆ SetName() [1/4]

virtual void MED::TTNameInfo::SetName ( const std::string &  theValue)
virtualinherited

Set a new name.

Implements MED::TNameInfo.

References MED::GetNOMLength(), MED::TNameInfo::myName, and MED::SetString().

Referenced by MED::TTNameInfo::TTNameInfo().

◆ SetName() [2/4]

virtual void MED::TNameInfo::SetName ( const std::string &  theValue)
pure virtualinherited

Set a new name.

Implemented in MED::TTNameInfo.

Referenced by MED::TWrapper::GetFieldInfo().

◆ SetName() [3/4]

virtual void MED::TTNameInfo::SetName ( const TString theValue)
virtualinherited

Set a new name.

Implements MED::TNameInfo.

References MED::GetNOMLength(), MED::TNameInfo::myName, and MED::SetString().

◆ SetName() [4/4]

virtual void MED::TNameInfo::SetName ( const TString theValue)
pure virtualinherited

Set a new name.

Implemented in MED::TTNameInfo.

Field Documentation

◆ myAttrDesc

TString MED::TFamilyInfo::myAttrDesc
inherited

Defines sequence of the names of the MED Family attributes.

Referenced by GetAttrDesc(), MED::TWrapper::GetFamilyInfo(), SetAttrDesc(), MED::TWrapper::SetFamilyInfo(), and TTFamilyInfo().

◆ myAttrId

TFamAttr MED::TFamilyInfo::myAttrId
inherited

◆ myAttrVal

TFamAttr MED::TFamilyInfo::myAttrVal
inherited

◆ myGroupNames

TString MED::TFamilyInfo::myGroupNames
inherited

Contains sequence of the names for the MED Groups connected to.

Referenced by MED::TWrapper::GetFamilyInfo(), GetGroupName(), MED::TWrapper::SetFamilyInfo(), SetGroupName(), and TTFamilyInfo().

◆ myId

TInt MED::TFamilyInfo::myId
inherited

An unique index of the MED FAMILY.

Referenced by MED::TWrapper::GetFamilyInfo(), MED::TWrapper::SetFamilyInfo(), and TTFamilyInfo().

◆ myMeshInfo

PMeshInfo MED::TFamilyInfo::myMeshInfo
inherited

A reference to corresponding MED Mesh.

Referenced by MED::TWrapper::GetFamilyInfo(), MED::TWrapper::SetFamilyInfo(), and TTFamilyInfo().

◆ myName

◆ myNbAttr

TInt MED::TFamilyInfo::myNbAttr
inherited

Defines number of the MED Family attributes.

Referenced by MED::TWrapper::GetFamilyInfo(), MED::TWrapper::SetFamilyInfo(), and TTFamilyInfo().

◆ myNbGroup

TInt MED::TFamilyInfo::myNbGroup
inherited

Define number of the MED FAMILY.

Defines number MED Groups connected to

Referenced by MED::TWrapper::GetFamilyInfo(), MED::TWrapper::SetFamilyInfo(), and TTFamilyInfo().