CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RemoteFile.h
Go to the documentation of this file.
1 #ifndef STORAGE_FACTORY_REMOTE_FILE_H
2 #define STORAGE_FACTORY_REMOTE_FILE_H
3 
5 #include <string>
6 #include <memory>
7 
8 namespace edm::storage {
9  class RemoteFile : protected File {
10  public:
11  ~RemoteFile(void) override { remove(); }
12 
13  static int local(const std::string &tmpdir, std::string &temp);
14  static std::unique_ptr<Storage> get(int localfd, const std::string &name, char **cmd, int mode);
15 
16  protected:
17  void close(void) override;
18  void abort(void) override;
19 
20  private:
22  void remove(void);
24  };
25 } // namespace edm::storage
26 #endif // STORAGE_FACTORY_REMOTE_FILE_H
IOFD fd() const
Definition: File.h:34
void abort(void) override
Definition: RemoteFile.cc:45
static int local(const std::string &tmpdir, std::string &temp)
Definition: RemoteFile.cc:50
~RemoteFile(void) override
Definition: RemoteFile.h:11
list cmd
Definition: mps_setup.py:244
int IOFD
Definition: IOTypes.h:23
RemoteFile(IOFD fd, const std::string &name)
Definition: RemoteFile.cc:36
void close(void) override
Definition: RemoteFile.cc:40