|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Abstract base class for data stream I/O. More...
#include <datastream.h>
Public Member Functions | |
| datastream () | |
| virtual | ~datastream () |
| virtual long | size () |
| virtual long | position () |
| virtual long | position (long pos) |
| Seek to a position in the stream. More... | |
| virtual void | open (const char *filename) |
| Open a data source. More... | |
| virtual int | read (char *s, int size) |
| Read bytes from the stream. More... | |
Abstract base class for data stream I/O.
Provides a polymorphic interface for reading binary data from different sources (local files, XRootD remote files).
Definition at line 74 of file datastream.h.
| hipo::datastream::datastream | ( | ) |
|
virtual |
|
inlinevirtual |
Open a data source.
| filename | Path or URL of the data source |
Definition at line 98 of file datastream.h.
|
inlinevirtual |
Definition at line 91 of file datastream.h.
|
inlinevirtual |
Seek to a position in the stream.
| pos | Byte offset from the beginning |
Definition at line 95 of file datastream.h.
|
inlinevirtual |
Read bytes from the stream.
| s | Destination buffer |
| size | Number of bytes to read |
Definition at line 103 of file datastream.h.
|
inlinevirtual |
Definition at line 89 of file datastream.h.