00001 // Filename: bioStream.I 00002 // Created by: drose (25Sep02) 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 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: IBioStream::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE IBioStream:: 00022 IBioStream() : ISocketStream(&_buf) { 00023 } 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Function: IBioStream::Constructor 00027 // Access: Public 00028 // Description: 00029 //////////////////////////////////////////////////////////////////// 00030 INLINE IBioStream:: 00031 IBioStream(BioPtr *source) : ISocketStream(&_buf) { 00032 open(source); 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: IBioStream::open 00037 // Access: Public 00038 // Description: 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE IBioStream &IBioStream:: 00041 open(BioPtr *source) { 00042 clear((ios_iostate)0); 00043 _buf.open(source); 00044 return *this; 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: OBioStream::Constructor 00049 // Access: Public 00050 // Description: 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE OBioStream:: 00053 OBioStream() : OSocketStream(&_buf) { 00054 } 00055 00056 //////////////////////////////////////////////////////////////////// 00057 // Function: OBioStream::Constructor 00058 // Access: Public 00059 // Description: 00060 //////////////////////////////////////////////////////////////////// 00061 INLINE OBioStream:: 00062 OBioStream(BioPtr *source) : OSocketStream(&_buf) { 00063 open(source); 00064 } 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: OBioStream::open 00068 // Access: Public 00069 // Description: 00070 //////////////////////////////////////////////////////////////////// 00071 INLINE OBioStream &OBioStream:: 00072 open(BioPtr *source) { 00073 clear((ios_iostate)0); 00074 _buf.open(source); 00075 return *this; 00076 } 00077 00078 //////////////////////////////////////////////////////////////////// 00079 // Function: BioStream::Constructor 00080 // Access: Public 00081 // Description: 00082 //////////////////////////////////////////////////////////////////// 00083 INLINE BioStream:: 00084 BioStream() : SocketStream(&_buf) { 00085 } 00086 00087 //////////////////////////////////////////////////////////////////// 00088 // Function: BioStream::Constructor 00089 // Access: Public 00090 // Description: 00091 //////////////////////////////////////////////////////////////////// 00092 INLINE BioStream:: 00093 BioStream(BioPtr *source) : SocketStream(&_buf) { 00094 open(source); 00095 } 00096 00097 //////////////////////////////////////////////////////////////////// 00098 // Function: BioStream::open 00099 // Access: Public 00100 // Description: 00101 //////////////////////////////////////////////////////////////////// 00102 INLINE BioStream &BioStream:: 00103 open(BioPtr *source) { 00104 clear((ios_iostate)0); 00105 _buf.open(source); 00106 return *this; 00107 }