a whole new world..

This commit is contained in:
Cary Sandvig 2000-12-13 01:56:13 +00:00
parent 493eb9c2d8
commit dd98317781

View File

@ -0,0 +1,28 @@
// Filename: pfstream.I
// Created by: cary (12Dec00)
//
////////////////////////////////////////////////////////////////////
INLINE ipfstream::ipfstream(const string cmd) : _psb(PipeStreamBuf::Input) {
_psb.command(cmd);
}
INLINE void ipfstream::flush(void) {
_psb.flush();
}
INLINE ipfstream::ipfstream(void) : _psb(PipeStreamBuf::Input) {
cerr << "should never call default constructor of ipfstream" << endl;
}
INLINE opfstream::opfstream(const string cmd) : _psb(PipeStreamBuf::Output) {
_psb.command(cmd);
}
INLINE void opfstream::flush(void) {
_psb.flush();
}
INLINE opfstream::opfstream(void) : _psb(PipeStreamBuf::Output) {
cerr << "should never call default constructor of opfstream" << endl;
}