From dd983177818bf04b0f5bbf10c1ec9733f2451b3c Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Wed, 13 Dec 2000 01:56:13 +0000 Subject: [PATCH] a whole new world.. --- dtool/src/dtoolutil/pfstream.I | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dtool/src/dtoolutil/pfstream.I diff --git a/dtool/src/dtoolutil/pfstream.I b/dtool/src/dtoolutil/pfstream.I new file mode 100644 index 0000000000..542e2a8038 --- /dev/null +++ b/dtool/src/dtoolutil/pfstream.I @@ -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; +}