Salome HOME
MED file mesh loading on demand.
[modules/med.git] / src / MEDCouplingCorba / MEDCouplingRefCountServant.cxx
index b6322754aab05114552dc3c50ba5c689406ccfea..5bd57e1a89da11fb310d02bfa08f043f49d28771 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
@@ -52,6 +52,20 @@ CORBA::Long MEDCouplingRefCountServant::getTimeLabel()
   return -1;
 }
 
+char *MEDCouplingRefCountServant::versionStr()
+{
+  return CORBA::string_dup(MEDCouplingVersionStr());
+}
+
+void MEDCouplingRefCountServant::versionMajMinRel(CORBA::Long_out maj, CORBA::Long_out minor, CORBA::Long_out releas)
+{
+  int _maj,_minor,_releas;
+  MEDCouplingVersionMajMinRel(_maj,_minor,_releas);
+  maj = _maj;
+  minor = _minor;
+  releas = _releas;
+}
+
 SALOME::StringSeq *MEDCouplingRefCountServant::GetExportableFormats()
 {
   SALOME::StringSeq *ret=new SALOME::StringSeq;
@@ -70,7 +84,7 @@ void MEDCouplingRefCountServant::Register()
 void MEDCouplingRefCountServant::UnRegister()
 {
   if(_cpp_pointer)
-    ((RefCountObject *)_cpp_pointer)->decrRef();
+    const_cast<RefCountObject *>(_cpp_pointer)->decrRef();
   _ref_counter--;
   if(_ref_counter<=0)
     {