Lines Matching refs:m_fp
54 izstream() : m_fp(0) {} in izstream()
55 izstream(FILE* fp) : m_fp(0) { open(fp); } in izstream()
56 izstream(const char* name) : m_fp(0) { open(name); } in izstream()
66 if (m_fp) close(); in open()
67 m_fp = ::gzopen(name, "rb"); in open()
72 if (m_fp) close(); in open()
73 m_fp = ::gzdopen(fileno(fp), "rb"); in open()
81 int r = ::gzclose(m_fp); in close()
82 m_fp = 0; return r; in close()
88 return ::gzread(m_fp, buf, len); in read()
98 return ::gzerror(m_fp, errnum); in error()
101 gzFile fp() { return m_fp; } in fp()
104 gzFile m_fp;
158 ozstream() : m_fp(0), m_os(0) { in ozstream()
161 : m_fp(0), m_os(0) {
165 : m_fp(0), m_os(0) {
180 if (m_fp) close();
181 m_fp = ::gzopen(name, mode);
190 if (m_fp) close();
191 m_fp = ::gzdopen(fileno(fp), mode);
200 ::gzwrite(m_fp, m_os->str(), m_os->pcount()); in close()
203 int r = ::gzclose(m_fp); m_fp = 0; return r; in close()
209 return ::gzwrite(m_fp, (voidp) buf, len); in write()
221 return ::gzflush(m_fp, _flush); in flush()
231 return ::gzerror(m_fp, errnum); in error()
234 gzFile fp() { return m_fp; } in fp()
248 ::gzwrite(m_fp, m_os->str(), m_os->pcount()); in os_flush()
254 gzFile m_fp;