-#==============================================================================
-# File : Makefile.in
-# Created : ven déc 7 13:32:20 CET 2001
-# Author : Paul RASCLE, EDF
-# Project : SALOME
-# Copyright : EDF 2001
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#
+#
+#
+# File : Makefile.in
+# Author : Paul RASCLE, EDF
+# Module : MED
# $Header$
-#==============================================================================
-# source path
top_srcdir=@top_srcdir@
top_builddir=..
srcdir=@srcdir@
@COMMENCE@
SUBDIRS = MEDMEM MEDMEM_SWIG MedMem MED MEDGUI MedCorba_Swig
-#SUBDIRS = MEDMEM MEDMEM_SWIG MedMem MED MedCorba_Swig
@MODULE@
-#==============================================================================
-# File : Makefile.in
-# Author : Nadir BOUHAMOU (CEA/DEN/DM2S/SFME/LGLS)
-# CVS : $Header$
-#==============================================================================
+# MED MedCorba_Swig : binding of MED CORBA objects woth Python
+#
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#
+#
+#
+# File : Makefile.in
+# Author : Nadir BOUHAMOU (CEA/DEN/DM2S/SFME/LGLS)
+# Module : MED
-# source path
top_srcdir=@top_srcdir@
top_builddir=../..
srcdir=@srcdir@
+# MED MedCorba_Swig : binding of MED CORBA objects woth Python
+#
+# Copyright (C) 2003 CEA/DEN, EDF R&D
+#
+#
+#
+# File : batchmode_medcorba_test.py
+# Module : MED
+
import batchmode_salome
import SALOME_MED
+# MED MedCorba_Swig : binding of MED CORBA objects woth Python
+#
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#
+#
+#
+# File : medcorba_test.py
+# Module : MED
+
import salome
import SALOME_MED
-using namespace std;
-//=============================================================================
-// File : Family_i.cxx
-// Project : SALOME
-// Copyright : EDF 2002
-// Author : EDF
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Family_i.cxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Family_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Family_i.cxx
+using namespace std;
#include "Family_i.hxx"
#include "utilities.h"
-using namespace std;
-//=============================================================================
-// File : Fielddouble_i.hxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Fielddouble_i.hxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Fielddouble_i.hxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Fielddouble_i.hxx
+using namespace std;
#include "FieldDouble_i.hxx"
#include "utilities.h"
#include "convert.hxx"
}
medModeSwitch modemed=convertIdlModeToMedMode(mode);
- double * values =_fieldTptr->getValue(modemed);
+ const double * values =_fieldTptr->getValue(modemed);
myseq->length(nbval);
for (int i=0; i<nbval; i++)
-using namespace std;
-//=============================================================================
-// File : Fieldint_i.hxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Fieldint_i.hxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Fieldint_i.hxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Fieldint_i.hxx
+using namespace std;
#include "FieldInt_i.hxx"
#include "utilities.h"
#include "convert.hxx"
}
medModeSwitch modemed=convertIdlModeToMedMode(mode);
- int * values =_fieldTptr->getValue(modemed);
+ const int * values =_fieldTptr->getValue(modemed);
myseq->length(nbval);
for (int i=0; i<nbval; i++)
-//=============================================================================
-// File : FieldOf_i.hxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/FieldOf_i.hxx
-//=============================================================================
-
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : FieldOf_i.hxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/FieldOf_i.hxx
#ifndef MED_FIELDOF_I_HXX_
#define MED_FIELDOF_I_HXX_
{
int nbcom = _fieldTptr->getNumberOfComponents();
myseq->length(nbcom);
- string * namecom=_fieldTptr->getComponentsNames();
+ const string * namecom=_fieldTptr->getComponentsNames();
for (int i=0;i<nbcom;i++)
{
myseq[i]=CORBA::string_dup(namecom[i].c_str());
{
int nbcom = _fieldTptr->getNumberOfComponents();
myseq->length(nbcom);
- string * unitcom=_fieldTptr->getMEDComponentsUnits();
+ const string * unitcom=_fieldTptr->getMEDComponentsUnits();
for (int i=0;i<nbcom;i++)
{
myseq[i]=CORBA::string_dup(unitcom[i].c_str());
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Field_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Field_i.cxx
+
using namespace std;
-//=============================================================================
-// File : Field_i.cxx
-// Created : mer fév 20 15:47:57 CET 2002
-// Author : EDF
-// Project : SALOME
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Field_i.cxx
-//=============================================================================
# include "Field_i.hxx"
FIELD_i::FIELD_i()
-using namespace std;
-//=============================================================================
-// File : Group_i.cxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Group_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/
+using namespace std;
#include <vector>
#include "utilities.h"
-#==============================================================================
-// File : Field_i.hxx
-// Author : Marc Tajchman
-// Project : SALOME
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Makefile.in
-//=============================================================================
-
-# source path
+# MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+#
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+#
+#
+#
+# File : Field_i.hxx
+# Author : Marc Tajchman
+# Module : MED
+# $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Makefile.in
+
top_srcdir=@top_srcdir@
top_builddir=../..
srcdir=@srcdir@
-using namespace std;
-//=============================================================================
-// File : Med_i.cxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Med_i.cxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Med_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Med_i.cxx
+using namespace std;
#include <deque>
//#include "MEDMEM_Field.hxx"
-using namespace std;
-//=============================================================================
-// File : Mesh_i.cxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Mesh_i.cxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Mesh_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Mesh_i.cxx
+using namespace std;
#include <vector>
#include "utilities.h"
try
{
int spaceDimension=_mesh->getSpaceDimension();
- string * coordinatesName =_mesh->getCoordinatesNames();
+ const string * coordinatesName =_mesh->getCoordinatesNames();
myseq->length(spaceDimension);
for (int i=0; i<spaceDimension; i++)
{
try
{
int spaceDimension=_mesh->getSpaceDimension();
- string * coordinatesUnits =_mesh->getCoordinatesUnits();
+ const string * coordinatesUnits =_mesh->getCoordinatesUnits();
myseq->length(spaceDimension);
for (int i=0; i<spaceDimension; i++)
{
try
{
int nbTypes=_mesh->getNumberOfTypes(convertIdlEntToMedEnt(entity));
- medGeometryElement * elemts =_mesh->getTypes(
+ const medGeometryElement * elemts =_mesh->getTypes(
convertIdlEntToMedEnt(entity));
myseq->length(nbTypes);
for (int i=0; i<nbTypes; i++)
else
{
MESSAGE("MED_NODAL");
- int * tab=_mesh->getConnectivityIndex(
+ const int * tab=_mesh->getConnectivityIndex(
convertIdlConnToMedConn(mode),
convertIdlEntToMedEnt(entity));
nbelements = elt1*(convertIdlEltToMedElt(geomElement)%100);
SCRUTE(geomElement);
SCRUTE(nbelements);
myseq->length(nbelements);
- int * numbers=_mesh->getConnectivity(convertIdlModeToMedMode(typeSwitch),
+ const int * numbers=_mesh->getConnectivity(convertIdlModeToMedMode(typeSwitch),
convertIdlConnToMedConn(mode),
convertIdlEntToMedEnt(entity),
convertIdlEltToMedElt(geomElement));
convertIdlEntToMedEnt(entity),
MED_ALL_ELEMENTS);
myseq->length(nbelements);
- int * numbers=_mesh->getConnectivityIndex(convertIdlConnToMedConn(mode),
+ const int * numbers=_mesh->getConnectivityIndex(convertIdlConnToMedConn(mode),
convertIdlEntToMedEnt(entity));
for (int i=0;i<nbelements;i++)
{
}
SCRUTE(nbelements);
myseq->length(nbelements);
- int * numbers=_mesh->getReverseConnectivity(convertIdlConnToMedConn(mode));
+ const int * numbers=_mesh->getReverseConnectivity(convertIdlConnToMedConn(mode));
for (int i=0;i<nbelements;i++)
{
myseq[i]=numbers[i];
}
myseq->length(nbelements);
- int * numbers=_mesh->getReverseConnectivityIndex(convertIdlConnToMedConn(mode));
+ const int * numbers=_mesh->getReverseConnectivityIndex(convertIdlConnToMedConn(mode));
for (int i=0;i<nbelements;i++)
{
myseq[i]=numbers[i];
SALOME::INTERNAL_ERROR);
try
{
- FAMILY * fam = _mesh->getFamily(convertIdlEntToMedEnt(entity),i);
+ const FAMILY * fam = _mesh->getFamily(convertIdlEntToMedEnt(entity),i);
FAMILY_i * f1=new FAMILY_i(fam);
SALOME_MED::FAMILY_ptr f2 = f1->POA_SALOME_MED::FAMILY::_this();
f1->_remove_ref();
SALOME::INTERNAL_ERROR);
try
{
- GROUP * grou = _mesh->getGroup(convertIdlEntToMedEnt(entity),i);
+ const GROUP * grou = _mesh->getGroup(convertIdlEntToMedEnt(entity),i);
GROUP_i * f1=new GROUP_i(grou);
SALOME_MED::GROUP_ptr f2 = f1->POA_SALOME_MED::GROUP::_this();
f1->_remove_ref();
-using namespace std;
-//=============================================================================
-// File : Support_i.cxx
-// Project : SALOME
-// Author : EDF
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Support_i.cxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : Support_i.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/Support_i.cxx
+using namespace std;
#include "utilities.h"
#include "Utils_CorbaException.hxx"
#include "Utils_ORB_INIT.hxx"
{
int mySeqLength=_support->getNumberOfTypes();
myseq->length(mySeqLength);
- medGeometryElement * elemts = _support->getTypes();
+ const medGeometryElement * elemts = _support->getTypes();
for (int i=0;i<mySeqLength;i++)
{
myseq[i]=convertMedEltToIdlElt(elemts[i]);
SCRUTE(_support->getName());
SCRUTE(nbelements);
SCRUTE(convertIdlEltToMedElt(geomElement));
- int * numbers=_support->getNumber(convertIdlEltToMedElt(geomElement));
+ const int * numbers=_support->getNumber(convertIdlEltToMedElt(geomElement));
for (int i=0;i<nbelements;i++)
{
myseq[i]=numbers[i];
MESSAGE ("Nombre d'elements mis de façon stupide a MED_ALL_ELEMENTS");
int nbelements=_support->getNumberOfElements(::MED_ALL_ELEMENTS);
myseq->length(nbelements);
- int * numbers=_support->getNumberIndex();
+ const int * numbers=_support->getNumberIndex();
for (int i=0;i<nbelements;i++)
{
myseq[i]=numbers[i];
-using namespace std;
-//=============================================================================
-// File : convert.cxx
-// Created : mer fév 20 15:47:57 CET 2002
-// Author : EDF
-// Project : SALOME
-// Copyright : EDF 2002
-// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/convert.cxx
-//=============================================================================
+// MED MedMem : MED idl descriptions implementation based on the classes of MEDMEM
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : convert.cxx
+// Author : EDF
+// Module : MED
+// $Header: /export/home/CVS/SALOME_ROOT/MED/src/MedMem/convert.cxx
+using namespace std;
#include "utilities.h"
#include "Utils_CorbaException.hxx"