Version: 6.3.1
Public Member Functions | Static Public Member Functions

_pySelfEraser Class Reference

SelfEraser erases creation command if no more it's commands invoked. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pySelfEraser:
Inheritance graph
[legend]

Public Member Functions

 _pySelfEraser (const Handle(_pyCommand)&theCreationCmd)
virtual void Flush ()
 SelfEraser erases creation command if no more it's commands invoked.
const Handle (_pyCommand)&GetCreationCmd()
const _pyIDGetID ()
int GetNbCalls () const
void SetCreationCmd (Handle(_pyCommand) cmd)
int GetCommandNb ()
virtual void Process (const Handle(_pyCommand)&theCommand)
virtual const char * AccessorMethod () const
 Return method name giving access to an interaface object wrapped by python class.

Static Public Member Functions

static _pyID FatherID (const _pyID &childID)
 Return ID of a father.

Detailed Description

SelfEraser erases creation command if no more it's commands invoked.

Definition at line 427 of file SMESH_2smeshpy.hxx.


Constructor & Destructor Documentation

_pySelfEraser._pySelfEraser ( const Handle(_pyCommand)&  theCreationCmd)

Definition at line 430 of file SMESH_2smeshpy.hxx.

:_pyObject(theCreationCmd) {}

Member Function Documentation

const char * _pyObject::AccessorMethod ( ) const [virtual, inherited]

Return method name giving access to an interaface object wrapped by python class.

Return values:
constchar* - method name

Reimplemented in _pyGen, _pyMesh, and _pyAlgorithm.

Definition at line 2484 of file SMESH_2smeshpy.cxx.

{
  return 0;
}
_pyID _pyObject::FatherID ( const _pyID childID) [static, inherited]

Return ID of a father.

Definition at line 2494 of file SMESH_2smeshpy.cxx.

Referenced by _pySegmentLengthAroundVertexHyp.Addition2Creation().

{
  int colPos = childID.SearchFromEnd(':');
  if ( colPos > 0 )
    return childID.SubString( 1, colPos-1 );
  return "";
}
void _pySelfEraser::Flush ( ) [virtual]

SelfEraser erases creation command if no more it's commands invoked.

Implements _pyObject.

Definition at line 2508 of file SMESH_2smeshpy.cxx.

References _pyObject.GetNbCalls().

{
  if ( GetNbCalls() == 0 )
    GetCreationCmd()->Clear();
}
int _pyObject.GetCommandNb ( ) [inherited]

Definition at line 167 of file SMESH_2smeshpy.hxx.

{ return myCreationCmd->GetOrderNb(); }
const _pyID& _pyObject.GetID ( ) [inherited]
int _pyObject.GetNbCalls ( ) const [inherited]

Definition at line 165 of file SMESH_2smeshpy.hxx.

References _pyObject.myNbCalls.

Referenced by _pySubMesh.Flush(), and Flush().

{ return myNbCalls; }
const _pyObject.Handle ( _pyCommand  ) [inherited]

Reimplemented in _pyGen, and _pyGen.

Definition at line 164 of file SMESH_2smeshpy.hxx.

{ return myCreationCmd; }
virtual void _pyObject.Process ( const Handle(_pyCommand)&  theCommand) [virtual, inherited]
void _pyObject.SetCreationCmd ( Handle(_pyCommand cmd) [inherited]

Definition at line 166 of file SMESH_2smeshpy.hxx.

Referenced by _pyHypothesis.Addition2Creation().

{ myCreationCmd = cmd; }
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