1 #ifndef __JLANG__JFILESTREAMBUFFER__ 
    2 #define __JLANG__JFILESTREAMBUFFER__ 
   17 namespace JPP { 
using namespace JLANG; }
 
   27     public    virtual std::streambuf
 
   43                            const std::size_t    size = 65536,
 
   44                            const std::size_t    put_back = 8) :
 
   48       resize(size + put_back),
 
   62       if (gptr() >= egptr()) {
 
   64         char* __begin = this->
data();
 
   66         if (eback() == __begin) { 
 
   75         const size_t len = 
in.
read(__begin, this->size() - (__begin - this->
data()));
 
   78           setg(this->
data(), __begin, __begin + len);
 
   80           return traits_type::eof();
 
  116     public    virtual std::streambuf
 
  132                             const std::size_t    size = 65536) :
 
  139       setp(this->
data(), this->
data() + this->size() - 1);
 
  161       if (c != traits_type::eof()) {
 
  167         if (
flush() == traits_type::eof()) {
 
  168           return traits_type::eof();
 
  181       if (
flush() == traits_type::eof())
 
  206       const int len = pptr() - pbase();
 
  211           return traits_type::eof();
 
  250                       const std::size_t    size = 65536,
 
  251                       const std::size_t    put_back = 8) :
 
Input and output file stream buffer. 
 
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
 
virtual int sync() override
Synchronise buffer. 
 
static JTimeval min()
Get minimal time value. 
 
then usage $script< detector file >< detectorfile > nIf the range of floors is the first detector file is aligned to the second before the comparison nIn this
 
virtual int read(char *buffer, const int length)
Read data from file. 
 
JFileStreamBuffer(const JAbstractFile &in, const JAbstractFile &out, const std::size_t size=65536, const std::size_t put_back=8)
Constructor. 
 
JFileOutputStreamBuffer(const JAbstractFile &file, const std::size_t size=65536)
Constructor. 
 
traits_type::int_type int_type
 
int flush()
Flush internal buffer. 
 
Auxiliary class for time values. 
 
The JFile class extends the JAbstractFile class. 
 
bool out_avail(JTimeval timeout=JTimeval::min())
Check availability of output. 
 
Auxiliary class for method select. 
 
The JAbstractFile class encapsulates the c-style file descriptor. 
 
virtual ~JFileOutputStreamBuffer()
Destructor. 
 
bool out_avail(JTimeval timeout=JTimeval::min()) const 
Check availability of output. 
 
Output file stream buffer. 
 
$WORKDIR ev_configure_dqsimulator txt echo process $DQ_SIMULATOR $i $SOURCE_HOST[$index] csh c(setenv ROOTSYS $ROOTSYS &&source $JPP_DIR/setenv.csh $JPP_DIR &&($DQ_SIMULATOR\-u\$NAME\$\-H\$SERVER\$\-M\$LOGGER\$\-d $DEBUG</dev/null > &/dev/null &))'
 
virtual int_type overflow(int_type c) override
Check overflow. 
 
std::streamsize streamsize
 
virtual int write(const char *buffer, const int length)
Write data to file. 
 
JFileOutputStreamBuffer & operator=(const JFileOutputStreamBuffer &)
 
bool in_avail(JTimeval timeout=JTimeval::min())
Check availability of input.