Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOM_PYTHONDUMP_HXX_
00024 #define _GEOM_PYTHONDUMP_HXX_
00025
00026 #include <SALOMEconfig.h>
00027
00028 #include "GEOM_Object.hxx"
00029 #include "GEOM_Function.hxx"
00030
00031 #include <TCollection_AsciiString.hxx>
00032
00033 namespace GEOM
00034 {
00035 class TPythonDump
00036 {
00037 std::ostringstream myStream;
00038 static size_t myCounter;
00039 bool myAppend;
00040
00041 Handle(GEOM_Function) myFunction;
00042
00043 public:
00044 Standard_EXPORT TPythonDump (Handle(GEOM_Function)& theFunction, bool theAppend=false);
00045 Standard_EXPORT virtual ~TPythonDump();
00046
00047
00048
00049 Standard_EXPORT TPythonDump& operator<< (bool theArg);
00050 Standard_EXPORT TPythonDump& operator<< (long int theArg);
00051 Standard_EXPORT TPythonDump& operator<< (int theArg);
00052 Standard_EXPORT TPythonDump& operator<< (double theArg);
00053 Standard_EXPORT TPythonDump& operator<< (float theArg);
00054 Standard_EXPORT TPythonDump& operator<< (const void* theArg);
00055 Standard_EXPORT TPythonDump& operator<< (const char* theArg);
00056 Standard_EXPORT TPythonDump& operator<< (const TopAbs_ShapeEnum theArg);
00057 Standard_EXPORT TPythonDump& operator<< (const Handle(GEOM_Object)& theObject);
00058 };
00059
00062 Standard_EXPORT Handle(GEOM_Object) GetCreatedLast (const Handle(GEOM_Object)& theObj1,
00063 const Handle(GEOM_Object)& theObj2);
00064
00067 Standard_EXPORT Handle(GEOM_Object) GetCreatedLast (const Handle(TColStd_HSequenceOfTransient)& theObjects);
00068 }
00069
00070 #endif