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

_pyObject Class Reference

Root of all objects. More...

#include <SMESH_2smeshpy.hxx>

Inheritance diagram for _pyObject:
Inheritance graph
[legend]

Public Member Functions

 _pyObject (const Handle(_pyCommand)&theCreationCmd)
const _pyIDGetID ()
const Handle (_pyCommand)&GetCreationCmd()
int GetNbCalls () const
void SetCreationCmd (Handle(_pyCommand) cmd)
int GetCommandNb ()
virtual void Process (const Handle(_pyCommand)&theCommand)
virtual void Flush ()=0
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.

Private Member Functions

 Handle (_pyCommand) myCreationCmd

Private Attributes

int myNbCalls

Detailed Description

Root of all objects.

It counts calls of Process()

Definition at line 155 of file SMESH_2smeshpy.hxx.


Constructor & Destructor Documentation

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

Definition at line 160 of file SMESH_2smeshpy.hxx.

    : myCreationCmd(theCreationCmd), myNbCalls(0) {}

Member Function Documentation

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

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]

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 "";
}
virtual void _pyObject.Flush ( ) [pure virtual]
int _pyObject.GetCommandNb ( )

Definition at line 167 of file SMESH_2smeshpy.hxx.

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

Definition at line 165 of file SMESH_2smeshpy.hxx.

References myNbCalls.

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

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

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]
void _pyObject.SetCreationCmd ( Handle(_pyCommand cmd)

Definition at line 166 of file SMESH_2smeshpy.hxx.

Referenced by _pyHypothesis.Addition2Creation().

{ myCreationCmd = cmd; }

Field Documentation

Definition at line 158 of file SMESH_2smeshpy.hxx.

Referenced by GetNbCalls(), and Process().

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