Salome HOME
Debug revealed with convertTo
[modules/med.git] / src / MEDCoupling / MEDCouplingRefCountObject.hxx
index c466315b385c8be839985c9763fcb16a32de7b27..c52e0aff0bc35f702b8ca7fd752dfcd716f0f1c8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 #ifndef __PARAMEDMEM_MEDCOUPLINGREFCOUNTOBJECT_HXX__
 #define __PARAMEDMEM_MEDCOUPLINGREFCOUNTOBJECT_HXX__
 
 #include "MEDCoupling.hxx"
 
+#include <cstddef>
+
 namespace ParaMEDMEM
 {
   typedef enum
@@ -49,6 +52,11 @@ namespace ParaMEDMEM
 
   typedef bool (*FunctionToEvaluate)(const double *pos, double *res);
 
+  MEDCOUPLING_EXPORT const char *MEDCouplingVersionStr();
+  MEDCOUPLING_EXPORT int MEDCouplingVersion();
+  MEDCOUPLING_EXPORT void MEDCouplingVersionMajMinRel(int& maj, int& minor, int& releas);
+  MEDCOUPLING_EXPORT int MEDCouplingSizeOfVoidStar();
+
   class MEDCOUPLING_EXPORT RefCountObject
   {
   protected:
@@ -57,6 +65,9 @@ namespace ParaMEDMEM
   public:
     bool decrRef() const;
     void incrRef() const;
+    virtual std::size_t getHeapMemorySize() const = 0;
+    int getRCValue() const;
+    RefCountObject& operator=(const RefCountObject& other);
   protected:
     virtual ~RefCountObject();
   private: