Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #41122][EDF] Quadrangle radial for face which curved edges didn't discretize...
[modules/smesh.git]
/
src
/
MEDWrapper
/
MED_Wrapper.hxx
diff --git
a/src/MEDWrapper/MED_Wrapper.hxx
b/src/MEDWrapper/MED_Wrapper.hxx
index 841eb4eca0b1eb3df1d5f348c9112bb010a7a819..427c3d196e07fe4d5a5681236d0fa20d5cfc8f1a 100644
(file)
--- a/
src/MEDWrapper/MED_Wrapper.hxx
+++ b/
src/MEDWrapper/MED_Wrapper.hxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
24 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
//
// 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
{
//----------------------------------------------------------------------------
namespace MED
{
//----------------------------------------------------------------------------
- class TFile;
- typedef
boost::shared_ptr<TFile> PFile
;
+ class TFile
Internal
;
+ typedef
std::shared_ptr<TFileInternal> PFileInternal
;
typedef enum {eLECTURE, eLECTURE_ECRITURE, eLECTURE_AJOUT, eCREATION} EModeAcces;
typedef enum {eLECTURE, eLECTURE_ECRITURE, eLECTURE_AJOUT, eCREATION} EModeAcces;
@@
-52,7
+52,7
@@
namespace MED
TWrapper& operator=(const TWrapper&);
public:
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();
virtual
~TWrapper();
@@
-279,7
+279,7
@@
namespace MED
EModeSwitch theMode = eFULL_INTERLACE,
ERepere theSystem = eCART,
EBooleen theIsElemNum = eVRAI,
EModeSwitch theMode = eFULL_INTERLACE,
ERepere theSystem = eCART,
EBooleen theIsElemNum = eVRAI,
- EBooleen theIsElemNames = e
VRAI
);
+ EBooleen theIsElemNames = e
FAUX
);
//! Create a MEDWrapper MED Nodes representation
virtual
//! Create a MEDWrapper MED Nodes representation
virtual
@@
-521,7
+521,7
@@
namespace MED
TInt theNbElem,
EConnectivite theConnMode = eNOD,
EBooleen theIsElemNum = eVRAI,
TInt theNbElem,
EConnectivite theConnMode = eNOD,
EBooleen theIsElemNum = eVRAI,
- EBooleen theIsElemNames = e
VRAI
,
+ EBooleen theIsElemNames = e
FAUX
,
EModeSwitch theMode = eFULL_INTERLACE);
//! Create a MEDWrapper MED Cells representation
EModeSwitch theMode = eFULL_INTERLACE);
//! Create a MEDWrapper MED Cells representation
@@
-938,7
+938,9
@@
namespace MED
TErr* theErr = NULL);
protected:
TErr* theErr = NULL);
protected:
- PFile myFile;
+ PFileInternal myFile;
+ TInt myMajor;
+ TInt myMinor;
};
//----------------------------------------------------------------------------
};
//----------------------------------------------------------------------------
@@
-961,23
+963,23
@@
namespace MED
//----------------------------------------------------------------------------
//! Specialization of SharedPtr for TWrapper
template<>
//----------------------------------------------------------------------------
//! Specialization of SharedPtr for TWrapper
template<>
- class MEDWRAPPER_EXPORT SharedPtr<TWrapper>: public
boost
::shared_ptr<TWrapper>
+ class MEDWRAPPER_EXPORT SharedPtr<TWrapper>: public
std
::shared_ptr<TWrapper>
{
public:
SharedPtr() {}
SharedPtr(TWrapper* p):
{
public:
SharedPtr() {}
SharedPtr(TWrapper* p):
-
boost
::shared_ptr<TWrapper>(p)
+
std
::shared_ptr<TWrapper>(p)
{}
template<class Y>
explicit SharedPtr(Y* p):
{}
template<class Y>
explicit SharedPtr(Y* p):
-
boost
::shared_ptr<TWrapper>(p)
+
std
::shared_ptr<TWrapper>(p)
{}
template<class Y>
SharedPtr(const SharedPtr<Y>& r):
{}
template<class Y>
SharedPtr(const SharedPtr<Y>& r):
-
boost
::shared_ptr<TWrapper>(boost::dynamic_pointer_cast<TWrapper,Y>(r))
+
std
::shared_ptr<TWrapper>(boost::dynamic_pointer_cast<TWrapper,Y>(r))
{}
template<class Y>
{}
template<class Y>
@@
-1019,7
+1021,7
@@
namespace MED
TWrapper*
get() const // never throws
{
TWrapper*
get() const // never throws
{
- return
boost
::shared_ptr<TWrapper>::get();
+ return
std
::shared_ptr<TWrapper>::get();
}
};
}
}
};
}