#include <LStoreFile.h>
Classes | |
class | MutexWrapper |
Public Member Functions | |
virtual void | abort (void) |
void | close (void) override |
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) |
LStoreFile (const char *name, int flags=IOFlags::OpenRead, int perms=0666) | |
LStoreFile (const std::string &name, int flags=IOFlags::OpenRead, int perms=0666) | |
LStoreFile (void *fd) | |
LStoreFile (void) | |
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 |
virtual IOOffset | position (IOOffset offset, Relative whence=SET)=0 |
virtual IOOffset | position (void) const |
IOSize | read (IOBuffer into, IOOffset pos) |
IOSize | read (void *into, IOSize n) override |
virtual IOSize | read (void *into, IOSize n, IOOffset pos) |
void | resize (IOOffset size) override |
IOSize | write (const void *from, IOSize n) override |
virtual IOSize | write (const void *from, IOSize n, IOOffset pos) |
IOSize | write (IOBuffer from, IOOffset pos) |
~LStoreFile (void) override | |
Public Member Functions inherited from Storage | |
virtual bool | eof (void) const |
virtual void | flush (void) |
virtual IOOffset | position (void) const |
virtual bool | prefetch (const IOPosBuffer *what, IOSize n) |
IOSize | read (IOBuffer into) |
IOSize | read (IOBuffer into, IOOffset pos) |
virtual IOSize | read (void *into, IOSize n)=0 |
virtual IOSize | read (void *into, IOSize n, IOOffset pos) |
int | read (void) |
virtual IOSize | readv (IOBuffer *into, IOSize buffers) |
virtual IOSize | readv (IOPosBuffer *into, IOSize buffers) |
virtual void | rewind (void) |
virtual IOOffset | size (void) const |
Storage (void) | |
virtual IOSize | write (const void *from, IOSize n)=0 |
virtual IOSize | write (const void *from, IOSize n, IOOffset pos) |
IOSize | write (IOBuffer from) |
IOSize | write (IOBuffer from, IOOffset pos) |
IOSize | write (unsigned char byte) |
virtual IOSize | writev (const IOBuffer *from, IOSize buffers) |
virtual IOSize | writev (const IOPosBuffer *from, IOSize buffers) |
~Storage (void) override | |
Public Member Functions inherited from IOInput | |
IOSize | read (IOBuffer into) |
int | read (void) |
virtual IOSize | readv (IOBuffer *into, IOSize buffers) |
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... | |
Public Member Functions inherited from IOOutput | |
IOSize | write (IOBuffer from) |
IOSize | write (unsigned char byte) |
virtual IOSize | writev (const IOBuffer *from, IOSize buffers) |
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... | |
Static Public Attributes | |
static pthread_mutex_t | m_dlopen_lock = PTHREAD_MUTEX_INITIALIZER |
Private Member Functions | |
void | closeLibrary () |
void | loadLibrary () |
Private Attributes | |
bool | m_close |
void * | m_fd |
bool | m_is_loaded |
void * | m_library_handle |
std::string | m_name |
int32_t(* | redd_close )(void *) |
int32_t(* | redd_errno )() |
int32_t(* | redd_init )() |
int64_t(* | redd_lseek )(void *, int64_t, uint32_t) |
void *(* | redd_open )(const char *, int32_t, int32_t) |
int64_t(* | redd_read )(void *, char *, int64_t) |
const std::string &(* | redd_strerror )() |
int32_t(* | redd_term )() |
int64_t(* | redd_write )(void *, const char *, int64_t) |
Additional Inherited Members | |
Public Types inherited from Storage | |
enum | Relative { SET, CURRENT, END } |
Definition at line 8 of file LStoreFile.h.
LStoreFile::LStoreFile | ( | void | ) |
LStoreFile::LStoreFile | ( | void * | fd | ) |
LStoreFile::LStoreFile | ( | const char * | name, |
int | flags = IOFlags::OpenRead , |
||
int | perms = 0666 |
||
) |
Definition at line 52 of file LStoreFile.cc.
References HLT_FULL_cff::flags, loadLibrary(), Skims_PA_cff::name, and open().
LStoreFile::LStoreFile | ( | const std::string & | name, |
int | flags = IOFlags::OpenRead , |
||
int | perms = 0666 |
||
) |
Definition at line 58 of file LStoreFile.cc.
References HLT_FULL_cff::flags, loadLibrary(), Skims_PA_cff::name, and open().
|
override |
|
virtual |
|
overridevirtual |
Reimplemented from Storage.
Definition at line 208 of file LStoreFile.cc.
References m_close, m_fd, m_name, redd_close, and redd_errno.
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), and open().
|
private |
Definition at line 116 of file LStoreFile.cc.
References MillePedeFileConverter_cfg::e, Exception, m_dlopen_lock, m_is_loaded, m_library_handle, and redd_term.
Referenced by ~LStoreFile().
|
virtual |
Definition at line 141 of file LStoreFile.cc.
References generator_cfi::exclusive, Skims_PA_cff::name, open(), IOFlags::OpenCreate, IOFlags::OpenExclusive, IOFlags::OpenTruncate, and IOFlags::OpenWrite.
|
virtual |
Definition at line 147 of file LStoreFile.cc.
References generator_cfi::exclusive, Skims_PA_cff::name, open(), IOFlags::OpenCreate, IOFlags::OpenExclusive, IOFlags::OpenTruncate, and IOFlags::OpenWrite.
|
private |
Definition at line 84 of file LStoreFile.cc.
References Exception, m_dlopen_lock, m_is_loaded, m_library_handle, redd_errno, redd_init, REDD_LOAD_SYMBOL, redd_lseek, redd_open, redd_read, redd_strerror, redd_term, redd_write, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by LStoreFile().
|
virtual |
Definition at line 157 of file LStoreFile.cc.
References close(), TauDecayModes::dec, Exception, HLT_FULL_cff::flags, m_close, m_fd, m_name, Skims_PA_cff::name, O_NONBLOCK, IOFlags::OpenAppend, IOFlags::OpenCreate, IOFlags::OpenExclusive, IOFlags::OpenNonBlock, IOFlags::OpenRead, IOFlags::OpenTruncate, IOFlags::OpenWrite, redd_errno, and redd_open.
Referenced by create(), LStoreFile(), and open().
|
virtual |
Definition at line 153 of file LStoreFile.cc.
References HLT_FULL_cff::flags, Skims_PA_cff::name, and open().
Implements Storage.
Definition at line 263 of file LStoreFile.cc.
References Storage::CURRENT, Storage::END, Exception, m_fd, m_name, hltrates_dqm_sourceclient-live_cfg::offset, redd_errno, redd_lseek, mps_fire::result, and Storage::SET.
Referenced by LStoreStorageMaker::check().
virtual IOOffset Storage::position |
IOOffset Storage::position |
Definition at line 72 of file Storage.cc.
IOSize Storage::read |
Definition at line 10 of file Storage.cc.
Read into into at most n number of bytes.
If this is a blocking stream, the call will block until some data can be read, end of input is reached, or an exception is thrown. For a non-blocking stream the available input is returned. If none is available, an exception is thrown.
In | case of error, a #IOError exception is thrown. This includes the situation where the input stream is in non-blocking mode and no input is currently available (FIXME: make this simpler; clarify which exception). |
Implements IOInput.
Definition at line 234 of file LStoreFile.cc.
References fileCollector::done, Exception, m_fd, m_name, dqmiodumpmetadata::n, redd_errno, redd_strerror, and alignCSCRings::s.
IOSize Storage::read |
Definition at line 12 of file Storage.cc.
|
overridevirtual |
Implements Storage.
Definition at line 278 of file LStoreFile.cc.
Write n bytes of data starting at address from.
In | case of error, an exception is thrown. However if the stream is in non-blocking mode and cannot accept output, it will not throw an exception – the return value will be less than requested. |
Implements IOOutput.
Definition at line 247 of file LStoreFile.cc.
References fileCollector::done, Exception, m_fd, m_name, dqmiodumpmetadata::n, redd_errno, redd_strerror, and alignCSCRings::s.
IOSize Storage::write |
Definition at line 44 of file Storage.cc.
IOSize Storage::write |
Definition at line 42 of file Storage.cc.
|
private |
Definition at line 52 of file LStoreFile.h.
Referenced by abort(), close(), open(), and ~LStoreFile().
|
static |
Definition at line 41 of file LStoreFile.h.
Referenced by closeLibrary(), and loadLibrary().
|
private |
Definition at line 51 of file LStoreFile.h.
Referenced by abort(), close(), open(), position(), read(), and write().
|
private |
Definition at line 55 of file LStoreFile.h.
Referenced by closeLibrary(), and loadLibrary().
|
private |
Definition at line 54 of file LStoreFile.h.
Referenced by closeLibrary(), and loadLibrary().
|
private |
Definition at line 53 of file LStoreFile.h.
Referenced by close(), open(), position(), read(), resize(), write(), and ~LStoreFile().
|
private |
Definition at line 62 of file LStoreFile.h.
Referenced by close().
|
private |
Definition at line 67 of file LStoreFile.h.
Referenced by close(), loadLibrary(), open(), position(), read(), and write().
|
private |
Definition at line 60 of file LStoreFile.h.
Referenced by loadLibrary().
|
private |
Definition at line 63 of file LStoreFile.h.
Referenced by loadLibrary(), and position().
|
private |
Definition at line 64 of file LStoreFile.h.
Referenced by loadLibrary(), and open().
|
private |
Definition at line 61 of file LStoreFile.h.
Referenced by loadLibrary().
|
private |
Definition at line 68 of file LStoreFile.h.
Referenced by loadLibrary(), read(), and write().
|
private |
Definition at line 66 of file LStoreFile.h.
Referenced by closeLibrary(), and loadLibrary().
|
private |
Definition at line 65 of file LStoreFile.h.
Referenced by loadLibrary().