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
TRawEventGZipSource Class Reference

#include <TRawEventGZipSource.h>

Inheritance diagram for TRawEventGZipSource:
TRawEventByteSource TRawEventSource

Public Member Functions

 TRawEventGZipSource (const std::string &filename, kFileType file_type)
 ~TRawEventGZipSource ()
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

 ClassDef (TRawEventGZipSource, 0)

Private Attributes

std::string fFilename
FILE * fFile
gzFile * fGzFile

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

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

Member Function Documentation

TRawEventGZipSource::ClassDef ( TRawEventGZipSource  ,
 
)
private
int TRawEventGZipSource::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.

std::string TRawEventGZipSource::SourceDescription ( ) const
virtual

Implements TRawEventSource.

Member Data Documentation

FILE* TRawEventGZipSource::fFile
private
std::string TRawEventGZipSource::fFilename
private
gzFile* TRawEventGZipSource::fGzFile
private

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