Panda3D
bioStream.I
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 bioStream.I
10  * @author drose
11  * @date 2002-09-25
12  */
13 
14 /**
15  *
16  */
17 INLINE IBioStream::
18 IBioStream() : ISocketStream(&_buf) {
19 }
20 
21 /**
22  *
23  */
24 INLINE IBioStream::
25 IBioStream(BioPtr *source) : ISocketStream(&_buf) {
26  open(source);
27 }
28 
29 /**
30  *
31  */
32 INLINE IBioStream &IBioStream::
33 open(BioPtr *source) {
34  clear((ios_iostate)0);
35  _buf.open(source);
36  return *this;
37 }
38 
39 /**
40  *
41  */
42 INLINE OBioStream::
43 OBioStream() : OSocketStream(&_buf) {
44 }
45 
46 /**
47  *
48  */
49 INLINE OBioStream::
50 OBioStream(BioPtr *source) : OSocketStream(&_buf) {
51  open(source);
52 }
53 
54 /**
55  *
56  */
57 INLINE OBioStream &OBioStream::
58 open(BioPtr *source) {
59  clear((ios_iostate)0);
60  _buf.open(source);
61  return *this;
62 }
63 
64 /**
65  *
66  */
67 INLINE BioStream::
68 BioStream() : SocketStream(&_buf) {
69 }
70 
71 /**
72  *
73  */
74 INLINE BioStream::
75 BioStream(BioPtr *source) : SocketStream(&_buf) {
76  open(source);
77 }
78 
79 /**
80  *
81  */
82 INLINE BioStream &BioStream::
83 open(BioPtr *source) {
84  clear((ios_iostate)0);
85  _buf.open(source);
86  return *this;
87 }