Panda3D
bioStream.I
1 // Filename: bioStream.I
2 // Created by: drose (25Sep02)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: IBioStream::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE IBioStream::
22 IBioStream() : ISocketStream(&_buf) {
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function: IBioStream::Constructor
27 // Access: Public
28 // Description:
29 ////////////////////////////////////////////////////////////////////
30 INLINE IBioStream::
31 IBioStream(BioPtr *source) : ISocketStream(&_buf) {
32  open(source);
33 }
34 
35 ////////////////////////////////////////////////////////////////////
36 // Function: IBioStream::open
37 // Access: Public
38 // Description:
39 ////////////////////////////////////////////////////////////////////
40 INLINE IBioStream &IBioStream::
41 open(BioPtr *source) {
42  clear((ios_iostate)0);
43  _buf.open(source);
44  return *this;
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: OBioStream::Constructor
49 // Access: Public
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 INLINE OBioStream::
53 OBioStream() : OSocketStream(&_buf) {
54 }
55 
56 ////////////////////////////////////////////////////////////////////
57 // Function: OBioStream::Constructor
58 // Access: Public
59 // Description:
60 ////////////////////////////////////////////////////////////////////
61 INLINE OBioStream::
62 OBioStream(BioPtr *source) : OSocketStream(&_buf) {
63  open(source);
64 }
65 
66 ////////////////////////////////////////////////////////////////////
67 // Function: OBioStream::open
68 // Access: Public
69 // Description:
70 ////////////////////////////////////////////////////////////////////
71 INLINE OBioStream &OBioStream::
72 open(BioPtr *source) {
73  clear((ios_iostate)0);
74  _buf.open(source);
75  return *this;
76 }
77 
78 ////////////////////////////////////////////////////////////////////
79 // Function: BioStream::Constructor
80 // Access: Public
81 // Description:
82 ////////////////////////////////////////////////////////////////////
83 INLINE BioStream::
84 BioStream() : SocketStream(&_buf) {
85 }
86 
87 ////////////////////////////////////////////////////////////////////
88 // Function: BioStream::Constructor
89 // Access: Public
90 // Description:
91 ////////////////////////////////////////////////////////////////////
92 INLINE BioStream::
93 BioStream(BioPtr *source) : SocketStream(&_buf) {
94  open(source);
95 }
96 
97 ////////////////////////////////////////////////////////////////////
98 // Function: BioStream::open
99 // Access: Public
100 // Description:
101 ////////////////////////////////////////////////////////////////////
102 INLINE BioStream &BioStream::
103 open(BioPtr *source) {
104  clear((ios_iostate)0);
105  _buf.open(source);
106  return *this;
107 }