X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDWrapper%2FMED_Wrapper.hxx;h=ddd3a159b9209f2c98febc0f44980b64451aafca;hb=HEAD;hp=841eb4eca0b1eb3df1d5f348c9112bb010a7a819;hpb=7a3ecab720cc517ace17c5c4677fd3c20c0051ee;p=modules%2Fsmesh.git diff --git a/src/MEDWrapper/MED_Wrapper.hxx b/src/MEDWrapper/MED_Wrapper.hxx index 841eb4eca..427c3d196 100644 --- a/src/MEDWrapper/MED_Wrapper.hxx +++ b/src/MEDWrapper/MED_Wrapper.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -32,8 +32,8 @@ namespace MED { //---------------------------------------------------------------------------- - class TFile; - typedef boost::shared_ptr PFile; + class TFileInternal; + typedef std::shared_ptr PFileInternal; typedef enum {eLECTURE, eLECTURE_ECRITURE, eLECTURE_AJOUT, eCREATION} EModeAcces; @@ -52,7 +52,7 @@ namespace MED TWrapper& operator=(const TWrapper&); public: - TWrapper(const std::string& theFileName); + TWrapper(const std::string& theFileName, bool write, TFileInternal *tfileInst = nullptr, TInt theMajor=-1, TInt theVersion=-1); virtual ~TWrapper(); @@ -279,7 +279,7 @@ namespace MED EModeSwitch theMode = eFULL_INTERLACE, ERepere theSystem = eCART, EBooleen theIsElemNum = eVRAI, - EBooleen theIsElemNames = eVRAI); + EBooleen theIsElemNames = eFAUX); //! Create a MEDWrapper MED Nodes representation virtual @@ -521,7 +521,7 @@ namespace MED TInt theNbElem, EConnectivite theConnMode = eNOD, EBooleen theIsElemNum = eVRAI, - EBooleen theIsElemNames = eVRAI, + EBooleen theIsElemNames = eFAUX, EModeSwitch theMode = eFULL_INTERLACE); //! Create a MEDWrapper MED Cells representation @@ -938,7 +938,9 @@ namespace MED TErr* theErr = NULL); protected: - PFile myFile; + PFileInternal myFile; + TInt myMajor; + TInt myMinor; }; //---------------------------------------------------------------------------- @@ -961,23 +963,23 @@ namespace MED //---------------------------------------------------------------------------- //! Specialization of SharedPtr for TWrapper template<> - class MEDWRAPPER_EXPORT SharedPtr: public boost::shared_ptr + class MEDWRAPPER_EXPORT SharedPtr: public std::shared_ptr { public: SharedPtr() {} SharedPtr(TWrapper* p): - boost::shared_ptr(p) + std::shared_ptr(p) {} template explicit SharedPtr(Y* p): - boost::shared_ptr(p) + std::shared_ptr(p) {} template SharedPtr(const SharedPtr& r): - boost::shared_ptr(boost::dynamic_pointer_cast(r)) + std::shared_ptr(boost::dynamic_pointer_cast(r)) {} template @@ -1019,7 +1021,7 @@ namespace MED TWrapper* get() const // never throws { - return boost::shared_ptr::get(); + return std::shared_ptr::get(); } }; }