23#ifndef _SMESH_PYTHONDUMP_HXX_
24#define _SMESH_PYTHONDUMP_HXX_
28#include <SALOMEconfig.h>
29#include CORBA_SERVER_HEADER(SMESH_Mesh)
30#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
31#include CORBA_SERVER_HEADER(GEOM_Gen)
32#include CORBA_SERVER_HEADER(SALOMEDS)
34#include <TCollection_AsciiString.hxx>
35#include <Resource_DataMapOfAsciiStringAsciiString.hxx>
68 ConvertScript(std::list< TCollection_AsciiString >& theScriptLines,
69 Resource_DataMapOfAsciiStringAsciiString& theEntry2AccessorMethod,
70 Resource_DataMapOfAsciiStringAsciiString& theObjectNames,
71 std::set< TCollection_AsciiString >& theRemovedObjIDs,
72 const bool theHistoricalDump);
79 static const char*
GenName() {
return "smesh"; }
84 class FilterLibrary_i;
85 class FilterManager_i;
102 TVar(CORBA::Double value);
103 TVar(CORBA::Long value);
104 TVar(CORBA::LongLong value);
105 TVar(CORBA::Short value);
147 static void IncrementMyCounter();
157 static void DecrementMyCounter();
209 operator<<(SMESH::SMESH_Hypothesis_ptr theArg);
251 operator<<(
const TCollection_AsciiString & theArg);
281 template<
class TArray,
class TStream>
282 static TStream&
DumpArray(
const TArray& theArray, TStream & theStream)
284 if ( theArray.length() == 0 )
291 for (CORBA::ULong i = 1; i <= theArray.length(); i++) {
292 theStream << theArray[i-1];
293 if ( i < theArray.length() )
303 static const char* NotPublishedObjectName();
311 static TCollection_AsciiString LongStringStart(
const char* type);
317 static TCollection_AsciiString LongStringEnd();
329 static bool CutoutLongString( TCollection_AsciiString & theText,
331 TCollection_AsciiString & theLongString,
332 TCollection_AsciiString & theStringType);
ostream & operator<<(ostream &OS, const SMDS_MeshElement *e)
Definition: SMDS_MeshElement.cxx:212
#define SMESH_I_EXPORT
Definition: SMESH.hxx:39
Definition: SMESH_Filter_i.hxx:1090
Definition: SMESH_Filter_i.hxx:1128
Definition: SMESH_Filter_i.hxx:1009
Definition: SMESH_Filter_i.hxx:80
Definition: SMESH_Measurements_i.hxx:45
Utility helping in storing SMESH engine calls as python commands.
Definition: SMESH_PythonDump.hxx:121
static const char * SMESHGenName()
Definition: SMESH_PythonDump.hxx:301
int myVarsCounter
Definition: SMESH_PythonDump.hxx:124
static const char * MeshEditorName()
Definition: SMESH_PythonDump.hxx:302
static TStream & DumpArray(const TArray &theArray, TStream &theStream)
Definition: SMESH_PythonDump.hxx:282
static size_t myCounter
Definition: SMESH_PythonDump.hxx:123
std::ostringstream myStream
Definition: SMESH_PythonDump.hxx:122
Tool converting SMESH engine calls into commands defined in smeshBuilder.py.
Definition: SMESH_PythonDump.hxx:54
static const char * GenName()
Definition: SMESH_PythonDump.hxx:79
static const char * SmeshpyName()
Return the name of the python file wrapping IDL API.
Definition: SMESH_PythonDump.hxx:78
static void ConvertScript(std::list< TCollection_AsciiString > &theScriptLines, Resource_DataMapOfAsciiStringAsciiString &theEntry2AccessorMethod, Resource_DataMapOfAsciiStringAsciiString &theObjectNames, std::set< TCollection_AsciiString > &theRemovedObjIDs, const bool theHistoricalDump)
Convert a python script using commands of smeshBuilder.py.
Definition: SMESH_2smeshpy.cxx:546
Definition: SMESH_Gen_i.hxx:99
Definition: SMESH_MeshEditor_i.hxx:50
Definition: SMESH_ControlsClassifier.cxx:39
EntityType
Enumeration of entity type used in mesh info array, it should be synchronised with enum SMDSAbs_Entit...
Definition: SMESH_Mesh.idl:174
sequence< SMESH_subMesh > submesh_array
Definition: SMESH_Mesh.idl:334
sequence< SMESH_IDSource > ListOfIDSources
Definition: SMESH_Mesh.idl:41
sequence< smIdType > smIdType_array
Definition: SMESH_Mesh.idl:45
GeometryType
Enumeration for element geometry type, like SMDSAbs_GeometryType in SMDSAbs_ElementType....
Definition: SMESH_Mesh.idl:144
ElementType
Enumeration for element type, like in SMDS.
Definition: SMESH_Mesh.idl:128
sequence< double > double_array
Definition: SMESH_Mesh.idl:43
sequence< string > string_array
Definition: SMESH_Mesh.idl:46
sequence< SMESH_Hypothesis > ListOfHypothesis
Definition: SMESH_Mesh.idl:37
sequence< SMESH_GroupBase > ListOfGroups
Definition: SMESH_Mesh.idl:39
sequence< PointStruct > nodes_array
Definition: SMESH_Mesh.idl:97
sequence< long > long_array
Definition: SMESH_Mesh.idl:44
Definition: SMESH_Mesh.idl:101
Definition: SMESH_MeshEditor.idl:55
Definition: SMESH_Mesh.idl:99
Definition: SMESH_Mesh.idl:93
Object used to make TPythonDump know that its held value can be a variable.
Definition: SMESH_PythonDump.hxx:99
static char Quote()
Definition: SMESH_PythonDump.hxx:109
bool myIsList
Definition: SMESH_PythonDump.hxx:101
static const char * ObjPrefix()
Definition: SMESH_PythonDump.hxx:111
std::vector< std::string > myVals
Definition: SMESH_PythonDump.hxx:100