Utilities
StorageFactory
interface
RemoteFile.h
Go to the documentation of this file.
1
#ifndef STORAGE_FACTORY_REMOTE_FILE_H
2
#define STORAGE_FACTORY_REMOTE_FILE_H
3
4
#include "
Utilities/StorageFactory/interface/File.h
"
5
#include <string>
6
#include <memory>
7
8
class
RemoteFile
:
protected
File
{
9
public
:
10
~RemoteFile
(
void
)
override
{
remove
(); }
11
12
static
int
local
(
const
std::string
&tmpdir,
std::string
&
temp
);
13
static
std::unique_ptr<Storage>
get
(
int
localfd,
const
std::string
&
name
,
char
**
cmd
,
int
mode
);
14
15
protected
:
16
void
close
(
void
)
override
;
17
void
abort
(
void
)
override
;
18
19
private
:
20
RemoteFile
(
IOFD
fd
,
const
std::string
&
name
);
21
void
remove
(
void
);
22
std::string
name_
;
23
};
24
25
#endif // STORAGE_FACTORY_REMOTE_FILE_H
mps_setup.cmd
list cmd
Definition:
mps_setup.py:244
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition:
ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
RemoteFile
Definition:
RemoteFile.h:8
groupFilesInBlocks.temp
list temp
Definition:
groupFilesInBlocks.py:142
File
Definition:
File.h:11
RemoteFile::~RemoteFile
~RemoteFile(void) override
Definition:
RemoteFile.h:10
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
RemoteFile::get
static std::unique_ptr< Storage > get(int localfd, const std::string &name, char **cmd, int mode)
Definition:
RemoteFile.cc:78
IOFD
int IOFD
Definition:
IOTypes.h:22
RemoteFile::abort
void abort(void) override
Definition:
RemoteFile.cc:43
RemoteFile::RemoteFile
RemoteFile(IOFD fd, const std::string &name)
Definition:
RemoteFile.cc:34
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
RemoteFile::remove
void remove(void)
Definition:
RemoteFile.cc:36
RemoteFile::local
static int local(const std::string &tmpdir, std::string &temp)
Definition:
RemoteFile.cc:48
IOChannel::fd
virtual IOFD fd(void) const
Definition:
IOChannel.cc:69
RemoteFile::close
void close(void) override
Definition:
RemoteFile.cc:38
File.h
RemoteFile::name_
std::string name_
Definition:
RemoteFile.h:22
Generated for CMSSW Reference Manual by
1.8.16