Salome HOME
Give public access to the "getPointer" function of all "*Servant" classes.
[modules/med.git] / src / MEDCouplingCorba / DataArrayDoubleServant.hxx
index 1e01a4e38a3783afd2e32b3f3404fd0895594c0c..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
@@ -29,7 +29,7 @@
 #include "MEDCouplingCorba.hxx"
 #include "DataArrayServant.hxx"
 
-namespace ParaMEDMEM
+namespace MEDCoupling
 {
   class DataArrayDouble;
 
@@ -40,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);
   };