00001 // Filename: writableParam.I 00002 // Created by: jason (13Jun00) 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 // Function: WritableParam::Constructor 00017 // Access: Public 00018 // Description: 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE WritableParam:: 00021 WritableParam(const Datagram &datagram) : 00022 _packet(datagram) 00023 { 00024 } 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Function: WritableParam::Copy Constructor 00028 // Access: Public 00029 // Description: 00030 //////////////////////////////////////////////////////////////////// 00031 INLINE WritableParam:: 00032 WritableParam(const WritableParam ©) : 00033 FactoryParam(copy), 00034 _packet(copy._packet) 00035 { 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: WritableParam::Destructor 00040 // Access: Public 00041 // Description: 00042 //////////////////////////////////////////////////////////////////// 00043 INLINE WritableParam:: 00044 ~WritableParam() { 00045 } 00046 00047 //////////////////////////////////////////////////////////////////// 00048 // Function: WritableParam::Copy Assignment Operator 00049 // Access: Private 00050 // Description: 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE void WritableParam:: 00053 operator = (const WritableParam &) { 00054 // The assignment operator cannot be used for this class. 00055 nassertv(false); 00056 } 00057 00058 //////////////////////////////////////////////////////////////////// 00059 // Function: WritableParam::get_datagram 00060 // Access: Public 00061 // Description: 00062 //////////////////////////////////////////////////////////////////// 00063 INLINE const Datagram& WritableParam:: 00064 get_datagram() { 00065 return _packet; 00066 } 00067