CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
7 class RemoteFile : protected File
8 {
9 public:
10  ~RemoteFile (void) { remove (); }
11 
12  static int local (const std::string &tmpdir, std::string &temp);
13  static Storage *get (int localfd, const std::string &name,
14  char **cmd, int mode);
15 
16 protected:
17  virtual void close (void);
18  virtual void abort (void);
19 
20 private:
21  RemoteFile (IOFD fd, const std::string &name);
22  void remove (void);
23  std::string name_;
24 };
25 
26 #endif // STORAGE_FACTORY_REMOTE_FILE_H
RemoteFile(IOFD fd, const std::string &name)
Definition: RemoteFile.cc:37
Definition: Storage.h:8
virtual void abort(void)
Definition: RemoteFile.cc:51
static int local(const std::string &tmpdir, std::string &temp)
Definition: RemoteFile.cc:55
virtual void close(void)
Definition: RemoteFile.cc:47
string cmd
Definition: asciidump.py:19
~RemoteFile(void)
Definition: RemoteFile.h:10
std::string name_
Definition: RemoteFile.h:23
int mode
Definition: AMPTWrapper.h:139
int IOFD
Definition: IOTypes.h:22
virtual IOFD fd(void) const
Definition: IOChannel.cc:73
Definition: File.h:11