Panda3D
interrogateMakeSeq.I
1 // Filename: interrogateMakeSeq.I
2 // Created by: drose (15Sep09)
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 ////////////////////////////////////////////////////////////////////
18 // MakeSeq: InterrogateMakeSeq::Constructor
19 // Access: Public
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 INLINE InterrogateMakeSeq::
23 InterrogateMakeSeq(InterrogateModuleDef *def) :
25 {
26  _class = 0;
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // MakeSeq: InterrogateMakeSeq::Copy Constructor
31 // Access: Public
32 // Description:
33 ////////////////////////////////////////////////////////////////////
34 INLINE InterrogateMakeSeq::
35 InterrogateMakeSeq(const InterrogateMakeSeq &copy) {
36  (*this) = copy;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // MakeSeq: InterrogateMakeSeq::Copy Assignment Operator
41 // Access: Public
42 // Description:
43 ////////////////////////////////////////////////////////////////////
44 INLINE void InterrogateMakeSeq::
45 operator = (const InterrogateMakeSeq &copy) {
46  InterrogateComponent::operator = (copy);
47  _class = copy._class;
48  _seq_name = copy._seq_name;
49  _num_name = copy._num_name;
50  _element_name = copy._element_name;
51 }
52 
53 ////////////////////////////////////////////////////////////////////
54 // Function: InterrogateMakeSeq::get_class
55 // Access: Public
56 // Description: Return the class that owns the make_seq.
57 ////////////////////////////////////////////////////////////////////
58 INLINE TypeIndex InterrogateMakeSeq::
59 get_class() const {
60  return _class;
61 }
62 
63 ////////////////////////////////////////////////////////////////////
64 // Function: InterrogateMakeSeq::get_seq_name
65 // Access: Public
66 // Description:
67 ////////////////////////////////////////////////////////////////////
68 INLINE const string &InterrogateMakeSeq::
69 get_seq_name() const {
70  return _seq_name;
71 }
72 
73 ////////////////////////////////////////////////////////////////////
74 // Function: InterrogateMakeSeq::get_num_name
75 // Access: Public
76 // Description:
77 ////////////////////////////////////////////////////////////////////
78 INLINE const string &InterrogateMakeSeq::
79 get_num_name() const {
80  return _num_name;
81 }
82 
83 ////////////////////////////////////////////////////////////////////
84 // Function: InterrogateMakeSeq::get_element_name
85 // Access: Public
86 // Description:
87 ////////////////////////////////////////////////////////////////////
88 INLINE const string &InterrogateMakeSeq::
89 get_element_name() const {
90  return _element_name;
91 }
92 
93 
94 INLINE ostream &
95 operator << (ostream &out, const InterrogateMakeSeq &make_seq) {
96  make_seq.output(out);
97  return out;
98 }
99 
100 INLINE istream &
101 operator >> (istream &in, InterrogateMakeSeq &make_seq) {
102  make_seq.input(in);
103  return in;
104 }
Represents a synthetic method created via the MAKE_SEQ() macro.
void input(istream &in)
Reads the data file as previously formatted by output().
The base class for things that are part of the interrogate database.
void output(ostream &out) const
Formats the InterrogateMakeSeq data for output to a data file.
TypeIndex get_class() const
Return the class that owns the make_seq.