Salome HOME
Give public access to the "getPointer" function of all "*Servant" classes.
[modules/med.git] / src / MEDCouplingCorba / DataArrayDoubleServant.hxx
index 4117aae3289edd0630a85163dd7df0a1dbe5323f..2036fddc325078bbd066e59e6d8db9a71129d0cf 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D
+// Copyright (C) 2007-2015  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
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+// Author : Anthony Geay (CEA/DEN)
 
 #ifndef __DATAARRAYDOUBLESERVANT_HXX__
 #define __DATAARRAYDOUBLESERVANT_HXX__
 
 #include "SALOMEconfig.h"
-#ifdef WNT
+#ifdef WIN32
 #define NOMINMAX
 #endif
 #include CORBA_SERVER_HEADER(MEDCouplingCorbaServant)
 #include "MEDCouplingCorba.hxx"
 #include "DataArrayServant.hxx"
 
-namespace ParaMEDMEM
+namespace MEDCoupling
 {
   class DataArrayDouble;
 
@@ -39,10 +40,10 @@ namespace ParaMEDMEM
     typedef DataArrayDouble CppType;
     DataArrayDoubleServant(const DataArrayDouble *cppPointer);
   protected:
-    const DataArrayDouble *getPointer() const { return (const DataArrayDouble *)(_cpp_pointer); }
     SALOME::StringSeq *GetExportableFormats();
     CORBA::Boolean ExportDataAs(const char *format, SALOME::GenericObj_out exporter);
   public:
+    const DataArrayDouble *getPointer() const { return (const DataArrayDouble *)(_cpp_pointer); }
     void getTinyInfo(SALOME_TYPES::ListOfLong_out la, SALOME_TYPES::ListOfString_out sa);
     void getSerialisationData(SALOME_TYPES::ListOfDouble_out da);
   };