|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Data stream implementation for XRootD remote file access. More...
#include <datastream.h>
Public Member Functions | |
| datastreamXrootd () | |
| Default constructor. More... | |
| ~datastreamXrootd () | |
| Destructor; closes the remote connection. More... | |
| long | size () |
| long | position () |
| long | position (long pos) |
| Seek to the given byte position. More... | |
| void | open (const char *filename) |
| Open a remote file via XRootD. More... | |
| int | read (char *s, int size) |
| Read bytes from the remote file. More... | |
Data stream implementation for XRootD remote file access.
Definition at line 153 of file datastream.h.
| hipo::datastreamXrootd::datastreamXrootd | ( | ) |
Default constructor.
The constructor for reader, printWarning routine will printout a warning message if the library was not compiled with compression libraries LZ4 or GZIP
Definition at line 51 of file datastream.cpp.
| hipo::datastreamXrootd::~datastreamXrootd | ( | ) |
Destructor; closes the remote connection.
Default destructor. Does nothing
Definition at line 61 of file datastream.cpp.
| void hipo::datastreamXrootd::open | ( | const char * | filename | ) |
Open a remote file via XRootD.
| filename | XRootD URL of the file |
Definition at line 68 of file datastream.cpp.
| long hipo::datastreamXrootd::position | ( | ) |
Definition at line 87 of file datastream.cpp.
| long hipo::datastreamXrootd::position | ( | long | pos | ) |
Seek to the given byte position.
| pos | Byte offset from the beginning |
Definition at line 88 of file datastream.cpp.
| int hipo::datastreamXrootd::read | ( | char * | s, |
| int | size | ||
| ) |
Read bytes from the remote file.
| s | Destination buffer |
| size | Number of bytes to read |
Definition at line 89 of file datastream.cpp.
| long hipo::datastreamXrootd::size | ( | ) |
Definition at line 76 of file datastream.cpp.