Panda3D
Loading...
Searching...
No Matches
pfstream.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file pfstream.h
10 * @author cary
11 * @date 1998-08-27
12 */
13
14#ifndef __PFSTREAM_H__
15#define __PFSTREAM_H__
16
17#include "pfstreamBuf.h"
18
19class EXPCL_DTOOL_DTOOLUTIL IPipeStream : public std::istream {
20public:
21 INLINE IPipeStream(const std::string);
22
23#if _MSC_VER >= 1800
24 INLINE IPipeStream(const IPipeStream &copy) = delete;
25#endif
26
27 INLINE void flush();
28
29private:
30 PipeStreamBuf _psb;
31
32 INLINE IPipeStream();
33};
34
35class EXPCL_DTOOL_DTOOLUTIL OPipeStream : public std::ostream {
36public:
37 INLINE OPipeStream(const std::string);
38
39#if _MSC_VER >= 1800
40 INLINE OPipeStream(const OPipeStream &copy) = delete;
41#endif
42
43 INLINE void flush();
44
45private:
46 PipeStreamBuf _psb;
47
48 INLINE OPipeStream();
49};
50
51#include "pfstream.I"
52
53#endif /* __PFSTREAM_H__ */
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.