1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
20 #ifndef _SMESH_PYTHONDUMP_HXX_
21 #define _SMESH_PYTHONDUMP_HXX_
23 #include <SALOMEconfig.h>
24 #include CORBA_SERVER_HEADER(SMESH_Mesh)
25 #include CORBA_SERVER_HEADER(SALOMEDS)
30 class SMESH_MeshEditor_i;
31 class TCollection_AsciiString;
35 class FilterLibrary_i;
36 class FilterManager_i;
42 std::ostringstream myStream;
43 static size_t myCounter;
46 virtual ~TPythonDump();
49 operator<<(long int theArg);
52 operator<<(int theArg);
55 operator<<(double theArg);
58 operator<<(float theArg);
61 operator<<(const void* theArg);
64 operator<<(const char* theArg);
67 operator<<(const SMESH::ElementType& theArg);
70 operator<<(const SMESH::long_array& theArg);
73 operator<<(const SMESH::double_array& theArg);
76 operator<<(SALOMEDS::SObject_ptr theArg);
79 operator<<(CORBA::Object_ptr theArg);
82 operator<<(SMESH::FilterLibrary_i* theArg);
85 operator<<(SMESH::FilterManager_i* theArg);
88 operator<<(SMESH::Filter_i* theArg);
91 operator<<(SMESH::Functor_i* theArg);
94 operator<<(SMESH_Gen_i* theArg);
97 operator<<(SMESH_MeshEditor_i* theArg);
100 operator<<(SMESH::MED_VERSION theArg);
103 operator<<(const SMESH::AxisStruct & theAxis);
106 operator<<(const SMESH::DirStruct & theDir);
109 operator<<(const TCollection_AsciiString & theArg);
111 static char* SMESHGenName() { return "smeshgen"; }
112 static char* MeshEditorName() { return "mesh_editor"; }