Salome HOME
ProfilesService
[modules/gde.git] / projects / GDE_API_CPP / api / src / StudyService.hpp
1 #ifndef GDE_STUDY_SERVICE_HPP
2 #define GDE_STUDY_SERVICE_HPP
3
4 #include "Study.hpp"
5 #include "GDESession.hpp"
6
7 #include <string>
8
9 namespace gde {
10
11   class StudyService {
12     friend class GDESession;
13
14   public:
15     const Study createStudy(const std::string& name);
16     bool deleteStudy(const Study&);
17
18     bool setStudyState(const Study&, int lock);
19     const Study readStudy(int studyId);
20
21   private:
22     StudyService(const GDESession& session) : _session(session) {}
23     ~StudyService() {}
24     StudyService(const StudyService&); // non copyable
25     StudyService& operator=(const StudyService&); // non copyable
26
27   private:
28     static std::string _servletName;
29     const GDESession& _session;
30
31   };
32
33 };
34
35 #endif