Salome HOME
BugID: IPAL9392, modified methods GetRowUnits.
[modules/kernel.git] / src / SALOMEDSClient / SALOMEDSClient_StudyBuilder.hxx
1 //  File   : SALOMEDSClient_StudyBuilder.hxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #ifndef __SALOMEDSClient_STUDYBUILDER_H__
6 #define __SALOMEDSClient_STUDYBUILDER_H__
7
8 #include "SALOMEDSClient_definitions.hxx"
9 #include "SALOMEDSClient_SObject.hxx"
10 #include "SALOMEDSClient_SComponent.hxx"
11 #include "SALOMEDSClient_GenericAttribute.hxx"
12 #include <string> 
13
14 class SALOMEDSClient_StudyBuilder
15 {
16 public:
17   virtual ~SALOMEDSClient_StudyBuilder() {}
18
19   virtual _PTR(SComponent) NewComponent(const std::string& ComponentDataType) = 0;
20   virtual void DefineComponentInstance (const _PTR(SComponent)&, const std::string& ComponentIOR) = 0;
21   virtual void RemoveComponent(const _PTR(SComponent)& theSCO) = 0;
22   virtual _PTR(SObject) NewObject(const _PTR(SObject)& theFatherObject) = 0;
23   virtual _PTR(SObject) NewObjectToTag(const _PTR(SObject)& theFatherObject, int theTag) = 0;
24   virtual void AddDirectory(const std::string& thePath) = 0;
25   virtual void LoadWith(const _PTR(SComponent)& theSCO, const std::string& theIOR) = 0;
26   virtual void Load(const _PTR(SObject)& theSCO) = 0;
27   virtual void RemoveObject(const _PTR(SObject)& theSO) = 0;
28   virtual void RemoveObjectWithChildren(const _PTR(SObject)& theSO) = 0;
29   virtual _PTR(GenericAttribute) FindOrCreateAttribute(const _PTR(SObject)& theSO, const std::string& aTypeOfAttribute) = 0;
30   virtual bool FindAttribute(const _PTR(SObject)& theSO, 
31                              _PTR(GenericAttribute)& theAttribute, 
32                              const std::string& aTypeOfAttribute) = 0;
33   virtual void RemoveAttribute(const _PTR(SObject)& theSO, const std::string& aTypeOfAttribute) = 0;
34   virtual void Addreference(const _PTR(SObject)& me, const _PTR(SObject)& thereferencedObject) = 0;
35   virtual void RemoveReference(const _PTR(SObject)& me) = 0;
36   virtual void SetGUID(const _PTR(SObject)& theSO, const std::string& theGUID) = 0;
37   virtual bool IsGUID(const _PTR(SObject)& theSO, const std::string& theGUID) = 0;
38   virtual void NewCommand() = 0;
39   virtual void CommitCommand()= 0;
40   virtual bool HasOpenCommand() = 0;
41   virtual void AbortCommand() = 0;
42   virtual void Undo() = 0;
43   virtual void Redo() = 0;
44   virtual bool GetAvailableUndos() = 0;
45   virtual bool GetAvailableRedos() = 0;
46   virtual int UndoLimit() = 0;
47   virtual void UndoLimit(int theLimit) = 0;
48   virtual void SetName(const _PTR(SObject)& theSO, const std::string& theValue) = 0;
49   virtual void SetComment(const _PTR(SObject)& theSO, const std::string& theValue) = 0;
50   virtual void SetIOR(const _PTR(SObject)& theSO, const std::string& theValue) = 0;
51 };
52
53 #endif