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