Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes

SMESH.TPythonDump Class Reference

Utility helping in storing SMESH engine calls as python commands. More...

#include <SMESH_PythonDump.hxx>

Public Member Functions

 TPythonDump ()
virtual ~TPythonDump ()
TPythonDumpoperator<< (long int theArg)
TPythonDumpoperator<< (int theArg)
TPythonDumpoperator<< (double theArg)
TPythonDumpoperator<< (float theArg)
TPythonDumpoperator<< (const void *theArg)
TPythonDumpoperator<< (const char *theArg)
TPythonDumpoperator<< (const SMESH::ElementType &theArg)
TPythonDumpoperator<< (const SMESH::GeometryType &theArg)
TPythonDumpoperator<< (const SMESH::long_array &theArg)
TPythonDumpoperator<< (const SMESH::double_array &theArg)
TPythonDumpoperator<< (SMESH::SMESH_Hypothesis_ptr theArg)
TPythonDumpoperator<< (SMESH::SMESH_IDSource_ptr theArg)
TPythonDumpoperator<< (SALOMEDS::SObject_ptr theArg)
TPythonDumpoperator<< (CORBA::Object_ptr theArg)
TPythonDumpoperator<< (SMESH::FilterLibrary_i *theArg)
TPythonDumpoperator<< (SMESH::FilterManager_i *theArg)
TPythonDumpoperator<< (SMESH::Filter_i *theArg)
TPythonDumpoperator<< (SMESH::Functor_i *theArg)
TPythonDumpoperator<< (SMESH::Measurements_i *theArg)
TPythonDumpoperator<< (SMESH_Gen_i *theArg)
TPythonDumpoperator<< (SMESH_MeshEditor_i *theArg)
TPythonDumpoperator<< (SMESH::MED_VERSION theArg)
TPythonDumpoperator<< (const SMESH::AxisStruct &theAxis)
TPythonDumpoperator<< (const SMESH::DirStruct &theDir)
TPythonDumpoperator<< (const TCollection_AsciiString &theArg)
TPythonDumpoperator<< (const SMESH::ListOfGroups &theList)
TPythonDumpoperator<< (const SMESH::ListOfGroups *theList)
TPythonDumpoperator<< (const SMESH::ListOfIDSources &theList)

Static Public Member Functions

static const char * SMESHGenName ()
static const char * MeshEditorName ()
static TCollection_AsciiString LongStringStart (const char *type)
 Return marker of long string literal beginning.
static TCollection_AsciiString LongStringEnd ()
 Return marker of long string literal end.
static bool CutoutLongString (TCollection_AsciiString &theText, int &theFrom, TCollection_AsciiString &theLongString, TCollection_AsciiString &theStringType)
 Cut out a long string literal from a string.

Private Attributes

std::ostringstream myStream

Static Private Attributes

static size_t myCounter = 0

Detailed Description

Utility helping in storing SMESH engine calls as python commands.

Definition at line 84 of file SMESH_PythonDump.hxx.


Constructor & Destructor Documentation

SMESH.TPythonDump::TPythonDump ( )

Definition at line 55 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myCounter.

  {
    ++myCounter;
  }
SMESH.TPythonDump::~TPythonDump ( ) [virtual]

Definition at line 60 of file SMESH_DumpPython.cxx.

References SMESH_Gen_i.AddToPythonScript(), SMESH_Gen_i.GetCurrentStudy(), SMESH_Gen_i.GetSMESHGen(), MESSAGE, SMESH.TPythonDump.myCounter, and SMESH.TPythonDump.myStream.

  {
    if(--myCounter == 0){
      SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
      std::string aString = myStream.str();
      TCollection_AsciiString aCollection(Standard_CString(aString.c_str()));
      SALOMEDS::Study_ptr aStudy = aSMESHGen->GetCurrentStudy();
      if(!aStudy->_is_nil() && !aCollection.IsEmpty()){
        aSMESHGen->AddToPythonScript(aStudy->StudyId(),aCollection);
        if(MYDEBUG) MESSAGE(aString);
      }
    }
  }

Member Function Documentation

bool SMESH.TPythonDump::CutoutLongString ( TCollection_AsciiString &  theText,
int theFrom,
TCollection_AsciiString &  theLongString,
TCollection_AsciiString &  theStringType 
) [static]

Cut out a long string literal from a string.

Parameters:
theText- text possibly containing string literals
theFrom- position in the text to search from
theLongString- the retrieved literal
theStringType- a name of functionality produced the literal
Return values:
bool- true if a string literal found

The literal is removed from theText; theFrom points position right after the removed literal

Definition at line 444 of file SMESH_DumpPython.cxx.

References SMESH.myLongStringEnd(), and SMESH.myLongStringStart().

Referenced by SMESH_Gen_i.DumpPython_impl().

  {
    if ( theFrom < 1 || theFrom > theText.Length() )
      return false;

    // ...script \  beg marker    \ \ type \       literal              \  end marker  \ script...
    //  "theText myLongStringStart7 Pattern!!! SALOME Mesh Pattern file myLongStringEndtextEnd"
    //  012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
    //  0         1         2         3         4         5         6         7         8

    theFrom = theText.Location( myLongStringStart, theFrom, theText.Length() ); // = 09
    if ( !theFrom )
      return false;

    // find where literal begins
    int literalBeg = theFrom + myLongStringStart.Length(); // = 26
    char* typeLenStr = (char*) theText.ToCString() + literalBeg - 1; // = "7 Pattern!!! SALO...."
    int typeLen = atoi ( typeLenStr ); // = 7
    while ( *typeLenStr != ' ' ) { // look for ' ' after typeLen
      literalBeg++; // 26 -> 27
      typeLenStr++;
    }
    literalBeg += typeLen + 1; // = 35
    if ( literalBeg > theText.Length() )
      return false;

    // where literal ends (i.e. end marker begins)
    int literalEnd = theText.Location( myLongStringEnd, literalBeg, theText.Length() ); // = 64
    if ( !literalEnd )
      literalEnd = theText.Length();

    // literal
    theLongString = theText.SubString( literalBeg, literalEnd - 1); // "!!! SALOME Mesh Pattern file "
    // type
    theStringType = theText.SubString( literalBeg - typeLen, literalBeg - 1 ); // "Pattern"
    // cut off literal
    literalEnd += myLongStringEnd.Length(); // = 79
    TCollection_AsciiString textEnd = theText.SubString( literalEnd, theText.Length() ); // "textE..."
    theText = theText.SubString( 1, theFrom - 1 ) + textEnd;

    return true;
  }
TCollection_AsciiString SMESH.TPythonDump::LongStringEnd ( ) [static]

Return marker of long string literal end.

Return values:
TCollection_AsciiString- the marker string to be written into a raw python script

Definition at line 425 of file SMESH_DumpPython.cxx.

References SMESH.myLongStringEnd().

  {
    return myLongStringEnd;
  }
TCollection_AsciiString SMESH.TPythonDump::LongStringStart ( const char *  type) [static]

Return marker of long string literal beginning.

Parameters:
type- a name of functionality producing the string literal
Return values:
TCollection_AsciiString- the marker string to be written into a raw python script

Definition at line 408 of file SMESH_DumpPython.cxx.

References SMESH.myLongStringStart().

  {
    return
      myLongStringStart +
      (Standard_Integer) strlen(type) +
      " " +
      (char*) type;
  }
static const char* SMESH.TPythonDump.MeshEditorName ( ) [static]

Definition at line 177 of file SMESH_PythonDump.hxx.

Referenced by SMESH.TPythonDump.operator<<().

{ return "mesh_editor"; }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::FilterLibrary_i theArg)

Definition at line 247 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

  {
    myStream<<"aFilterLibrary"<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::FilterManager_i theArg)

Definition at line 255 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

  {
    myStream<<"aFilterManager";
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::ListOfIDSources theList)

Definition at line 390 of file SMESH_DumpPython.cxx.

References SMESH.DumpArray().

  {
    DumpArray( theList, *this );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::ListOfGroups theList)

Definition at line 385 of file SMESH_DumpPython.cxx.

References SMESH.DumpArray().

  {
    DumpArray( *theList, *this );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::ListOfGroups theList)

Definition at line 380 of file SMESH_DumpPython.cxx.

References SMESH.DumpArray().

  {
    DumpArray( theList, *this );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const TCollection_AsciiString &  theArg)

Definition at line 342 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

  {
    myStream << theStr; return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::DirStruct theDir)

Definition at line 370 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream, SMESH.DirStruct.PS, SMESH.PointStruct.x, SMESH.PointStruct.y, and SMESH.PointStruct.z.

  {
    const SMESH::PointStruct & P = theDir.PS;
    myStream << "SMESH.DirStruct( SMESH.PointStruct ( "
             << P.x  << ", "
             << P.y  << ", "
             << P.z  << " ))";
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::AxisStruct theAxis)

Definition at line 358 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream, SMESH.AxisStruct.vx, SMESH.AxisStruct.vy, SMESH.AxisStruct.vz, SMESH.AxisStruct.x, SMESH.AxisStruct.y, and SMESH.AxisStruct.z.

  {
    myStream << "SMESH.AxisStruct( "
             << theAxis.x  << ", "
             << theAxis.y  << ", "
             << theAxis.z  << ", "
             << theAxis.vx << ", "
             << theAxis.vy << ", "
             << theAxis.vz << " )";
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::MED_VERSION  theArg)

Definition at line 348 of file SMESH_DumpPython.cxx.

References SMESH.MED_V2_1, SMESH.MED_V2_2, and SMESH.TPythonDump.myStream.

  {
    switch (theVersion) {
    case SMESH::MED_V2_1: myStream << "SMESH.MED_V2_1"; break;
    case SMESH::MED_V2_2: myStream << "SMESH.MED_V2_2"; break;
    default: myStream << theVersion;
    }
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH_MeshEditor_i theArg)

Definition at line 337 of file SMESH_DumpPython.cxx.

References SMESH_MeshEditor_i.GetMeshId(), SMESH.TPythonDump.MeshEditorName(), and SMESH.TPythonDump.myStream.

  {
    myStream << MeshEditorName() << "_" << ( theArg ? theArg->GetMeshId() : -1 ); return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH_Gen_i theArg)

Definition at line 332 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream, and SMESH.TPythonDump.SMESHGenName().

  {
    myStream << SMESHGenName(); return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::Measurements_i theArg)

Definition at line 325 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

  {
    myStream<<"aMeasurements";
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::Functor_i theArg)

Definition at line 271 of file SMESH_DumpPython.cxx.

References SMESH.FT_Area, SMESH.FT_AspectRatio, SMESH.FT_AspectRatio3D, SMESH.FT_BadOrientedVolume, SMESH.FT_BareBorderFace, SMESH.FT_BareBorderVolume, SMESH.FT_BelongToCylinder, SMESH.FT_BelongToGenSurface, SMESH.FT_BelongToGeom, SMESH.FT_BelongToPlane, SMESH.FT_CoplanarFaces, SMESH.FT_ElemGeomType, SMESH.FT_EqualTo, SMESH.FT_FreeBorders, SMESH.FT_FreeEdges, SMESH.FT_FreeFaces, SMESH.FT_FreeNodes, SMESH.FT_GroupColor, SMESH.FT_Length, SMESH.FT_Length2D, SMESH.FT_LessThan, SMESH.FT_LinearOrQuadratic, SMESH.FT_LogicalAND, SMESH.FT_LogicalNOT, SMESH.FT_LogicalOR, SMESH.FT_LyingOnGeom, SMESH.FT_MaxElementLength2D, SMESH.FT_MaxElementLength3D, SMESH.FT_MinimumAngle, SMESH.FT_MoreThan, SMESH.FT_MultiConnection, SMESH.FT_MultiConnection2D, SMESH.FT_OverConstrainedFace, SMESH.FT_OverConstrainedVolume, SMESH.FT_RangeOfIds, SMESH.FT_Skew, SMESH.FT_Taper, SMESH.FT_Undefined, SMESH.FT_Volume3D, SMESH.FT_Warping, and SMESH.TPythonDump.myStream.

  {
    if ( theArg ) {
      FunctorType aFunctorType = theArg->GetFunctorType();
      switch(aFunctorType){
      case FT_AspectRatio:           myStream<< "anAspectRatio";          break;
      case FT_AspectRatio3D:         myStream<< "anAspectRatio3D";        break;
      case FT_Warping:               myStream<< "aWarping";               break;
      case FT_MinimumAngle:          myStream<< "aMinimumAngle";          break;
      case FT_Taper:                 myStream<< "aTaper";                 break;
      case FT_Skew:                  myStream<< "aSkew";                  break;
      case FT_Area:                  myStream<< "aArea";                  break;
      case FT_Volume3D:              myStream<< "aVolume3D";              break;
      case FT_MaxElementLength2D:    myStream<< "aMaxElementLength2D";    break;
      case FT_MaxElementLength3D:    myStream<< "aMaxElementLength3D";    break;
      case FT_FreeBorders:           myStream<< "aFreeBorders";           break;
      case FT_FreeEdges:             myStream<< "aFreeEdges";             break;
      case FT_FreeNodes:             myStream<< "aFreeNodes";             break;
      case FT_FreeFaces:             myStream<< "aFreeFaces";             break;
      case FT_MultiConnection:       myStream<< "aMultiConnection";       break;
      case FT_MultiConnection2D:     myStream<< "aMultiConnection2D";     break;
      case FT_Length:                myStream<< "aLength";                break;
      case FT_Length2D:              myStream<< "aLength2D";              break;
      case FT_BelongToGeom:          myStream<< "aBelongToGeom";          break;
      case FT_BelongToPlane:         myStream<< "aBelongToPlane";         break;
      case FT_BelongToCylinder:      myStream<< "aBelongToCylinder";      break;
      case FT_BelongToGenSurface:    myStream<< "aBelongToGenSurface";    break;
      case FT_LyingOnGeom:           myStream<< "aLyingOnGeom";           break;
      case FT_CoplanarFaces:         myStream<< "aCoplanarFaces";         break;
      case FT_RangeOfIds:            myStream<< "aRangeOfIds";            break;
      case FT_BadOrientedVolume:     myStream<< "aBadOrientedVolume";     break;
      case FT_BareBorderVolume:      myStream<< "aBareBorderVolume";      break;
      case FT_BareBorderFace:        myStream<< "aBareBorderFace";        break;
      case FT_OverConstrainedVolume: myStream<< "aOverConstrainedVolume"; break;
      case FT_OverConstrainedFace:   myStream<< "aOverConstrainedFace";   break;
      case FT_LinearOrQuadratic:     myStream<< "aLinearOrQuadratic";     break;
      case FT_GroupColor:            myStream<< "aGroupColor";            break;
      case FT_ElemGeomType:          myStream<< "anElemGeomType";         break;
      case FT_LessThan:              myStream<< "aLessThan";              break;
      case FT_MoreThan:              myStream<< "aMoreThan";              break;
      case FT_EqualTo:               myStream<< "anEqualTo";              break;
      case FT_LogicalNOT:            myStream<< "aLogicalNOT";            break;
      case FT_LogicalAND:            myStream<< "aLogicalAND";            break;
      case FT_LogicalOR:             myStream<< "aLogicalOR";             break;
      case FT_Undefined:
      default:                       myStream<< "anUndefined";            break;
      }
      myStream<<theArg;
    }
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::Filter_i theArg)

Definition at line 263 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

  {
    myStream<<"aFilter"<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::GeometryType theArg)

Definition at line 134 of file SMESH_DumpPython.cxx.

References SMESH.Geom_EDGE, SMESH.Geom_HEXA, SMESH.Geom_PENTA, SMESH.Geom_POINT, SMESH.Geom_POLYGON, SMESH.Geom_POLYHEDRA, SMESH.Geom_PYRAMID, SMESH.Geom_QUADRANGLE, SMESH.Geom_TETRA, SMESH.Geom_TRIANGLE, and SMESH.TPythonDump.myStream.

  {
    myStream<<"SMESH.";
    switch(theArg){
    case Geom_POINT:      myStream<<"Geom_POINT";      break;
    case Geom_EDGE:       myStream<<"Geom_EDGE";       break;
    case Geom_TRIANGLE:   myStream<<"Geom_TRIANGLE";   break;
    case Geom_QUADRANGLE: myStream<<"Geom_QUADRANGLE"; break;
    case Geom_POLYGON:    myStream<<"Geom_POLYGON";    break;
    case Geom_TETRA:      myStream<<"Geom_TETRA";      break;
    case Geom_PYRAMID:    myStream<<"Geom_PYRAMID";    break;
    case Geom_HEXA:       myStream<<"Geom_HEXA";       break;
    case Geom_PENTA:      myStream<<"Geom_PENTA";      break;
    case Geom_POLYHEDRA:  myStream<<"Geom_POLYHEDRA";  break;
   }
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( double  theArg)

Definition at line 90 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                           {
    myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( CORBA::Object_ptr  theArg)

Definition at line 191 of file SMESH_DumpPython.cxx.

References SMESH_Gen_i.CanPublishInStudy(), SMESH_Gen_i.GetCurrentStudy(), SMESH_Gen_i.GetSMESHGen(), SMESH.TPythonDump.myStream, NotPublishedObjectName(), and SMESH_Gen_i.ObjectToSObject().

  {
    SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
    SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
    SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
    if(!aSObject->_is_nil()) {
      CORBA::String_var id = aSObject->GetID();
      myStream << id;
    } else if ( !CORBA::is_nil(theArg)) {
      if ( aSMESHGen->CanPublishInStudy( theArg )) // not published SMESH object
        myStream << "smeshObj_" << size_t(theArg);
      else
        myStream << NotPublishedObjectName();
    }
    else
      myStream << "None";
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SALOMEDS::SObject_ptr  theArg)

Definition at line 180 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream, and NotPublishedObjectName().

  {
    if ( !aSObject->_is_nil() )
      myStream << aSObject->GetID();
    else
      myStream << NotPublishedObjectName();
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::SMESH_IDSource_ptr  theArg)

Definition at line 225 of file SMESH_DumpPython.cxx.

References SMESH.ALL, SMESH_Gen_i.GetCurrentStudy(), SMESH_Gen_i.GetSMESHGen(), PAL_MESH_041_mesh.mesh, and SMESH_Gen_i.ObjectToSObject().

  {
    if ( CORBA::is_nil( theArg ) )
      return *this << "None";
    SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
    SALOMEDS::Study_var aStudy = aSMESHGen->GetCurrentStudy();
    SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
    if(!aSObject->_is_nil())
      return *this << aSObject;
    SMESH::SMESH_Mesh_var mesh = theArg->GetMesh();
    if ( !theArg->_is_equivalent( mesh ))
    {
      SMESH::long_array_var anElementsId = theArg->GetIDs();
      SMESH::array_of_ElementType_var types =  theArg->GetTypes();
      SMESH::ElementType type = types->length() ? types[0] : SMESH::ALL;
      return *this << mesh << ".GetIDSource(" << anElementsId << ", " << type << ")";
    }
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( SMESH::SMESH_Hypothesis_ptr  theArg)

Definition at line 212 of file SMESH_DumpPython.cxx.

References SMESH_Gen_i.GetCurrentStudy(), SMESH_Gen_i.GetSMESHGen(), SMESH.TPythonDump.myStream, and SMESH_Gen_i.ObjectToSObject().

  {
    SALOMEDS::Study_var aStudy = SMESH_Gen_i::GetSMESHGen()->GetCurrentStudy();
    SALOMEDS::SObject_var aSObject = SMESH_Gen_i::ObjectToSObject(aStudy,theArg);
    if(aSObject->_is_nil() && !CORBA::is_nil(theArg))
      myStream << "hyp_" << theArg->GetId();
    else
      *this << CORBA::Object_ptr( theArg );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::double_array theArg)

Definition at line 172 of file SMESH_DumpPython.cxx.

References SMESH.DumpArray().

  {
    DumpArray( theArg, *this );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::long_array theArg)

Definition at line 165 of file SMESH_DumpPython.cxx.

References SMESH.DumpArray().

  {
    DumpArray( theArg, *this );
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( int  theArg)

Definition at line 83 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                        {
    myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( long int  theArg)

Definition at line 76 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                             {
    myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const char *  theArg)

Definition at line 111 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                                {
    if ( theArg )
      myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const void *  theArg)

Definition at line 104 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                                {
    myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( float  theArg)

Definition at line 97 of file SMESH_DumpPython.cxx.

References SMESH.TPythonDump.myStream.

                          {
    myStream<<theArg;
    return *this;
  }
TPythonDump & SMESH.TPythonDump::operator<< ( const SMESH::ElementType theArg)

Definition at line 119 of file SMESH_DumpPython.cxx.

References SMESH.ALL, SMESH.EDGE, SMESH.FACE, SMESH.TPythonDump.myStream, SMESH.NODE, and SMESH.VOLUME.

  {
    myStream<<"SMESH.";
    switch(theArg){
    case ALL:   myStream<<"ALL";break;
    case NODE:  myStream<<"NODE";break;
    case EDGE:  myStream<<"EDGE";break;
    case FACE:  myStream<<"FACE";break;
    case VOLUME:myStream<<"VOLUME";break;
    }
    return *this;
  }
static const char* SMESH.TPythonDump.SMESHGenName ( ) [static]

Definition at line 176 of file SMESH_PythonDump.hxx.

Referenced by SMESH_Gen_i.DumpPython_impl(), and SMESH.TPythonDump.operator<<().

{ return "smeshgen"; }

Field Documentation

size_t SMESH.TPythonDump::myCounter = 0 [static, private]
std::ostringstream SMESH.TPythonDump.myStream [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS