-// 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)
#include "MEDCouplingRefCountObject.hxx"
+#include "MED_version.h"
using namespace ParaMEDMEM;
+const char *ParaMEDMEM::MEDCouplingVersionStr()
+{
+ return SALOMEMED_VERSION_STR;
+}
+
+int ParaMEDMEM::MEDCouplingVersion()
+{
+ return SALOMEMED_VERSION;
+}
+
+void ParaMEDMEM::MEDCouplingVersionMajMinRel(int& maj, int& minor, int& releas)
+{
+ int ver=SALOMEMED_VERSION;
+ maj=(ver & 0xFF0000) >> 16;
+ minor=(ver & 0xFF00) >> 8;
+ releas=(ver & 0xFF);
+}
+
+int ParaMEDMEM::MEDCouplingSizeOfVoidStar()
+{
+ return 8*sizeof(std::size_t);
+}
+
RefCountObject::RefCountObject():_cnt(1)
{
}