ICP  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileEventSource Class Reference

#include <event_store.h>

Inheritance diagram for FileEventSource:
Inheritance graph

Public Member Functions

 FileEventSource (int run_number, int source_id)
 
virtual ~FileEventSource ()
 
uint32_t getNewEvents (isisU32_t *buffer, uint32_t maxlen, uint64_t &num_unread, bool &run_ended, DAEstatus &status)
 
uint64_t nNewEventWords (DAEstatus &status)
 
void updateDAEEventLastRead (DAEstatus &status)
 
int eventSourceID () const
 
const int * getDAE2SpecMap ()
 
void setLastAddressRead (isisU32_t addr)
 
isisU32_t getLastAddressRead ()
 
void readInfo (EventStore::FileEventSourceInfo &info)
 
- Public Member Functions inherited from FileEventSourceBase
virtual ~FileEventSourceBase ()
 

Private Member Functions

std::string loggingPrefix () const
 
 FileEventSource ()
 
void operator= (const FileEventSource &)
 
 FileEventSource (const FileEventSource &)
 

Private Attributes

std::string m_file_name
 
std::string m_info_file_name
 
uint64_t m_file_words
 
InfoFileData m_info
 
int m_source_id
 
SplitFile m_file
 

Additional Inherited Members

- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 238 of file event_store.h.

Constructor & Destructor Documentation

FileEventSource::FileEventSource ( int  run_number,
int  source_id 
)
FileEventSource::~FileEventSource ( )
virtual

Definition at line 802 of file event_store.cpp.

References SplitFile::close(), SplitFile::isOpen(), and m_file.

FileEventSource::FileEventSource ( )
inlineprivate

Definition at line 261 of file event_store.h.

FileEventSource::FileEventSource ( const FileEventSource )
inlineprivate

Definition at line 263 of file event_store.h.

Member Function Documentation

int FileEventSource::eventSourceID ( ) const
virtual

Implements DAEEventSource.

Definition at line 857 of file event_store.cpp.

References m_source_id.

const int * FileEventSource::getDAE2SpecMap ( )
virtual

Implements DAEEventSource.

Definition at line 862 of file event_store.cpp.

isisU32_t FileEventSource::getLastAddressRead ( )
virtual

Implements DAEEventSource.

Definition at line 867 of file event_store.cpp.

uint32_t FileEventSource::getNewEvents ( isisU32_t buffer,
uint32_t  maxlen,
uint64_t &  num_unread,
bool &  run_ended,
DAEstatus status 
)
virtual

Implements DAEEventSource.

Definition at line 810 of file event_store.cpp.

References LOGSTR_ERROR, m_file, m_file_words, nNewEventWords(), and SplitFile::read().

std::string FileEventSource::loggingPrefix ( ) const
inlineprivatevirtual

Reimplemented from ISIS::Base.

Definition at line 259 of file event_store.h.

References m_source_id.

uint64_t FileEventSource::nNewEventWords ( DAEstatus status)
virtual

Implements DAEEventSource.

Definition at line 848 of file event_store.cpp.

References InfoFileData::file_words, m_file_words, and m_info.

Referenced by getNewEvents().

void FileEventSource::operator= ( const FileEventSource )
inlineprivate

Definition at line 262 of file event_store.h.

void FileEventSource::readInfo ( EventStore::FileEventSourceInfo info)
void FileEventSource::setLastAddressRead ( isisU32_t  addr)
virtual

Implements DAEEventSource.

Definition at line 872 of file event_store.cpp.

void FileEventSource::updateDAEEventLastRead ( DAEstatus status)
virtual

Implements DAEEventSource.

Definition at line 853 of file event_store.cpp.

Member Data Documentation

SplitFile FileEventSource::m_file
private

Definition at line 245 of file event_store.h.

Referenced by FileEventSource(), getNewEvents(), and ~FileEventSource().

std::string FileEventSource::m_file_name
private

Definition at line 240 of file event_store.h.

Referenced by FileEventSource().

uint64_t FileEventSource::m_file_words
private

Definition at line 242 of file event_store.h.

Referenced by getNewEvents(), and nNewEventWords().

InfoFileData FileEventSource::m_info
private

Definition at line 243 of file event_store.h.

Referenced by FileEventSource(), nNewEventWords(), and readInfo().

std::string FileEventSource::m_info_file_name
private

Definition at line 241 of file event_store.h.

Referenced by FileEventSource().

int FileEventSource::m_source_id
private

Definition at line 244 of file event_store.h.

Referenced by eventSourceID(), and loggingPrefix().


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