1 // File : SALOMEDS_StudyManager.hxx
2 // Author : Sergey RUIN
5 #ifndef __SALOMEDS_STUDYMANAGER_H__
6 #define __SALOMEDS_STUDYMANAGER_H__
11 #include "SALOMEDSClient.hxx"
12 #include "SALOMEDSImpl_StudyManager.hxx"
16 #include <SALOMEconfig.h>
17 #include CORBA_SERVER_HEADER(SALOMEDS)
19 class SALOMEDS_StudyManager: public SALOMEDSClient_StudyManager
23 Handle(SALOMEDSImpl_StudyManager) _local_impl;
24 SALOMEDS::StudyManager_var _corba_impl;
29 SALOMEDS_StudyManager(SALOMEDS::StudyManager_ptr theManager);
30 SALOMEDS_StudyManager();
31 ~SALOMEDS_StudyManager();
33 virtual _PTR(Study) NewStudy(const std::string& study_name);
34 virtual _PTR(Study) Open(const std::string& theStudyUrl);
35 virtual void Close(const _PTR(Study)& theStudy);
36 virtual void Save(const _PTR(Study)& theStudy, bool theMultiFile);
37 virtual void SaveASCII(const _PTR(Study)& theStudy, bool theMultiFile);
38 virtual void SaveAs(const std::string& theUrl, const _PTR(Study)& theStudy, bool theMultiFile);
39 virtual void SaveAsASCII(const std::string& theUrl, const _PTR(Study)& theStudy, bool theMultiFile);
40 virtual std::vector<std::string> GetOpenStudies();
41 virtual _PTR(Study) GetStudyByName(const std::string& theStudyName) ;
42 virtual _PTR(Study) GetStudyByID(int theStudyID) ;
43 virtual bool CanCopy(const _PTR(SObject)& theSO);
44 virtual bool Copy(const _PTR(SObject)& theSO);
45 virtual bool CanPaste(const _PTR(SObject)& theSO);
46 virtual _PTR(SObject) Paste(const _PTR(SObject)& theSO);