14 #ifndef INTERROGATEELEMENT_H 15 #define INTERROGATEELEMENT_H 22 class CPPMakeProperty;
34 INLINE
bool is_global()
const;
36 INLINE
bool has_scoped_name()
const;
37 INLINE
const std::string &get_scoped_name()
const;
39 INLINE
bool has_comment()
const;
40 INLINE
const std::string &get_comment()
const;
42 INLINE TypeIndex get_type()
const;
43 INLINE
bool has_getter()
const;
44 INLINE FunctionIndex get_getter()
const;
45 INLINE
bool has_setter()
const;
46 INLINE FunctionIndex get_setter()
const;
47 INLINE
bool has_has_function()
const;
48 INLINE FunctionIndex get_has_function()
const;
49 INLINE
bool has_clear_function()
const;
50 INLINE FunctionIndex get_clear_function()
const;
51 INLINE
bool has_del_function()
const;
52 INLINE FunctionIndex get_del_function()
const;
53 INLINE
bool has_insert_function()
const;
54 INLINE FunctionIndex get_insert_function()
const;
55 INLINE
bool has_getkey_function()
const;
56 INLINE FunctionIndex get_getkey_function()
const;
57 INLINE
bool is_sequence()
const;
58 INLINE FunctionIndex get_length_function()
const;
59 INLINE
bool is_mapping()
const;
61 void output(std::ostream &out)
const;
62 void input(std::istream &in);
69 F_has_getter = 0x0002,
70 F_has_setter = 0x0004,
71 F_has_has_function= 0x0008,
72 F_has_clear_function= 0x0010,
73 F_has_del_function= 0x0020,
76 F_has_insert_function= 0x0100,
77 F_has_getkey_function= 0x0200,
81 std::string _scoped_name;
84 FunctionIndex _length_function;
85 FunctionIndex _getter;
86 FunctionIndex _setter;
87 FunctionIndex _has_function;
88 FunctionIndex _clear_function;
89 FunctionIndex _del_function;
90 FunctionIndex _insert_function;
91 FunctionIndex _getkey_function;
93 CPPMakeProperty *_make_property;
95 friend class InterrogateBuilder;
98 INLINE std::ostream &operator << (std::ostream &out,
const InterrogateElement &element);
This class manages a mapping of integers to integers.
void output(std::ostream &out) const
Formats the component for output to a data file.
The base class for things that are part of the interrogate database.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An internal representation of a data element, like a data member or a global variable.
void input(std::istream &in)
Reads the data file as previously formatted by output().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.