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);
180 operator<<(SMESH::SMESH_Hypothesis_ptr theArg);
222 operator<<(
const TCollection_AsciiString & theArg);
252 template<
class TArray,
class TStream>
253 static TStream&
DumpArray(
const TArray& theArray, TStream & theStream)
255 if ( theArray.length() == 0 )
262 for (CORBA::ULong i = 1; i <= theArray.length(); i++) {
263 theStream << theArray[i-1];
264 if ( i < theArray.length() )
274 static const char* NotPublishedObjectName();
282 static TCollection_AsciiString LongStringStart(
const char* type);
288 static TCollection_AsciiString LongStringEnd();
300 static bool CutoutLongString( TCollection_AsciiString & theText,
302 TCollection_AsciiString & theLongString,
303 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:1077
Definition: SMESH_Filter_i.hxx:1115
Definition: SMESH_Filter_i.hxx:996
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
int myVarsCounter
Definition: SMESH_PythonDump.hxx:124
static const char * SMESHGenName()
Definition: SMESH_PythonDump.hxx:272
static TStream & DumpArray(const TArray &theArray, TStream &theStream)
Definition: SMESH_PythonDump.hxx:253
static size_t myCounter
Definition: SMESH_PythonDump.hxx:123
static const char * MeshEditorName()
Definition: SMESH_PythonDump.hxx:273
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:484
Definition: SMESH_Gen_i.hxx:99
Definition: SMESH_MeshEditor_i.hxx:50
Definition: SMESH_ControlsDef.hxx:64
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:332
sequence< SMESH_IDSource > ListOfIDSources
Definition: SMESH_Mesh.idl:40
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:36
sequence< SMESH_GroupBase > ListOfGroups
Definition: SMESH_Mesh.idl:38
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
std::vector< std::string > myVals
Definition: SMESH_PythonDump.hxx:100
static const char * ObjPrefix()
Definition: SMESH_PythonDump.hxx:111