Version: 9.16.0
SALOMEDS_StudyBuilder_i.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// File : SALOMEDS_StudyBuilder_i.hxx
24// Author : Sergey RUIN
25// Module : SALOME
26//
27#ifndef __SALOMEDS_STUDYBUILDER_I_H__
28#define __SALOMEDS_STUDYBUILDER_I_H__
29
30// std C++ headers
31#include <iostream>
32
33// IDL headers
34#include <SALOMEconfig.h>
35#include CORBA_SERVER_HEADER(SALOMEDS)
36#include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
37
39
40class SALOMEDS_StudyBuilder_i: public POA_SALOMEDS::StudyBuilder
41{
42private:
43 CORBA::ORB_var _orb;
45public:
46
48
50
51 virtual PortableServer::POA_ptr _default_POA();
52
54
58 virtual SALOMEDS::SComponent_ptr NewComponent(const char* ComponentDataType);
59
61
65 virtual void DefineComponentInstance (SALOMEDS::SComponent_ptr, CORBA::Object_ptr ComponentIOR);
66
68
73 virtual void RemoveComponent(SALOMEDS::SComponent_ptr aComponent);
74
76
82 virtual SALOMEDS::SObject_ptr NewObject(SALOMEDS::SObject_ptr theFatherObject);
84
91 virtual SALOMEDS::SObject_ptr NewObjectToTag(SALOMEDS::SObject_ptr theFatherObject, CORBA::Long atag);
92
93 virtual void LoadWith(SALOMEDS::SComponent_ptr sco, SALOMEDS::Driver_ptr Engine);
94 virtual void Load(SALOMEDS::SObject_ptr sco);
95
96 virtual void RemoveObject(SALOMEDS::SObject_ptr anObject);
97 virtual void RemoveObjectWithChildren(SALOMEDS::SObject_ptr anObject);
98
99 virtual SALOMEDS::GenericAttribute_ptr FindOrCreateAttribute(SALOMEDS::SObject_ptr anObject, const char* aTypeOfAttribute);
100 virtual CORBA::Boolean FindAttribute(SALOMEDS::SObject_ptr anObject, SALOMEDS::GenericAttribute_out anAttribute, const char* aTypeOfAttribute);
101 virtual void RemoveAttribute(SALOMEDS::SObject_ptr anObject, const char* aTypeOfAttribute);
102
103 virtual void Addreference(SALOMEDS::SObject_ptr me, SALOMEDS::SObject_ptr thereferencedObject);
104
105 virtual void RemoveReference(SALOMEDS::SObject_ptr me);
106
107 virtual void SetGUID(SALOMEDS::SObject_ptr anObject, const char* theGUID);
108 virtual bool IsGUID(SALOMEDS::SObject_ptr anObject, const char* theGUID);
109
110 virtual void NewCommand();
111 virtual void CommitCommand();
112 virtual CORBA::Boolean HasOpenCommand();
113 virtual void AbortCommand();
114 virtual void Undo();
115 virtual void Redo();
116 CORBA::Boolean GetAvailableUndos();
117 CORBA::Boolean GetAvailableRedos();
118 CORBA::Boolean IsSaved();
119 CORBA::Boolean IsModified();
120 virtual CORBA::Long UndoLimit();
121 virtual void UndoLimit(CORBA::Long);
122
123 void CheckLocked();
124
125 virtual void SetName(SALOMEDS::SObject_ptr theSO, const char* theValue);
126 virtual void SetComment(SALOMEDS::SObject_ptr theSO, const char* theValue);
127 virtual void SetIOR(SALOMEDS::SObject_ptr theSO, const char* theValue);
128
130
131};
132#endif
Definition: SALOMEDSImpl_StudyBuilder.hxx:42
Definition: SALOMEDS_StudyBuilder_i.hxx:41
virtual void DefineComponentInstance(SALOMEDS::SComponent_ptr, CORBA::Object_ptr ComponentIOR)
DefineComponentInstance.
Definition: SALOMEDS_StudyBuilder_i.cxx:110
virtual SALOMEDS::SObject_ptr NewObject(SALOMEDS::SObject_ptr theFatherObject)
<long-description>
Definition: SALOMEDS_StudyBuilder_i.cxx:142
virtual void SetGUID(SALOMEDS::SObject_ptr anObject, const char *theGUID)
Function : SetGUID Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:345
CORBA::ORB_var _orb
Definition: SALOMEDS_StudyBuilder_i.hxx:43
virtual void CommitCommand()
Function : CommitCommand Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:386
virtual void Addreference(SALOMEDS::SObject_ptr me, SALOMEDS::SObject_ptr thereferencedObject)
Function : Addreference Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:309
virtual SALOMEDS::SComponent_ptr NewComponent(const char *ComponentDataType)
NewComponent.
Definition: SALOMEDS_StudyBuilder_i.cxx:92
virtual void Undo()
Function : Undo Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:426
virtual void AbortCommand()
Function : AbortCommand Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:415
virtual CORBA::Long UndoLimit()
Function : UndoLimit Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:484
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 ...
Definition: SALOMEDS_StudyBuilder_i.cxx:271
CORBA::Boolean IsModified()
virtual void SetComment(SALOMEDS::SObject_ptr theSO, const char *theValue)
Function : SetComment Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:540
~SALOMEDS_StudyBuilder_i()
Function : destructor Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:67
virtual void LoadWith(SALOMEDS::SComponent_ptr sco, SALOMEDS::Driver_ptr Engine)
Function : LoadWith Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:209
virtual PortableServer::POA_ptr _default_POA()
Get default POA for the servant object.
Definition: SALOMEDS_StudyBuilder_i.cxx:80
virtual void RemoveComponent(SALOMEDS::SComponent_ptr aComponent)
<long-description>
Definition: SALOMEDS_StudyBuilder_i.cxx:127
void CheckLocked()
Function : CheckLocked Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:507
CORBA::Boolean GetAvailableUndos()
Function : GetAvailableUndos Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:462
virtual void NewCommand()
Function : NewCommand Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:375
virtual SALOMEDS::SObject_ptr NewObjectToTag(SALOMEDS::SObject_ptr theFatherObject, CORBA::Long atag)
<long-description>
Definition: SALOMEDS_StudyBuilder_i.cxx:162
virtual void SetName(SALOMEDS::SObject_ptr theSO, const char *theValue)
Function : SetName Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:524
virtual SALOMEDS::GenericAttribute_ptr FindOrCreateAttribute(SALOMEDS::SObject_ptr anObject, const char *aTypeOfAttribute)
Function : FindOrCreateAttribute Purpose : Add attribute of given type to SObject,...
Definition: SALOMEDS_StudyBuilder_i.cxx:243
virtual bool IsGUID(SALOMEDS::SObject_ptr anObject, const char *theGUID)
Function : IsGUID Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:360
virtual void Load(SALOMEDS::SObject_ptr sco)
Function : Load Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:232
SALOMEDSImpl_StudyBuilder * _impl
Definition: SALOMEDS_StudyBuilder_i.hxx:44
CORBA::Boolean IsSaved()
virtual void Redo()
Function : Redo Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:444
virtual void RemoveAttribute(SALOMEDS::SObject_ptr anObject, const char *aTypeOfAttribute)
Function : RemoveAttribute Purpose : Remove attribute of given type assigned SObject.
Definition: SALOMEDS_StudyBuilder_i.cxx:293
virtual CORBA::Boolean HasOpenCommand()
Function : HasOpenCommand Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:404
CORBA::Boolean GetAvailableRedos()
Function : GetAvailableRedos Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:473
virtual void RemoveReference(SALOMEDS::SObject_ptr me)
Function : RemoveReference Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:330
virtual void RemoveObjectWithChildren(SALOMEDS::SObject_ptr anObject)
Function : RemoveObjectWithChildren Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:195
SALOMEDSImpl_StudyBuilder * GetImpl()
Definition: SALOMEDS_StudyBuilder_i.hxx:129
SALOMEDS_StudyBuilder_i(SALOMEDSImpl_StudyBuilder *, CORBA::ORB_ptr)
Function : constructor Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:55
virtual void RemoveObject(SALOMEDS::SObject_ptr anObject)
Function : RemoveObject Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:181
virtual void SetIOR(SALOMEDS::SObject_ptr theSO, const char *theValue)
Function : SetIOR Purpose :
Definition: SALOMEDS_StudyBuilder_i.cxx:556