#include <RemoteFile.h>
Public Member Functions | |
~RemoteFile (void) override | |
Static Public Member Functions | |
static std::unique_ptr< Storage > | get (int localfd, const std::string &name, char **cmd, int mode) |
static int | local (const std::string &tmpdir, std::string &temp) |
Protected Member Functions | |
void | abort (void) override |
void | close (void) override |
Protected Member Functions inherited from File | |
virtual void | attach (IOFD fd) |
virtual void | create (const char *name, bool exclusive=false, int perms=0666) |
virtual void | create (const std::string &name, bool exclusive=false, int perms=0666) |
File (void) | |
File (IOFD fd, bool autoclose=true) | |
File (const char *name, int flags=IOFlags::OpenRead, int perms=0666) | |
File (const std::string &name, int flags=IOFlags::OpenRead, int perms=0666) | |
void | flush (void) override |
virtual void | open (const char *name, int flags=IOFlags::OpenRead, int perms=0666) |
virtual void | open (const std::string &name, int flags=IOFlags::OpenRead, int perms=0666) |
IOOffset | position (IOOffset offset, Relative whence=SET) override |
bool | prefetch (const IOPosBuffer *what, IOSize n) override |
IOSize | read (void *into, IOSize n) override |
IOSize | read (void *into, IOSize n, IOOffset pos) override |
IOSize | readv (IOBuffer *into, IOSize length) override |
void | resize (IOOffset size) override |
virtual void | setAutoClose (bool closeit) |
IOOffset | size (void) const override |
IOSize | write (const void *from, IOSize n) override |
IOSize | write (const void *from, IOSize n, IOOffset pos) override |
IOSize | writev (const IOBuffer *from, IOSize length) override |
~File (void) override | |
Protected Member Functions inherited from IOChannel | |
bool | sysclose (IOFD fd, int *error=nullptr) |
virtual IOFD | fd (void) const |
virtual void | fd (IOFD value) |
IOChannel (IOFD fd=-1) | |
virtual bool | isBlocking (void) const |
IOSize | read (void *into, IOSize n) override |
IOSize | readv (IOBuffer *into, IOSize buffers) override |
virtual void | setBlocking (bool value) |
IOSize | write (const void *from, IOSize n) override |
IOSize | writev (const IOBuffer *from, IOSize buffers) override |
~IOChannel (void) override | |
Protected Member Functions inherited from IOInput | |
int | read (void) |
IOSize | read (IOBuffer into) |
IOSize | xread (IOBuffer into) |
IOSize | xread (void *into, IOSize n) |
IOSize | xreadv (IOBuffer *into, IOSize buffers) |
virtual | ~IOInput (void) |
Destruct the stream. A no-op. More... | |
Protected Member Functions inherited from IOOutput | |
IOSize | write (unsigned char byte) |
IOSize | write (IOBuffer from) |
IOSize | xwrite (const void *from, IOSize n) |
IOSize | xwrite (IOBuffer from) |
IOSize | xwritev (const IOBuffer *from, IOSize buffers) |
virtual | ~IOOutput (void) |
Destruct the stream. A no-op. More... | |
Protected Member Functions inherited from Storage | |
virtual bool | eof (void) const |
virtual IOOffset | position (void) const |
IOSize | read (IOBuffer into, IOOffset pos) |
virtual IOSize | readv (IOPosBuffer *into, IOSize buffers) |
virtual void | rewind (void) |
Storage (void) | |
IOSize | write (IOBuffer from, IOOffset pos) |
virtual IOSize | writev (const IOPosBuffer *from, IOSize buffers) |
~Storage (void) override | |
Private Member Functions | |
RemoteFile (IOFD fd, const std::string &name) | |
void | remove (void) |
Private Attributes | |
std::string | name_ |
Definition at line 8 of file RemoteFile.h.
|
inlineoverride |
Definition at line 10 of file RemoteFile.h.
References abort(), close(), mps_setup::cmd, IOChannel::fd(), local(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, Skims_PA_cff::name, RemoteFile(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
|
private |
|
overrideprotectedvirtual |
Close the file and ignore all errors.
Reimplemented from File.
Definition at line 43 of file RemoteFile.cc.
References File::abort().
Referenced by ~RemoteFile().
|
overrideprotectedvirtual |
Close the file.
Reimplemented from File.
Definition at line 38 of file RemoteFile.cc.
References File::close().
Referenced by get(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), and ~RemoteFile().
|
static |
Definition at line 78 of file RemoteFile.cc.
References close(), join(), IOFlags::OpenCreate, IOFlags::OpenWrite, RemoteFile(), and throwStorageError().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), GsiFTPStorageMaker::open(), and HttpStorageMaker::open().
|
static |
Definition at line 48 of file RemoteFile.cc.
References IOChannel::fd(), and throwStorageError().
Referenced by GsiFTPStorageMaker::open(), HttpStorageMaker::open(), and ~RemoteFile().
|
private |
|
private |
Definition at line 22 of file RemoteFile.h.
Referenced by remove().