TErr aRet = MEDmaaInfo(myFile->Id(),
theMeshId,
&theInfo.myName[0],
- &theInfo.myDim);
+ (med_2_1::med_int *)&theInfo.myDim);
if(theErr)
*theErr = aRet;
else if(aRet < 0)
&aMeshInfo.myName[0],
theFamId,
&theInfo.myName[0],
- &theInfo.myId,
- &theInfo.myAttrId[0],
- &theInfo.myAttrVal[0],
+ (med_2_1::med_int *)&theInfo.myId,
+ (med_2_1::med_int *)&theInfo.myAttrId[0],
+ (med_2_1::med_int *)&theInfo.myAttrVal[0],
&theInfo.myAttrDesc[0],
- &theInfo.myNbAttr,
+ (med_2_1::med_int *)&theInfo.myNbAttr,
&theInfo.myGroupNames[0],
- &theInfo.myNbGroup);
+ (med_2_1::med_int *)&theInfo.myNbGroup);
if(theErr)
*theErr = aRet;
&aMeshInfo.myName[0],
&anInfo.myName[0],
anInfo.myId,
- &anInfo.myAttrId[0],
- &anInfo.myAttrVal[0],
+ (med_2_1::med_int *)&anInfo.myAttrId[0],
+ (med_2_1::med_int *)&anInfo.myAttrVal[0],
&anInfo.myAttrDesc[0],
anInfo.myNbAttr,
&anInfo.myGroupNames[0],
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
- med_repere& aRepere = static_cast<med_repere>(theInfo.mySystem);
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
+ med_repere& aRepere = (med_repere&)(theInfo.mySystem);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
TErr aRet = MEDnoeudsLire(myFile->Id(),
&aMeshInfo.myName[0],
&theInfo.myCoordUnits[0],
&theInfo.myElemNames[0],
&anIsElemNames,
- &theInfo.myElemNum[0],
+ (med_2_1::med_int *)&theInfo.myElemNum[0],
&anIsElemNum,
- &theInfo.myFamNum[0],
+ (med_2_1::med_int *)&theInfo.myFamNum[0],
theInfo.myNbElem);
ADDMSG(MYDEBUG," myDim="<<aMeshInfo.myDim<<" myNbElem="<<theInfo.myNbElem<<" ... ");
MED::TNodeInfo& anInfo = const_cast<MED::TNodeInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_repere& aRepere = static_cast<med_repere>(theInfo.mySystem);
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
+ med_repere& aRepere = (med_repere&)(theInfo.mySystem);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
TErr aRet = MEDnoeudsEcr(myFile->Id(),
&aMeshInfo.myName[0],
&anInfo.myCoordUnits[0],
&anInfo.myElemNames[0],
anIsElemNames,
- &anInfo.myElemNum[0],
+ (med_2_1::med_int *)&anInfo.myElemNum[0],
anIsElemNum,
- &anInfo.myFamNum[0],
+ (med_2_1::med_int *)&anInfo.myFamNum[0],
anInfo.myNbElem,
MED_REMP);
if(theErr)
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
TInt aNbElem = theInfo.myElemNum.size();
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theInfo.myTGeom);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theInfo.myTGeom);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDelementsLire(myFile->Id(),
&aMeshInfo.myName[0],
aMeshInfo.myDim,
- &theInfo.myConn[0],
+ (med_2_1::med_int *)&theInfo.myConn[0],
MED_FULL_INTERLACE,
&theInfo.myElemNames[0],
&anIsElemNames,
- &theInfo.myElemNum[0],
+ (med_2_1::med_int *)&theInfo.myElemNum[0],
&anIsElemNum,
- &theInfo.myFamNum[0],
+ (med_2_1::med_int *)&theInfo.myFamNum[0],
aNbElem,
anEntity,
aGeom,
MED::TCellInfo& anInfo = const_cast<MED::TCellInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theInfo.myTGeom);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theInfo.myTGeom);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDelementsEcr(myFile->Id(),
&aMeshInfo.myName[0],
aMeshInfo.myDim,
- &anInfo.myConn[0],
+ (med_2_1::med_int *)&anInfo.myConn[0],
MED_FULL_INTERLACE,
&anInfo.myElemNames[0],
anIsElemNames,
- &anInfo.myElemNum[0],
+ (med_2_1::med_int *)&anInfo.myElemNum[0],
anIsElemNum,
- &anInfo.myFamNum[0],
+ (med_2_1::med_int *)&anInfo.myFamNum[0],
anInfo.myNbElem,
anEntity,
aGeom,
if(theErr && *theErr < 0)
return;
- med_type_champ& aType = static_cast<med_type_champ>(theInfo.myType);
+ med_type_champ& aType = (med_type_champ&)(theInfo.myType);
TErr aRet = MEDchampInfo(myFile->Id(),
theFieldId,
MED::TFieldInfo& anInfo = const_cast<MED::TFieldInfo&>(theInfo);
- med_type_champ& aType = static_cast<med_type_champ>(theInfo.myType);
+ med_type_champ& aType = (med_type_champ&)(theInfo.myType);
TErr aRet = MEDchampCr(myFile->Id(),
&anInfo.myName[0],
MED::TFieldInfo& anInfo = const_cast<MED::TFieldInfo&>(theInfo);
TEntityInfo::const_iterator anIter = theEntityInfo.begin();
for(; anIter != theEntityInfo.end(); anIter++){
- const med_entite_maillage& anEntity = static_cast<const med_entite_maillage>(anIter->first);
+ const med_entite_maillage& anEntity = (const med_entite_maillage&)(anIter->first);
const TGeom& aTGeom = anIter->second;
TGeom::const_iterator anGeomIter = aTGeom.begin();
for(; anGeomIter != aTGeom.end(); anGeomIter++){
- const med_geometrie_element& aGeom = static_cast<const med_geometrie_element>(anGeomIter->first);
+ const med_geometrie_element& aGeom = (const med_geometrie_element&)(anGeomIter->first);
aNbTimeStamps = MEDnPasdetemps(myFile->Id(),&anInfo.myName[0],anEntity,aGeom);
if(aNbTimeStamps){
theEntity = EEntiteMaillage(anEntity);
MED::TFieldInfo& aFieldInfo = *theInfo.myFieldInfo;
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myEntity);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myEntity);
TGeom::iterator anIter = aTGeom.begin();
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
TErr aRet = MEDpasdetempsInfo(myFile->Id(),
&aFieldInfo.myName[0],
aGeom,
theTimeStampId,
&aMeshInfo.myName[0],
- &theInfo.myNbGauss,
- &theInfo.myNumDt,
+ (med_2_1::med_int *)&theInfo.myNbGauss,
+ (med_2_1::med_int *)&theInfo.myNumDt,
&theInfo.myUnitDt[0],
&theInfo.myDt,
- &theInfo.myNumOrd);
+ (med_2_1::med_int *)&theInfo.myNumOrd);
if(theErr)
*theErr = aRet;
MED::TFieldInfo& aFieldInfo = *aTimeStampInfo.myFieldInfo;
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(aTimeStampInfo.myEntity);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(aTimeStampInfo.myEntity);
TGeom& aTGeom = aTimeStampInfo.myGeom;
TGeom::iterator anIter = aTGeom.begin();
for(; anIter != aTGeom.end(); anIter++){
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
TInt aNbVal = MEDnVal(anId,
&aFieldInfo.myName[0],
anEntity,
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
MED::TMeshValue& aMeshValue = aVal.myMeshValue;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(aTimeStampInfo.myEntity);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(aTimeStampInfo.myEntity);
TMeshValue::iterator anIter = aMeshValue.begin();
for(; anIter != aMeshValue.end(); anIter++){
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
TValue& aValue = aVal.myMeshValue[EGeometrieElement(aGeom)];
med_int iEnd = aValue.size();
med_int aNbVal = iEnd / aFieldInfo.myNbComp;
if(theErr && !*theErr)
return;
- med_maillage& aType = static_cast<med_maillage>(theInfo.myType);
+ med_maillage& aType = (med_maillage&)(theInfo.myType);
TErr aRet = MEDmaaInfo(myFile->Id(),
theMeshId,
&theInfo.myName[0],
- &theInfo.myDim,
+ (med_int *)&theInfo.myDim,
&aType,
&theInfo.myDesc[0]);
if(theErr)
MED::TMeshInfo& anInfo = const_cast<MED::TMeshInfo&>(theInfo);
- med_maillage& aType = static_cast<med_maillage>(theInfo.myType);
+ med_maillage& aType = (med_maillage&)(theInfo.myType);
TErr aRet = MEDmaaCr(myFile->Id(),
&anInfo.myName[0],
&aMeshInfo.myName[0],
theFamId,
&theInfo.myName[0],
- &theInfo.myId,
- &theInfo.myAttrId[0],
- &theInfo.myAttrVal[0],
+ (med_int *)&theInfo.myId,
+ (med_int *)&theInfo.myAttrId[0],
+ (med_int *)&theInfo.myAttrVal[0],
&theInfo.myAttrDesc[0],
- &theInfo.myNbAttr,
+ (med_int *)&theInfo.myNbAttr,
&theInfo.myGroupNames[0],
- &theInfo.myNbGroup);
+ (med_int *)&theInfo.myNbGroup);
if(theErr)
*theErr = aRet;
&aMeshInfo.myName[0],
&anInfo.myName[0],
anInfo.myId,
- &anInfo.myAttrId[0],
- &anInfo.myAttrVal[0],
+ (med_int*)&anInfo.myAttrId[0],
+ (med_int*)&anInfo.myAttrVal[0],
&anInfo.myAttrDesc[0],
anInfo.myNbAttr,
&anInfo.myGroupNames[0],
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = MEDnomLire(myFile->Id(),
&aMeshInfo.myName[0],
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = MEDnumLire(myFile->Id(),
&aMeshInfo.myName[0],
- &theInfo.myElemNum[0],
+ (med_int*)&theInfo.myElemNum[0],
nb,
anEntity,
aGeom);
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = MEDfamLire(myFile->Id(),
&aMeshInfo.myName[0],
- &theInfo.myFamNum[0],
+ (med_int*)&theInfo.myFamNum[0],
nb,
anEntity,
aGeom);
MED::TElemInfo& anInfo = const_cast<MED::TElemInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = 0;
if (anIsElemNames){
MED::TElemInfo& anInfo = const_cast<MED::TElemInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = 0;
if (anIsElemNum){
aRet = MEDnumEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myElemNum[0],
+ (med_int*)&anInfo.myElemNum[0],
anInfo.myElemNum.size(),
anEntity,
aGeom);
MED::TElemInfo& anInfo = const_cast<MED::TElemInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theTGeom);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theTGeom);
TErr aRet = MEDfamEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myFamNum[0],
+ (med_int *)&anInfo.myFamNum[0],
anInfo.myFamNum.size(),
anEntity,
aGeom);
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
- med_repere& aRepere = static_cast<med_repere>(theInfo.mySystem);
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
+ med_repere& aRepere = (med_repere&)(theInfo.mySystem);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
TErr aRet = MEDnoeudsLire(myFile->Id(),
&aMeshInfo.myName[0],
&theInfo.myCoordUnits[0],
&theInfo.myElemNames[0],
&anIsElemNames,
- &theInfo.myElemNum[0],
+ (med_int *)&theInfo.myElemNum[0],
&anIsElemNum,
- &theInfo.myFamNum[0],
+ (med_int *)&theInfo.myFamNum[0],
theInfo.myNbElem);
if(theErr)
*theErr = aRet;
MED::TNodeInfo& anInfo = const_cast<MED::TNodeInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_repere& aRepere = static_cast<med_repere>(theInfo.mySystem);
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
+ med_repere& aRepere = (med_repere&)(theInfo.mySystem);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
TErr aRet = MEDnoeudsEcr(myFile->Id(),
&aMeshInfo.myName[0],
&anInfo.myCoordUnits[0],
&anInfo.myElemNames[0],
anIsElemNames,
- &anInfo.myElemNum[0],
+ (med_int *)&anInfo.myElemNum[0],
anIsElemNum,
- &anInfo.myFamNum[0],
+ (med_int *)&anInfo.myFamNum[0],
anInfo.myNbElem);
if(theErr)
*theErr = aRet;
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
TInt aNbElem = theInfo.myElemNum.size();
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = 0;
aRet = MEDpolygoneConnLire(myFile->Id(),
&aMeshInfo.myName[0],
- &theInfo.myIndex[0],
+ (med_int *)&theInfo.myIndex[0],
aNbElem+1,
- &theInfo.myConn[0],
+ (med_int *)&theInfo.myConn[0],
anEntity,
aConn);
MED::TPolygoneInfo& anInfo = const_cast<MED::TPolygoneInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDpolygoneConnEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myIndex[0],
+ (med_int *)&anInfo.myIndex[0],
anInfo.myNbElem+1,
- &anInfo.myConn[0],
+ (med_int *)&anInfo.myConn[0],
anEntity,
aConn);
MED::TMeshInfo& aMeshInfo = const_cast<MED::TMeshInfo&>(theMeshInfo);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theTEntity);
- med_connectivite& aConn = static_cast<med_connectivite>(theTConn);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theTEntity);
+ med_connectivite& aConn = (med_connectivite&)(theTConn);
med_int taille = 0;
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
TInt aNbElem = theInfo.myElemNum.size();
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = 0;
aRet = MEDpolyedreConnLire(myFile->Id(),
&aMeshInfo.myName[0],
- &theInfo.myIndex[0],
+ (med_int *)&theInfo.myIndex[0],
aNbElem+1,
- &theInfo.myFacesIndex[0],
+ (med_int *)&theInfo.myFacesIndex[0],
theInfo.myNbFacesIndex,
- &theInfo.myConn[0],
+ (med_int *)&theInfo.myConn[0],
aConn);
if(theErr)
MED::TPolyedreInfo& anInfo = const_cast<MED::TPolyedreInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDpolyedreConnEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myIndex[0],
+ (med_int *)&anInfo.myIndex[0],
anInfo.myNbElem+1,
- &anInfo.myFacesIndex[0],
+ (med_int *)&anInfo.myFacesIndex[0],
anInfo.myNbFacesIndex,
- &anInfo.myConn[0],
+ (med_int *)&anInfo.myConn[0],
aConn);
if(theErr)
if (anIsElemNum){
aRet = MEDnumEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myElemNum[0],
+ (med_int *)&anInfo.myElemNum[0],
anInfo.myElemNum.size(),
anEntity,
MED_POLYEDRE);
aRet = MEDfamEcr(myFile->Id(),
&aMeshInfo.myName[0],
- &anInfo.myFamNum[0],
+ (med_int *)&anInfo.myFamNum[0],
anInfo.myFamNum.size(),
anEntity,
MED_POLYEDRE);
if(theErr && !*theErr) EXCEPTION(runtime_error,"GetPolyedreInfo - (...)");
MED::TMeshInfo& aMeshInfo = const_cast<MED::TMeshInfo&>(theMeshInfo);
- med_connectivite& aConn = static_cast<med_connectivite>(theTConn);
+ med_connectivite& aConn = (med_connectivite&)(theTConn);
TErr aRet = MEDpolyedreInfo(myFile->Id(),
&aMeshInfo.myName[0],
aConn,
- &nf,
- &nc);
+ (med_int *)&nf,
+ (med_int *)&nc);
if(theErr)
*theErr = aRet;
MED::TMeshInfo& aMeshInfo = *theInfo.myMeshInfo;
TInt aNbElem = theInfo.myElemNum.size();
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theInfo.myTGeom);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theInfo.myTGeom);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDelementsLire(myFile->Id(),
&aMeshInfo.myName[0],
aMeshInfo.myDim,
- &theInfo.myConn[0],
+ (med_int *)&theInfo.myConn[0],
MED_FULL_INTERLACE,
&theInfo.myElemNames[0],
&anIsElemNames,
- &theInfo.myElemNum[0],
+ (med_int *)&theInfo.myElemNum[0],
&anIsElemNum,
- &theInfo.myFamNum[0],
+ (med_int *)&theInfo.myFamNum[0],
aNbElem,
anEntity,
aGeom,
MED::TCellInfo& anInfo = const_cast<MED::TCellInfo&>(theInfo);
MED::TMeshInfo& aMeshInfo = *anInfo.myMeshInfo;
- med_booleen& anIsElemNames = static_cast<med_booleen>(theInfo.myIsElemNames);
- med_booleen& anIsElemNum = static_cast<med_booleen>(theInfo.myIsElemNum);
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myTEntity);
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(theInfo.myTGeom);
- med_connectivite& aConn = static_cast<med_connectivite>(theInfo.myTConn);
+ med_booleen& anIsElemNames = (med_booleen&)(theInfo.myIsElemNames);
+ med_booleen& anIsElemNum = (med_booleen&)(theInfo.myIsElemNum);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myTEntity);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(theInfo.myTGeom);
+ med_connectivite& aConn = (med_connectivite&)(theInfo.myTConn);
TErr aRet = MEDelementsEcr(myFile->Id(),
&aMeshInfo.myName[0],
aMeshInfo.myDim,
- &anInfo.myConn[0],
+ (med_int *)&anInfo.myConn[0],
MED_FULL_INTERLACE,
&anInfo.myElemNames[0],
anIsElemNames,
- &anInfo.myElemNum[0],
+ (med_int *)&anInfo.myElemNum[0],
anIsElemNum,
- &anInfo.myFamNum[0],
+ (med_int *)&anInfo.myFamNum[0],
anInfo.myNbElem,
anEntity,
aGeom,
if(theErr && !*theErr)
return;
- med_type_champ& aType = static_cast<med_type_champ>(theInfo.myType);
+ med_type_champ& aType = (med_type_champ&)(theInfo.myType);
TErr aRet = MEDchampInfo(myFile->Id(),
theFieldId,
MED::TFieldInfo& anInfo = const_cast<MED::TFieldInfo&>(theInfo);
- med_type_champ& aType = static_cast<med_type_champ>(theInfo.myType);
+ med_type_champ& aType = (med_type_champ&)(theInfo.myType);
TErr aRet = MEDchampCr(myFile->Id(),
&anInfo.myName[0],
MED::TFieldInfo& anInfo = const_cast<MED::TFieldInfo&>(theInfo);
TEntityInfo::const_iterator anIter = theEntityInfo.begin();
for(; anIter != theEntityInfo.end(); anIter++){
- const med_entite_maillage& anEntity = static_cast<const med_entite_maillage>(anIter->first);
+ const med_entite_maillage& anEntity = (const med_entite_maillage&)(anIter->first);
const TGeom& aTGeom = anIter->second;
TGeom::const_iterator anGeomIter = aTGeom.begin();
for(; anGeomIter != aTGeom.end(); anGeomIter++){
- const med_geometrie_element& aGeom = static_cast<const med_geometrie_element>(anGeomIter->first);
+ const med_geometrie_element& aGeom = (const med_geometrie_element&)(anGeomIter->first);
TInt aTmp = MEDnPasdetemps(myFile->Id(),&anInfo.myName[0],anEntity,aGeom);
aNbTimeStamps = max(aTmp,aNbTimeStamps);
if (aNbTimeStamps<1)
MED::TFieldInfo& aFieldInfo = *theInfo.myFieldInfo;
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(theInfo.myEntity);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(theInfo.myEntity);
TGeom::iterator anIter = aTGeom.begin();
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
- med_booleen& anIsLocal = static_cast<med_booleen>(aFieldInfo.myIsLocal);
+ med_booleen& anIsLocal = (med_booleen&)(aFieldInfo.myIsLocal);
TErr aRet = MEDpasdetempsInfo(myFile->Id(),
&aFieldInfo.myName[0],
anEntity,
aGeom,
theTimeStampId,
- &theInfo.myNbGauss,
- &theInfo.myNumDt,
- &theInfo.myNumOrd,
+ (med_int *)&theInfo.myNbGauss,
+ (med_int *)&theInfo.myNumDt,
+ (med_int *)&theInfo.myNumOrd,
&theInfo.myUnitDt[0],
&theInfo.myDt,
&aMeshInfo.myName[0],
&anIsLocal,
- &aFieldInfo.myNbRef);
+ (med_int *)&aFieldInfo.myNbRef);
if(theErr)
*theErr = aRet;
else if(aRet < 0)
MED::TFieldInfo& aFieldInfo = *aTimeStampInfo.myFieldInfo;
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(aTimeStampInfo.myEntity);
- med_mode_profil& aPflMode = static_cast<med_mode_profil>(theVal.myPflMode);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(aTimeStampInfo.myEntity);
+ med_mode_profil& aPflMode = (med_mode_profil&)(theVal.myPflMode);
TGeom& aTGeom = aTimeStampInfo.myGeom;
TGeom::iterator anIter = aTGeom.begin();
for(; anIter != aTGeom.end(); anIter++){
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
TInt aNbVal = MEDnVal(anId,
&aFieldInfo.myName[0],
anEntity,
MED::TMeshInfo& aMeshInfo = *aFieldInfo.myMeshInfo;
MED::TMeshValue& aMeshValue = aVal.myMeshValue;
- med_entite_maillage& anEntity = static_cast<med_entite_maillage>(aTimeStampInfo.myEntity);
- med_mode_profil& aPflMode = static_cast<med_mode_profil>(theVal.myPflMode);
+ med_entite_maillage& anEntity = (med_entite_maillage&)(aTimeStampInfo.myEntity);
+ med_mode_profil& aPflMode = (med_mode_profil&)(theVal.myPflMode);
TMeshValue::iterator anIter = aMeshValue.begin();
for(; anIter != aMeshValue.end(); anIter++){
- med_geometrie_element& aGeom = static_cast<med_geometrie_element>(anIter->first);
+ med_geometrie_element& aGeom = (med_geometrie_element&)(anIter->first);
TValue& aValue = aVal.myMeshValue[EGeometrieElement(aGeom)];
med_int iEnd = aValue.size();
med_int aNbVal = iEnd / aFieldInfo.myNbComp;