Version: 9.12.0
MED::TTFieldInfo Struct Referenceabstract

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTFieldInfo:

Public Types

typedef TTNameInfo TNameInfoBase
 

Public Member Functions

 TTFieldInfo (const PMeshInfo &theMeshInfo, const PFieldInfo &theInfo)
 
 TTFieldInfo (const PMeshInfo &theMeshInfo, TInt theNbComp, ETypeChamp theType, const std::string &theValue, EBooleen theIsLocal, TInt theNbRef)
 
virtual std::string GetCompName (TInt theId) const
 Get name of the component by its order number. More...
 
virtual void SetCompName (TInt theId, const std::string &theValue)
 Set name for the component by its order number. More...
 
virtual std::string GetUnitName (TInt theId) const
 Get unit of the component by its order number. More...
 
virtual void SetUnitName (TInt theId, const std::string &theValue)
 Set unit for the component by its order number. More...
 
const PMeshInfoGetMeshInfo () const
 Get a reference to corresponding MED Mesh. More...
 
ETypeChamp GetType () const
 Find out what type of MED FIELD is used. More...
 
TInt GetNbComp () const
 Get number of components for MED FIELD. More...
 
EBooleen GetIsLocal () const
 Find out if MED FIELD is local or not. More...
 
TInt GetNbRef () const
 Find out number of references for the MED FIELD. 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...
 
ETypeChamp myType
 Defines type of MED Field. More...
 
TInt myNbComp
 Defines number of components stored in the field. More...
 
EBooleen myIsLocal
 Defines if the MED Field is local. More...
 
TInt myNbRef
 Defines number of references of the field. More...
 
TString myCompNames
 Contains names for each of MED Field components. More...
 
TString myUnitNames
 Contains units for each of MED Field components. More...
 
TString myName
 Keeps its name. More...
 

Member Typedef Documentation

◆ TNameInfoBase

Constructor & Destructor Documentation

◆ TTFieldInfo() [1/2]

◆ TTFieldInfo() [2/2]

MED::TTFieldInfo::TTFieldInfo ( const PMeshInfo theMeshInfo,
TInt  theNbComp,
ETypeChamp  theType,
const std::string &  theValue,
EBooleen  theIsLocal,
TInt  theNbRef 
)

Member Function Documentation

◆ GetCompName()

virtual std::string MED::TTFieldInfo::GetCompName ( TInt  theId) const
virtual

Get name of the component by its order number.

Implements MED::TFieldInfo.

References MED::GetPNOMLength(), MED::GetString(), and MED::TFieldInfo::myCompNames.

◆ GetIsLocal()

EBooleen MED::TFieldInfo::GetIsLocal ( ) const
inherited

Find out if MED FIELD is local or not.

◆ GetMeshInfo()

const PMeshInfo& MED::TFieldInfo::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.

◆ GetNbComp()

TInt MED::TFieldInfo::GetNbComp ( ) const
inherited

Get number of components for MED FIELD.

◆ GetNbRef()

TInt MED::TFieldInfo::GetNbRef ( ) const
inherited

Find out number of references for the MED FIELD.

◆ GetType()

ETypeChamp MED::TFieldInfo::GetType ( ) const
inherited

Find out what type of MED FIELD is used.

◆ GetUnitName()

virtual std::string MED::TTFieldInfo::GetUnitName ( TInt  theId) const
virtual

Get unit of the component by its order number.

Implements MED::TFieldInfo.

References MED::GetPNOMLength(), MED::GetString(), and MED::TFieldInfo::myUnitNames.

◆ SetCompName()

virtual void MED::TTFieldInfo::SetCompName ( TInt  theId,
const std::string &  theValue 
)
virtual

Set name for the component by its order number.

Implements MED::TFieldInfo.

References MED::GetPNOMLength(), MED::TFieldInfo::myCompNames, and MED::SetString().

Referenced by TTFieldInfo().

◆ 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.

◆ SetUnitName()

virtual void MED::TTFieldInfo::SetUnitName ( TInt  theId,
const std::string &  theValue 
)
virtual

Set unit for the component by its order number.

Implements MED::TFieldInfo.

References MED::GetPNOMLength(), MED::TFieldInfo::myUnitNames, and MED::SetString().

Referenced by TTFieldInfo().

Field Documentation

◆ myCompNames

TString MED::TFieldInfo::myCompNames
inherited

Contains names for each of MED Field components.

Referenced by GetCompName(), MED::TWrapper::GetFieldInfo(), SetCompName(), MED::TWrapper::SetFieldInfo(), and TTFieldInfo().

◆ myIsLocal

EBooleen MED::TFieldInfo::myIsLocal
inherited

Defines if the MED Field is local.

Referenced by MED::TWrapper::GetTimeStampInfo(), and TTFieldInfo().

◆ myMeshInfo

PMeshInfo MED::TFieldInfo::myMeshInfo
inherited

◆ myName

◆ myNbComp

TInt MED::TFieldInfo::myNbComp
inherited

Defines number of components stored in the field.

Referenced by MED::TWrapper::GetFieldInfo(), MED::TWrapper::SetFieldInfo(), and TTFieldInfo().

◆ myNbRef

TInt MED::TFieldInfo::myNbRef
inherited

Defines number of references of the field.

Referenced by MED::TWrapper::GetTimeStampInfo(), and TTFieldInfo().

◆ myType

ETypeChamp MED::TFieldInfo::myType
inherited

◆ myUnitNames

TString MED::TFieldInfo::myUnitNames
inherited

Contains units for each of MED Field components.

Referenced by MED::TWrapper::GetFieldInfo(), GetUnitName(), MED::TWrapper::SetFieldInfo(), SetUnitName(), and TTFieldInfo().