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

#include <TRawEventSource.h>

Inheritance diagram for TRawEventPipeSource:
TRawEventByteSource TRawEventSource TRawEventBZipSource TRawEventRingSource

Public Member Functions

 TRawEventPipeSource (const std::string &command, kFileType file_type)
 ~TRawEventPipeSource ()
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 (TRawEventPipeSource, 0)

Private Attributes

std::string fCommand
FILE * fPipe

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

TRawEventPipeSource::TRawEventPipeSource ( const std::string &  command,
kFileType  file_type 
)
TRawEventPipeSource::~TRawEventPipeSource ( )

Member Function Documentation

TRawEventPipeSource::ClassDef ( TRawEventPipeSource  ,
 
)
private
int TRawEventPipeSource::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 TRawEventPipeSource::SourceDescription ( ) const
virtual

Implements TRawEventSource.

Reimplemented in TRawEventBZipSource, and TRawEventRingSource.

Member Data Documentation

std::string TRawEventPipeSource::fCommand
private
FILE* TRawEventPipeSource::fPipe
private

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