GRUTinizer
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TRawEventOnlineFileSource Class Reference

#include <TRawEventOnlineFileSource.h>

Inheritance diagram for TRawEventOnlineFileSource:
TRawEventByteSource TRawEventSource

Public Member Functions

 TRawEventOnlineFileSource (const std::string &filename, kFileType file_type)
 ~TRawEventOnlineFileSource ()
virtual int ReadBytes (char *buf, size_t size)
 Given a buffer, fill the buffer with at most size bytes.
virtual std::string SourceDescription () const
- Public Member Functions inherited from TRawEventByteSource
 TRawEventByteSource (kFileType file_type)
virtual std::string Status () const
kFileType GetFileType () const
long GetFileSize () const
- Public Member Functions inherited from TRawEventSource
 TRawEventSource ()
virtual ~TRawEventSource ()
int Read (TRawEvent &event)
 Reads the next event.
int Read (TRawEvent *event)
virtual int GetLastErrno () const
virtual std::string GetLastError () const
bool IsFinished () const
size_t GetBytesGiven () const
double GetAverageRate () const

Private Member Functions

int single_read (char *buf, size_t size)
 ClassDef (TRawEventOnlineFileSource, 0)

Private Attributes

std::string fFilename
FILE * fFile

Additional Inherited Members

- Static Public Member Functions inherited from TRawEventSource
static TRawEventSourceEventSource (const char *filename, bool is_online=false, bool is_ring=false, kFileType file_type=DefaultFileType())
- Protected Member Functions inherited from TRawEventByteSource
void SetFileSize (long file_size)

Constructor & Destructor Documentation

TRawEventOnlineFileSource::TRawEventOnlineFileSource ( const std::string &  filename,
kFileType  file_type 
)
TRawEventOnlineFileSource::~TRawEventOnlineFileSource ( )

Member Function Documentation

TRawEventOnlineFileSource::ClassDef ( TRawEventOnlineFileSource  ,
 
)
private
int TRawEventOnlineFileSource::ReadBytes ( char *  buf,
size_t  size 
)
virtual

Given a buffer, fill the buffer with at most size bytes.

Parameters
bufThe buffer to be filled.
sizeThe maximum number of bytes to be read.
Returns
The number of bytes that were read. Should return zero at end of file. Should return a negative value in the case of error.

Implements TRawEventByteSource.

int TRawEventOnlineFileSource::single_read ( char *  buf,
size_t  size 
)
private
std::string TRawEventOnlineFileSource::SourceDescription ( ) const
virtual

Implements TRawEventSource.

Member Data Documentation

FILE* TRawEventOnlineFileSource::fFile
private
std::string TRawEventOnlineFileSource::fFilename
private

The documentation for this class was generated from the following files: