Lines Matching full:m_fp
54 izstream() : m_fp(0) {}
55 izstream(FILE* fp) : m_fp(0) { open(fp); }
56 izstream(const char* name) : m_fp(0) { open(name); }
66 if (m_fp) close();
67 m_fp = ::gzopen(name, "rb");
72 if (m_fp) close();
73 m_fp = ::gzdopen(fileno(fp), "rb");
81 int r = ::gzclose(m_fp);
82 m_fp = 0; return r;
88 return ::gzread(m_fp, buf, len);
98 return ::gzerror(m_fp, errnum);
101 gzFile fp() { return m_fp; }
104 gzFile m_fp;
158 ozstream() : m_fp(0), m_os(0) {
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());
203 int r = ::gzclose(m_fp); m_fp = 0; return r;
209 return ::gzwrite(m_fp, (voidp) buf, len);
221 return ::gzflush(m_fp, _flush);
231 return ::gzerror(m_fp, errnum);
234 gzFile fp() { return m_fp; }
248 ::gzwrite(m_fp, m_os->str(), m_os->pcount());
254 gzFile m_fp;