Back to index

salome-med  6.5.0
Public Types | Public Member Functions
MED::TTFamilyInfo< eVersion > Struct Template Reference

#include <MED_TStructures.hxx>

Inheritance diagram for MED::TTFamilyInfo< eVersion >:
Inheritance graph
[legend]
Collaboration diagram for MED::TTFamilyInfo< eVersion >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TTNameInfo< eVersion > 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
virtual void SetGroupName (TInt theId, const std::string &theValue)
virtual std::string GetAttrDesc (TInt theId) const
virtual void SetAttrDesc (TInt theId, const std::string &theValue)
virtual std::string GetName () const
virtual void SetName (const std::string &theValue)
virtual void SetName (const TString &theValue)

Detailed Description

template<EVersion eVersion>
struct MED::TTFamilyInfo< eVersion >

Definition at line 182 of file MED_TStructures.hxx.


Member Typedef Documentation

template<EVersion eVersion>
typedef TTNameInfo<eVersion> MED::TTFamilyInfo< eVersion >::TNameInfoBase

Definition at line 186 of file MED_TStructures.hxx.


Constructor & Destructor Documentation

template<EVersion eVersion>
MED::TTFamilyInfo< eVersion >::TTFamilyInfo ( const PMeshInfo theMeshInfo,
const PFamilyInfo theInfo 
) [inline]

Definition at line 188 of file MED_TStructures.hxx.

                                                                          :
      TNameInfoBase(theInfo->GetName())
    {
      myMeshInfo = theMeshInfo;

      myId = theInfo->GetId();

      myNbGroup = theInfo->GetNbGroup();
      myGroupNames.resize(myNbGroup*GetLNOMLength<eVersion>()+1);
      if(myNbGroup){
        for(TInt anId = 0; anId < myNbGroup; anId++){
          SetGroupName(anId,theInfo->GetGroupName(anId));
        }
      }

      myNbAttr = theInfo->GetNbAttr();
      myAttrId.resize(myNbAttr);
      myAttrVal.resize(myNbAttr);
      myAttrDesc.resize(myNbAttr*GetDESCLength<eVersion>()+1);
      if(myNbAttr){
        for(TInt anId = 0; anId < myNbAttr; anId++){
          SetAttrDesc(anId,theInfo->GetAttrDesc(anId));
          myAttrVal[anId] = theInfo->GetAttrVal(anId);
          myAttrId[anId] = theInfo->GetAttrId(anId);
        }
      }
    }

Here is the call graph for this function:

template<EVersion eVersion>
MED::TTFamilyInfo< eVersion >::TTFamilyInfo ( const PMeshInfo theMeshInfo,
TInt  theNbGroup,
TInt  theNbAttr,
TInt  theId,
const std::string &  theValue 
) [inline]

Definition at line 216 of file MED_TStructures.hxx.

                                           :
      TNameInfoBase(theValue)
    {
      myMeshInfo = theMeshInfo;

      myId = theId;

      myNbGroup = theNbGroup;
      myGroupNames.resize(theNbGroup*GetLNOMLength<eVersion>()+1);

      myNbAttr = theNbAttr;
      myAttrId.resize(theNbAttr);
      myAttrVal.resize(theNbAttr);
      myAttrDesc.resize(theNbAttr*GetDESCLength<eVersion>()+1);
    }
template<EVersion eVersion>
MED::TTFamilyInfo< eVersion >::TTFamilyInfo ( const PMeshInfo theMeshInfo,
const std::string &  theValue,
TInt  theId,
const TStringSet theGroupNames,
const TStringVector theAttrDescs,
const TIntVector theAttrIds,
const TIntVector theAttrVals 
) [inline]

Definition at line 236 of file MED_TStructures.hxx.

                                               :
      TNameInfoBase(theValue)
    {
      myMeshInfo = theMeshInfo;

      myId = theId;

      myNbGroup = (TInt)theGroupNames.size();
      myGroupNames.resize(myNbGroup*GetLNOMLength<eVersion>()+1);
      if(myNbGroup){
        TStringSet::const_iterator anIter = theGroupNames.begin();
        for(TInt anId = 0; anIter != theGroupNames.end(); anIter++, anId++){
          const std::string& aVal = *anIter;
          SetGroupName(anId,aVal);
        }
      }

      myNbAttr = (TInt)theAttrDescs.size();
      myAttrId.resize(myNbAttr);
      myAttrVal.resize(myNbAttr);
      myAttrDesc.resize(myNbAttr*GetDESCLength<eVersion>()+1);
      if(myNbAttr){
        for(TInt anId = 0, anEnd = (TInt)theAttrDescs.size(); anId < anEnd; anId++){
          SetAttrDesc(anId,theAttrDescs[anId]);
          myAttrVal[anId] = theAttrVals[anId];
          myAttrId[anId] = theAttrIds[anId];
        }
      }
    }

Here is the call graph for this function:


Member Function Documentation

template<EVersion eVersion>
virtual std::string MED::TTFamilyInfo< eVersion >::GetAttrDesc ( TInt  theId) const [inline, virtual]

Definition at line 288 of file MED_TStructures.hxx.

    { 
      return GetString(theId, GetDESCLength<eVersion>(), myAttrDesc);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual std::string MED::TTFamilyInfo< eVersion >::GetGroupName ( TInt  theId) const [inline, virtual]

Definition at line 274 of file MED_TStructures.hxx.

    { 
      return GetString(theId, GetLNOMLength<eVersion>(), myGroupNames);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual std::string MED::TTNameInfo< eVersion >::GetName ( ) const [inline, virtual, inherited]

Definition at line 110 of file MED_TStructures.hxx.

    { 
      return GetString(0, GetNOMLength<eVersion>(), myName);
    }

Here is the call graph for this function:

template<EVersion eVersion>
virtual void MED::TTFamilyInfo< eVersion >::SetAttrDesc ( TInt  theId,
const std::string &  theValue 
) [inline, virtual]

Definition at line 295 of file MED_TStructures.hxx.

    {
      SetString(theId, GetDESCLength<eVersion>(), myAttrDesc, theValue);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

template<EVersion eVersion>
virtual void MED::TTFamilyInfo< eVersion >::SetGroupName ( TInt  theId,
const std::string &  theValue 
) [inline, virtual]

Definition at line 281 of file MED_TStructures.hxx.

    {
      SetString(theId, GetLNOMLength<eVersion>(), myGroupNames, theValue);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

template<EVersion eVersion>
virtual void MED::TTNameInfo< eVersion >::SetName ( const std::string &  theValue) [inline, virtual, inherited]

Definition at line 117 of file MED_TStructures.hxx.

    {
      SetString(0, GetNOMLength<eVersion>(), myName, theValue);
    }

Here is the call graph for this function:

Here is the caller graph for this function:

template<EVersion eVersion>
virtual void MED::TTNameInfo< eVersion >::SetName ( const TString theValue) [inline, virtual, inherited]

Definition at line 124 of file MED_TStructures.hxx.

    {
      SetString(0, GetNOMLength<eVersion>(), myName, theValue);
    }

Here is the call graph for this function:


The documentation for this struct was generated from the following file: