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
gzstreambase(const char *name, int mode)
then echo Enter input within $TIMEOUT_S seconds echo n User name
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.
virtual int overflow(int c=EOF)
void open(const char *name, int open_mode=std::ios::in)
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
ogzstream(const char *name, int mode=std::ios::out)
then usage $script< string identifier >< detectorfile > event file(toashort file)+" "\nNote that the event files and toashort files should be one-to-one related." fi if (( $