X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCouplingCorba%2FMEDCouplingRefCountServant.cxx;h=5bd57e1a89da11fb310d02bfa08f043f49d28771;hb=0c9d48870957c4a9f6f82fc8e2c569780a5f886b;hp=7f6606e63a0b64ea78155f8bde3713b02b5ead8c;hpb=94d102d362379da8b0dc676e72a7af0a0a0af49a;p=modules%2Fmed.git diff --git a/src/MEDCouplingCorba/MEDCouplingRefCountServant.cxx b/src/MEDCouplingCorba/MEDCouplingRefCountServant.cxx index 7f6606e63..5bd57e1a8 100644 --- a/src/MEDCouplingCorba/MEDCouplingRefCountServant.cxx +++ b/src/MEDCouplingCorba/MEDCouplingRefCountServant.cxx @@ -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 @@ -16,6 +16,7 @@ // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// Author : Anthony Geay (CEA/DEN) #include "MEDCouplingRefCountServant.hxx" #include "InterpKernelException.hxx" @@ -51,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; @@ -69,7 +84,7 @@ void MEDCouplingRefCountServant::Register() void MEDCouplingRefCountServant::UnRegister() { if(_cpp_pointer) - ((RefCountObject *)_cpp_pointer)->decrRef(); + const_cast(_cpp_pointer)->decrRef(); _ref_counter--; if(_ref_counter<=0) {