GRUTinizer
|
#include <TRawEventSource.h>
Public Member Functions | |
TRawEventByteSource (kFileType file_type) | |
virtual std::string | Status () const |
kFileType | GetFileType () const |
long | GetFileSize () const |
![]() | |
TRawEventSource () | |
virtual | ~TRawEventSource () |
int | Read (TRawEvent &event) |
Reads the next event. | |
int | Read (TRawEvent *event) |
virtual std::string | SourceDescription () const =0 |
virtual int | GetLastErrno () const |
virtual std::string | GetLastError () const |
bool | IsFinished () const |
size_t | GetBytesGiven () const |
double | GetAverageRate () const |
Protected Member Functions | |
void | SetFileSize (long file_size) |
![]() | |
void | SetLastErrno (int error) |
void | SetLastError (std::string error) |
Private Member Functions | |
virtual int | ReadBytes (char *buf, size_t size)=0 |
Given a buffer, fill the buffer with at most size bytes. | |
virtual int | GetEvent (TRawEvent &event) |
int | FillBuffer (size_t bytes_requested) |
ClassDef (TRawEventByteSource, 0) |
Private Attributes | |
kFileType | fFileType |
TStopwatch | clock |
long | fFileSize |
TSmartBuffer | fCurrentBuffer |
size_t | fDefaultBufferSize |
Additional Inherited Members | |
![]() | |
static TRawEventSource * | EventSource (const char *filename, bool is_online=false, bool is_ring=false, kFileType file_type=DefaultFileType()) |
TRawEventByteSource::TRawEventByteSource | ( | kFileType | file_type | ) |
|
private |
|
private |
|
privatevirtual |
|
inline |
|
inline |
|
privatepure virtual |
Given a buffer, fill the buffer with at most size
bytes.
buf | The buffer to be filled. |
size | The maximum number of bytes to be read. |
Implemented in TRawEventPipeSource, TRawEventGZipSource, TRawEventFileSource, and TRawEventOnlineFileSource.
|
inlineprotected |
|
virtual |
Implements TRawEventSource.
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |