Panda3D
|
00001 // Filename: pfstream.h 00002 // Created by: cary (27Aug98) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef __PFSTREAM_H__ 00016 #define __PFSTREAM_H__ 00017 00018 #include "pfstreamBuf.h" 00019 00020 class EXPCL_DTOOL IPipeStream : public istream { 00021 PUBLISHED: 00022 INLINE IPipeStream(const std::string); 00023 00024 INLINE void flush(); 00025 00026 private: 00027 PipeStreamBuf _psb; 00028 00029 INLINE IPipeStream(); 00030 }; 00031 00032 class EXPCL_DTOOL OPipeStream : public ostream { 00033 PUBLISHED: 00034 INLINE OPipeStream(const std::string); 00035 00036 INLINE void flush(); 00037 00038 private: 00039 PipeStreamBuf _psb; 00040 00041 INLINE OPipeStream(); 00042 }; 00043 00044 #include "pfstream.I" 00045 00046 #endif /* __PFSTREAM_H__ */ 00047 00048