FRIBParallelanalysis
1.0
FrameworkforMPIParalleldataanalysisatFRIB
|
#include <DataWriter.h>
Public Member Functions | |
CDataWriter (const char *pFilename) | |
CDataWriter (int fd) | |
virtual | ~CDataWriter () |
void | writeEvent (const std::vector< std::pair< unsigned, double >> &event, std::uint64_t eventNum) |
void | writeItem (const void *pItem) |
Writes data to some sink. We assume that the parameter and variables have been set up and defined prior to our first operation as we're going to access andwrite the parameter and variable definitions to the output sink. Once that's done, we just accept data from the client and write it to our sink. We closee the sink on destruction.
frib::analysis::CDataWriter::CDataWriter | ( | const char * | pFilename | ) |
constructor
pFilename | - path to the output file. |
frib::analysis::CDataWriter::CDataWriter | ( | int | fd | ) |
constructor from fd
fd | - file descriptor already open on the output file: |
|
virtual |
destructor
void frib::analysis::CDataWriter::writeEvent | ( | const std::vector< std::pair< unsigned, double >> & | event, |
std::uint64_t | trigger | ||
) |
writeEvent Write an event that's been marshalled into a parameter #/value set of pairs.
event | -the event to write. |
void frib::analysis::CDataWriter::writeItem | ( | const void * | pItem | ) |
writeItem Write a non-event item – this is just a passthrough item.
pItem | - pointer to the item to write. |