HIPO4 C++ Library 4.4.1
Columnar I/O library for CLAS12 physics data
Loading...
Searching...
No Matches
hipo::writer Class Reference

READER index class is used to construct entire events sequence from all records, and provides ability to canAdvance through events where record number is automatically calculated and triggers reading of the next record when events in the current record are exhausted. More...

#include <writer.h>

Public Member Functions

 writer ()
 
virtual ~writer ()
 
void addEvent (hipo::event &hevent)
 
void addEvent (std::vector< char > &vec, int size=-1)
 
void addUserConfig (std::string key, std::string value)
 
void addUserConfig (const char *key, const char *value)
 
void writeRecord (recordbuilder &builder)
 
void open (const char *filename)
 Open a File for writing, it includes the dictionary in the file.
 
void close ()
 
void showSummary ()
 
void addDictionary (hipo::dictionary &dict)
 
hipo::dictionarygetDictionary ()
 
void setUserIntegerOne (long userIntOne)
 
void setUserIntegerTwo (long userIntTwo)
 
void flush ()
 
void setVerbose (int level)
 

Detailed Description

READER index class is used to construct entire events sequence from all records, and provides ability to canAdvance through events where record number is automatically calculated and triggers reading of the next record when events in the current record are exhausted.

Constructor & Destructor Documentation

◆ writer()

hipo::writer::writer ( )
inline

◆ ~writer()

virtual hipo::writer::~writer ( )
inlinevirtual

Member Function Documentation

◆ addEvent() [1/2]

void hipo::writer::addEvent ( hipo::event hevent)

◆ addEvent() [2/2]

void hipo::writer::addEvent ( std::vector< char > &  vec,
int  size = -1 
)

◆ addUserConfig() [1/2]

void hipo::writer::addUserConfig ( std::string  key,
std::string  value 
)
inline

◆ addUserConfig() [2/2]

void hipo::writer::addUserConfig ( const char *  key,
const char *  value 
)
inline

◆ writeRecord()

void hipo::writer::writeRecord ( recordbuilder builder)

◆ open()

void hipo::writer::open ( const char *  filename)

Open a File for writing, it includes the dictionary in the file.

◆ close()

void hipo::writer::close ( )

◆ showSummary()

void hipo::writer::showSummary ( )

◆ addDictionary()

void hipo::writer::addDictionary ( hipo::dictionary dict)

◆ getDictionary()

hipo::dictionary & hipo::writer::getDictionary ( )
inline

◆ setUserIntegerOne()

void hipo::writer::setUserIntegerOne ( long  userIntOne)

◆ setUserIntegerTwo()

void hipo::writer::setUserIntegerTwo ( long  userIntTwo)

◆ flush()

void hipo::writer::flush ( )

◆ setVerbose()

void hipo::writer::setVerbose ( int  level)
inline

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