Panda3D
pfstream.h
1 // Filename: pfstream.h
2 // Created by: cary (27Aug98)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef __PFSTREAM_H__
16 #define __PFSTREAM_H__
17 
18 #include "pfstreamBuf.h"
19 
20 class EXPCL_DTOOL IPipeStream : public istream {
21 PUBLISHED:
22  INLINE IPipeStream(const std::string);
23 
24  INLINE void flush();
25 
26 private:
27  PipeStreamBuf _psb;
28 
29  INLINE IPipeStream();
30 };
31 
32 class EXPCL_DTOOL OPipeStream : public ostream {
33 PUBLISHED:
34  INLINE OPipeStream(const std::string);
35 
36  INLINE void flush();
37 
38 private:
39  PipeStreamBuf _psb;
40 
41  INLINE OPipeStream();
42 };
43 
44 #include "pfstream.I"
45 
46 #endif /* __PFSTREAM_H__ */
47 
48