@COMMENCE@
-EXPORT_HEADERS = VISU_Convertor.hxx VISU_Convertor_impl.hxx VISU_ConvertorUtils.hxx VISU_ExtractUnstructuredGrid.hxx
+EXPORT_HEADERS = VISU_Convertor.hxx \
+ VISU_Convertor_impl.hxx \
+ VISU_ConvertorUtils.hxx \
+ VISU_ExtractUnstructuredGrid.hxx
# Libraries targets
LIB = libVisuConvertor.la
-LIB_SRC = VISU_Convertor.cxx VISU_Convertor_impl.cxx VISU_ConvertorUtils.cxx VISU_ExtractUnstructuredGrid.cxx \
+LIB_SRC = VISU_Convertor.cxx \
+ VISU_Convertor_impl.cxx \
+ VISU_ConvertorUtils.cxx \
+ VISU_ExtractUnstructuredGrid.cxx \
VISU_MedConvertor.cxx
# Executables targets
BIN_SRC =
CPPFLAGS+= -ftemplate-depth-32 $(VTK_INCLUDES) $(HDF5_INCLUDES) $(QT_INCLUDES) \
- -I${KERNEL_ROOT_DIR}/include/salome -I${MED_ROOT_DIR}/include/salome $(BOOST_CPPFLAGS)
+ -I${KERNEL_ROOT_DIR}/include/salome \
+ -I${MED_ROOT_DIR}/include/salome \
+ $(BOOST_CPPFLAGS)
+
LDFLAGS+= $(VTK_LIBS) $(QT_LIBS) -L${MED_ROOT_DIR}/lib/salome -lMEDWrapper
+
LDFLAGSFORBIN=$(LDFLAGS) -lMEDWrapper_V2_2 -lMEDWrapper_V2_1 -lMEDWrapperBase
+
@CONCLUDE@
#include <string>
#include <stdexcept>
-#include <boost/shared_ptr.hpp>
+#include "MED_SharedPtr.hxx"
class vtkUnstructuredGrid;
namespace VISU{
- template<class T> class SharedPtr: public boost::shared_ptr<T>
- {
- public:
- SharedPtr() {}
-
- template<class Y>
- explicit SharedPtr(Y * p):
- boost::shared_ptr<T>(p)
- {}
-
- template<class Y>
- SharedPtr(SharedPtr<Y> const & r):
- boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag())
- {}
-
- template<class Y>
- SharedPtr & operator=(SharedPtr<Y> const & r)
- {
- boost::shared_ptr<T>(r,boost::detail::dynamic_cast_tag()).swap(*this);
- return *this;
- }
+ using MED::SharedPtr;
- template<class Y> SharedPtr& operator()(Y * p) // Y must be complete
- {
- return operator=<Y>(SharedPtr<Y>(p));
- }
-
- operator const T& () const
- {
- return *(this->get());
- }
-
- operator T& ()
- {
- return *(this->get());
- }
-
- };
//---------------------------------------------------------------
-
-
enum TEntity {NODE_ENTITY, EDGE_ENTITY, FACE_ENTITY, CELL_ENTITY};
struct TMesh;