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