Panda3D
writableParam.I
1 // Filename: writableParam.I
2 // Created by: jason (13Jun00)
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 // Function: WritableParam::Constructor
17 // Access: Public
18 // Description:
19 ////////////////////////////////////////////////////////////////////
20 INLINE WritableParam::
21 WritableParam(const Datagram &datagram) :
22  _packet(datagram)
23 {
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: WritableParam::Copy Constructor
28 // Access: Public
29 // Description:
30 ////////////////////////////////////////////////////////////////////
31 INLINE WritableParam::
32 WritableParam(const WritableParam &copy) :
33  FactoryParam(copy),
34  _packet(copy._packet)
35 {
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: WritableParam::Destructor
40 // Access: Public
41 // Description:
42 ////////////////////////////////////////////////////////////////////
43 INLINE WritableParam::
44 ~WritableParam() {
45 }
46 
47 ////////////////////////////////////////////////////////////////////
48 // Function: WritableParam::Copy Assignment Operator
49 // Access: Private
50 // Description:
51 ////////////////////////////////////////////////////////////////////
52 INLINE void WritableParam::
53 operator = (const WritableParam &) {
54  // The assignment operator cannot be used for this class.
55  nassertv(false);
56 }
57 
58 ////////////////////////////////////////////////////////////////////
59 // Function: WritableParam::get_datagram
60 // Access: Public
61 // Description:
62 ////////////////////////////////////////////////////////////////////
63 INLINE const Datagram& WritableParam::
64 get_datagram() {
65  return _packet;
66 }
67 
The specific derivation of FactoryParam that contains the information needed by a TypedWritable objec...
Definition: writableParam.h:32
The base class of any number of specific pieces of parameter information that might be passed to a Fa...
Definition: factoryParam.h:34
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Definition: datagram.h:43