43 #ifdef GZSTREAM_NAMESPACE
44 namespace GZSTREAM_NAMESPACE {
65 int w = pptr() - pbase();
66 if ( gzwrite(
file, pbase(), w) != w)
87 if ((mode & std::ios::ate) || (mode & std::ios::app)
91 char* fmodeptr = fmode;
92 if ( mode & std::ios::in)
94 else if ( mode & std::ios::out)
98 file = gzopen( name, fmode);
112 if ( gzclose(
file) == Z_OK)
119 if ( gptr() && ( gptr() < egptr()))
120 return *
reinterpret_cast<unsigned char *
>( gptr());
125 int n_putback = gptr() - eback();
128 memcpy( buffer + (4 - n_putback), gptr() - n_putback, n_putback);
135 setg( buffer + (4 - n_putback),
140 return *
reinterpret_cast<unsigned char *
>( gptr());
144 if ( ! ( mode & std::ios::out) || ! opened)
150 if ( flush_buffer() == EOF)
159 if ( pptr() && pptr() > pbase()) {
160 if ( flush_buffer() == EOF)
181 if ( ! buf.open( name, open_mode))
182 clear( rdstate() | std::ios::badbit);
186 if ( buf.is_open()) {
188 clear( rdstate() | std::ios::badbit );
194 bool is_open()
const {
return buf.is_open(); }
207 :
gzstreambase( name, open_mode), std::istream( &buf) {}
218 void open(
const char*
name,
int open_mode = std::ios::out) {
223 #ifdef GZSTREAM_NAMESPACE
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
gzstreambase(const char *name, int mode)
gzstreambuf * open(const char *name, int open_mode)
igzstream(const char *name, int open_mode=std::ios::in)
T * open(const std::string &file_name)
Open file.
void open(const char *name, int open_mode)
void open(const char *name, int open_mode=std::ios::out)
void close(std::istream *pf)
Close file.
then fatal The output file must have the wildcard in the name
virtual int overflow(int c=EOF)
$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 &))'
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
void open(const char *name, int open_mode=std::ios::in)
ogzstream(const char *name, int mode=std::ios::out)