1 #ifndef __JNET__JSELECTWRITER__
2 #define __JNET__JSELECTWRITER__
4 #include <sys/select.h>
19 namespace JPP {
using namespace JNET; }
112 if (errno != EINTR) {
bool select(const Trk &trk, const Evt &evt)
Event selection.
JFileDescriptorMask writerMask
then usage $script[< detector identifier >< run range >]< QA/QCfile > nExample script to produce data quality plots nWhen a detector identifier and run range are data are downloaded from the database nand subsequently stored in the given QA QC file
bool has(const int file_descriptor) const
Has file descriptor.
void set(const int file_descriptor)
Set file descriptor.
JFileDescriptorMask & getWriterMask()
Get writer mask.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
void setWriterMask(const JAbstractFile &file)
Set writer mask.
JSelectWriter()
Default constructor.
int operator()(JTimeval timeout)
Select call.
Exception for select call.
Auxiliary class for time values.
void reset(const bool option=true)
Reset mask.
Auxiliary class for method select.
The JAbstractFile class encapsulates the c-style file descriptor.
int getNumberOfFileDescriptors() const
Get number of file descriptors.
int operator()(timeval *timeout=NULL)
Select call.
bool hasWriterMask(const JAbstractFile &file) const
Has writer file.
Wrapper class for select call.