Version: 9.12.0
SALOMEDS_StudyBuilder_i Class Reference

#include <SALOMEDS_StudyBuilder_i.hxx>

Inheritance diagram for SALOMEDS_StudyBuilder_i:

Public Member Functions

 SALOMEDS_StudyBuilder_i (SALOMEDSImpl_StudyBuilder *, CORBA::ORB_ptr)
 Function : constructor Purpose : More...
 
 ~SALOMEDS_StudyBuilder_i ()
 Function : destructor Purpose : More...
 
virtual PortableServer::POA_ptr _default_POA ()
 Get default POA for the servant object. More...
 
virtual SALOMEDS::SComponent_ptr NewComponent (const char *ComponentDataType)
 NewComponent. More...
 
virtual void DefineComponentInstance (SALOMEDS::SComponent_ptr, CORBA::Object_ptr ComponentIOR)
 DefineComponentInstance. More...
 
virtual void RemoveComponent (SALOMEDS::SComponent_ptr aComponent)
 <long-description> More...
 
virtual SALOMEDS::SObject_ptr NewObject (SALOMEDS::SObject_ptr theFatherObject)
 <long-description> More...
 
virtual SALOMEDS::SObject_ptr NewObjectToTag (SALOMEDS::SObject_ptr theFatherObject, CORBA::Long atag)
 <long-description> More...
 
virtual void LoadWith (SALOMEDS::SComponent_ptr sco, SALOMEDS::Driver_ptr Engine)
 Function : LoadWith Purpose : More...
 
virtual void Load (SALOMEDS::SObject_ptr sco)
 Function : Load Purpose : More...
 
virtual void RemoveObject (SALOMEDS::SObject_ptr anObject)
 Function : RemoveObject Purpose : More...
 
virtual void RemoveObjectWithChildren (SALOMEDS::SObject_ptr anObject)
 Function : RemoveObjectWithChildren Purpose : More...
 
virtual SALOMEDS::GenericAttribute_ptr FindOrCreateAttribute (SALOMEDS::SObject_ptr anObject, const char *aTypeOfAttribute)
 Function : FindOrCreateAttribute Purpose : Add attribute of given type to SObject, if there is attribute of such type, returns existing one. More...
 
virtual CORBA::Boolean FindAttribute (SALOMEDS::SObject_ptr anObject, SALOMEDS::GenericAttribute_out anAttribute, const char *aTypeOfAttribute)
 Function : FindAttribute Purpose : Find attribute of given type assigned SObject, returns true if it is found. More...
 
virtual void RemoveAttribute (SALOMEDS::SObject_ptr anObject, const char *aTypeOfAttribute)
 Function : RemoveAttribute Purpose : Remove attribute of given type assigned SObject. More...
 
virtual void Addreference (SALOMEDS::SObject_ptr me, SALOMEDS::SObject_ptr thereferencedObject)
 Function : Addreference Purpose : More...
 
virtual void RemoveReference (SALOMEDS::SObject_ptr me)
 Function : RemoveReference Purpose : More...
 
virtual void SetGUID (SALOMEDS::SObject_ptr anObject, const char *theGUID)
 Function : SetGUID Purpose : More...
 
virtual bool IsGUID (SALOMEDS::SObject_ptr anObject, const char *theGUID)
 Function : IsGUID Purpose : More...
 
virtual void NewCommand ()
 Function : NewCommand Purpose : More...
 
virtual void CommitCommand ()
 Function : CommitCommand Purpose : More...
 
virtual CORBA::Boolean HasOpenCommand ()
 Function : HasOpenCommand Purpose : More...
 
virtual void AbortCommand ()
 Function : AbortCommand Purpose : More...
 
virtual void Undo ()
 Function : Undo Purpose : More...
 
virtual void Redo ()
 Function : Redo Purpose : More...
 
CORBA::Boolean GetAvailableUndos ()
 Function : GetAvailableUndos Purpose : More...
 
CORBA::Boolean GetAvailableRedos ()
 Function : GetAvailableRedos Purpose : More...
 
CORBA::Boolean IsSaved ()
 
CORBA::Boolean IsModified ()
 
virtual CORBA::Long UndoLimit ()
 Function : UndoLimit Purpose : More...
 
virtual void UndoLimit (CORBA::Long)
 Function : UndoLimit Purpose : More...
 
void CheckLocked ()
 Function : CheckLocked Purpose : More...
 
virtual void SetName (SALOMEDS::SObject_ptr theSO, const char *theValue)
 Function : SetName Purpose : More...
 
virtual void SetComment (SALOMEDS::SObject_ptr theSO, const char *theValue)
 Function : SetComment Purpose : More...
 
virtual void SetIOR (SALOMEDS::SObject_ptr theSO, const char *theValue)
 Function : SetIOR Purpose : More...
 
SALOMEDSImpl_StudyBuilderGetImpl ()
 

Private Attributes

CORBA::ORB_var _orb
 
SALOMEDSImpl_StudyBuilder_impl
 

Constructor & Destructor Documentation

◆ SALOMEDS_StudyBuilder_i()

SALOMEDS::StudyBuilder::LockProtection SALOMEDS_StudyBuilder_i::SALOMEDS_StudyBuilder_i ( SALOMEDSImpl_StudyBuilder theImpl,
CORBA::ORB_ptr  orb 
)

Function : constructor Purpose :

References salome::orb.

◆ ~SALOMEDS_StudyBuilder_i()

SALOMEDS_StudyBuilder_i::~SALOMEDS_StudyBuilder_i ( )

Function : destructor Purpose :

Member Function Documentation

◆ _default_POA()

PortableServer::POA_ptr SALOMEDS_StudyBuilder_i::_default_POA ( )
virtual

Get default POA for the servant object.

This function is implicitly called from "_this()" function. Default POA can be set via the constructor.

Returns
reference to the default POA for the servant

References SALOMEDS_Study_i::GetThePOA(), MESSAGE, and SALOME_ContainerPy::poa.

◆ AbortCommand()

void SALOMEDS_StudyBuilder_i::AbortCommand ( )
virtual

Function : AbortCommand Purpose :

References _impl, SALOMEDSImpl_StudyBuilder::AbortCommand(), and SALOMEDS::lock().

◆ Addreference()

void SALOMEDS_StudyBuilder_i::Addreference ( SALOMEDS::SObject_ptr  me,
SALOMEDS::SObject_ptr  thereferencedObject 
)
virtual

◆ CheckLocked()

◆ CommitCommand()

void SALOMEDS_StudyBuilder_i::CommitCommand ( )
virtual

Function : CommitCommand Purpose :

References _impl, SALOMEDSImpl_StudyBuilder::CommitCommand(), SALOMEDS::lock(), and MESSAGE.

◆ DefineComponentInstance()

void SALOMEDS_StudyBuilder_i::DefineComponentInstance ( SALOMEDS::SComponent_ptr  aComponent,
CORBA::Object_ptr  ComponentIOR 
)
virtual

DefineComponentInstance.

Function : DefineComponentInstance Purpose : Add IOR attribute of a Scomponent.

Parameters
SComponent_ptr
ComponentIOR

References _impl, _orb, CheckLocked(), SALOMEDSImpl_StudyBuilder::DefineComponentInstance(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSComponent(), and SALOMEDS::lock().

◆ FindAttribute()

CORBA::Boolean SALOMEDS_StudyBuilder_i::FindAttribute ( SALOMEDS::SObject_ptr  anObject,
SALOMEDS::GenericAttribute_out  anAttribute,
const char *  aTypeOfAttribute 
)
virtual

Function : FindAttribute Purpose : Find attribute of given type assigned SObject, returns true if it is found.

References _impl, _orb, ASSERT, SALOMEDS_GenericAttribute_i::CreateAttribute(), SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSObject(), and SALOMEDS::lock().

◆ FindOrCreateAttribute()

SALOMEDS::GenericAttribute_ptr SALOMEDS_StudyBuilder_i::FindOrCreateAttribute ( SALOMEDS::SObject_ptr  anObject,
const char *  aTypeOfAttribute 
)
virtual

Function : FindOrCreateAttribute Purpose : Add attribute of given type to SObject, if there is attribute of such type, returns existing one.

References _impl, _orb, SALOMEDS_GenericAttribute_i::CreateAttribute(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSObject(), and SALOMEDS::lock().

◆ GetAvailableRedos()

CORBA::Boolean SALOMEDS_StudyBuilder_i::GetAvailableRedos ( )

Function : GetAvailableRedos Purpose :

References _impl, SALOMEDSImpl_StudyBuilder::GetAvailableRedos(), and SALOMEDS::lock().

◆ GetAvailableUndos()

CORBA::Boolean SALOMEDS_StudyBuilder_i::GetAvailableUndos ( )

Function : GetAvailableUndos Purpose :

References _impl, SALOMEDSImpl_StudyBuilder::GetAvailableUndos(), and SALOMEDS::lock().

◆ GetImpl()

SALOMEDSImpl_StudyBuilder* SALOMEDS_StudyBuilder_i::GetImpl ( )

◆ HasOpenCommand()

CORBA::Boolean SALOMEDS_StudyBuilder_i::HasOpenCommand ( )
virtual

Function : HasOpenCommand Purpose :

References _impl, SALOMEDSImpl_StudyBuilder::HasOpenCommand(), and SALOMEDS::lock().

◆ IsGUID()

bool SALOMEDS_StudyBuilder_i::IsGUID ( SALOMEDS::SObject_ptr  anObject,
const char *  theGUID 
)
virtual

◆ IsModified()

CORBA::Boolean SALOMEDS_StudyBuilder_i::IsModified ( )

◆ IsSaved()

CORBA::Boolean SALOMEDS_StudyBuilder_i::IsSaved ( )

◆ Load()

void SALOMEDS_StudyBuilder_i::Load ( SALOMEDS::SObject_ptr  sco)
virtual

Function : Load Purpose :

References MESSAGE.

Referenced by SALOME_DriverPy.SALOME_DriverPy_i::LoadASCII().

◆ LoadWith()

void SALOMEDS_StudyBuilder_i::LoadWith ( SALOMEDS::SComponent_ptr  sco,
SALOMEDS::Driver_ptr  Engine 
)
virtual

◆ NewCommand()

void SALOMEDS_StudyBuilder_i::NewCommand ( )
virtual

Function : NewCommand Purpose :

References _impl, SALOMEDS::lock(), and SALOMEDSImpl_StudyBuilder::NewCommand().

◆ NewComponent()

SALOMEDS::SComponent_ptr SALOMEDS_StudyBuilder_i::NewComponent ( const char *  ComponentDataType)
virtual

NewComponent.

Function : NewComponent Purpose : Create a new component (Scomponent)

Parameters
ComponentDataType
Returns
<ReturnValue>

References _impl, _orb, CheckLocked(), SALOMEDSImpl_SObject::IsNull(), SALOMEDS::lock(), SALOMEDS_SComponent_i::New(), and SALOMEDSImpl_StudyBuilder::NewComponent().

◆ NewObject()

SALOMEDS::SObject_ptr SALOMEDS_StudyBuilder_i::NewObject ( SALOMEDS::SObject_ptr  theFatherObject)
virtual

<long-description>

Function : NewObject Purpose : Create a new SObject.

Parameters
theFatherObject
Returns
<ReturnValue>

References _impl, _orb, CheckLocked(), SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSObject(), SALOMEDSImpl_SObject::IsNull(), SALOMEDS::lock(), SALOMEDS_SObject_i::New(), and SALOMEDSImpl_StudyBuilder::NewObject().

◆ NewObjectToTag()

SALOMEDS::SObject_ptr SALOMEDS_StudyBuilder_i::NewObjectToTag ( SALOMEDS::SObject_ptr  theFatherObject,
CORBA::Long  atag 
)
virtual

◆ Redo()

void SALOMEDS_StudyBuilder_i::Redo ( )
virtual

Function : Redo Purpose :

References _impl, SALOMEDS::lock(), MESSAGE, and SALOMEDSImpl_StudyBuilder::Redo().

◆ RemoveAttribute()

void SALOMEDS_StudyBuilder_i::RemoveAttribute ( SALOMEDS::SObject_ptr  anObject,
const char *  aTypeOfAttribute 
)
virtual

Function : RemoveAttribute Purpose : Remove attribute of given type assigned SObject.

References _impl, ASSERT, CheckLocked(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSObject(), SALOMEDS::lock(), and SALOMEDSImpl_StudyBuilder::RemoveAttribute().

◆ RemoveComponent()

void SALOMEDS_StudyBuilder_i::RemoveComponent ( SALOMEDS::SComponent_ptr  aComponent)
virtual

<long-description>

Function : RemoveComponent Purpose : Delete a Scomponent.

Parameters
aComponent

References _impl, ASSERT, CheckLocked(), SALOMEDSImpl_StudyBuilder::GetOwner(), SALOMEDSImpl_Study::GetSComponent(), SALOMEDS::lock(), and SALOMEDSImpl_StudyBuilder::RemoveComponent().

◆ RemoveObject()

void SALOMEDS_StudyBuilder_i::RemoveObject ( SALOMEDS::SObject_ptr  anObject)
virtual

◆ RemoveObjectWithChildren()

void SALOMEDS_StudyBuilder_i::RemoveObjectWithChildren ( SALOMEDS::SObject_ptr  anObject)
virtual

◆ RemoveReference()

void SALOMEDS_StudyBuilder_i::RemoveReference ( SALOMEDS::SObject_ptr  me)
virtual

◆ SetComment()

void SALOMEDS_StudyBuilder_i::SetComment ( SALOMEDS::SObject_ptr  theSO,
const char *  theValue 
)
virtual

◆ SetGUID()

void SALOMEDS_StudyBuilder_i::SetGUID ( SALOMEDS::SObject_ptr  anObject,
const char *  theGUID 
)
virtual

◆ SetIOR()

void SALOMEDS_StudyBuilder_i::SetIOR ( SALOMEDS::SObject_ptr  theSO,
const char *  theValue 
)
virtual

◆ SetName()

void SALOMEDS_StudyBuilder_i::SetName ( SALOMEDS::SObject_ptr  theSO,
const char *  theValue 
)
virtual

◆ Undo()

void SALOMEDS_StudyBuilder_i::Undo ( )
virtual

Function : Undo Purpose :

References _impl, SALOMEDS::lock(), MESSAGE, and SALOMEDSImpl_StudyBuilder::Undo().

◆ UndoLimit() [1/2]

CORBA::Long SALOMEDS_StudyBuilder_i::UndoLimit ( )
virtual

Function : UndoLimit Purpose :

References _impl, SALOMEDS::lock(), and SALOMEDSImpl_StudyBuilder::UndoLimit().

◆ UndoLimit() [2/2]

void SALOMEDS_StudyBuilder_i::UndoLimit ( CORBA::Long  n)
virtual

Function : UndoLimit Purpose :

References _impl, CheckLocked(), SALOMEDS::lock(), and SALOMEDSImpl_StudyBuilder::UndoLimit().

Field Documentation

◆ _impl

◆ _orb