Panda3D
interrogateManifest.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 interrogateManifest.I
10  * @author drose
11  * @date 2000-08-11
12  */
13 
14 /**
15  *
16  */
17 INLINE InterrogateManifest::
18 InterrogateManifest(InterrogateModuleDef *def) :
20 {
21  _flags = 0;
22  _int_value = 0;
23  _type = 0;
24  _getter = 0;
25 }
26 
27 /**
28  *
29  */
30 INLINE InterrogateManifest::
31 InterrogateManifest(const InterrogateManifest &copy) {
32  (*this) = copy;
33 }
34 
35 /**
36  *
37  */
38 INLINE void InterrogateManifest::
39 operator = (const InterrogateManifest &copy) {
40  InterrogateComponent::operator = (copy);
41  _flags = copy._flags;
42  _definition = copy._definition;
43  _int_value = copy._int_value;
44  _type = copy._type;
45  _getter = copy._getter;
46 }
47 
48 
49 /**
50  *
51  */
52 INLINE const std::string &InterrogateManifest::
53 get_definition() const {
54  return _definition;
55 }
56 
57 /**
58  *
59  */
60 INLINE bool InterrogateManifest::
61 has_type() const {
62  return (_flags & F_has_type) != 0;
63 }
64 
65 /**
66  *
67  */
68 INLINE TypeIndex InterrogateManifest::
69 get_type() const {
70  return _type;
71 }
72 
73 /**
74  *
75  */
76 INLINE bool InterrogateManifest::
77 has_getter() const {
78  return (_flags & F_has_getter) != 0;
79 }
80 
81 /**
82  *
83  */
84 INLINE FunctionIndex InterrogateManifest::
85 get_getter() const {
86  return _getter;
87 }
88 
89 /**
90  *
91  */
92 INLINE bool InterrogateManifest::
93 has_int_value() const {
94  return (_flags & F_has_int_value) != 0;
95 }
96 
97 /**
98  *
99  */
100 INLINE int InterrogateManifest::
101 get_int_value() const {
102  return _int_value;
103 }
104 
105 
106 INLINE std::ostream &
107 operator << (std::ostream &out, const InterrogateManifest &manifest) {
108  manifest.output(out);
109  return out;
110 }
111 
112 INLINE std::istream &
113 operator >> (std::istream &in, InterrogateManifest &manifest) {
114  manifest.input(in);
115  return in;
116 }
void output(std::ostream &out) const
Formats the InterrogateManifest data for output to a data file.
void input(std::istream &in)
Reads the data file as previously formatted by output().
An internal representation of a manifest constant.
The base class for things that are part of the interrogate database.