Ver Fonte

a whole new world..

Cary Sandvig há 25 anos atrás
pai
commit
dd98317781
1 ficheiros alterados com 28 adições e 0 exclusões
  1. 28 0
      dtool/src/dtoolutil/pfstream.I

+ 28 - 0
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;
+}