18 #include "pandabase.h" 19 #include "typedReferenceCount.h" 22 #undef _POSIX_C_SOURCE 34 INLINE
void set_python_tag(
const string &key, PyObject *value);
35 INLINE PyObject *get_python_tag(
const string &key)
const;
36 INLINE
bool has_python_tag(
const string &key)
const;
37 INLINE
void clear_python_tag(
const string &key);
38 INLINE
bool has_python_tags()
const;
42 virtual void ls()
const = 0;
43 virtual void ls(ostream &out,
int indent_level=0)
const = 0;
47 INLINE ~PhysxObject();
56 ErrorType _error_type;
60 typedef phash_map<string, PyObject *, string_hash> PythonTagData;
61 PythonTagData _python_tag_data;
69 static void init_type() {
70 TypedReferenceCount::init_type();
71 register_type(_type_handle,
"PhysxObject",
72 TypedReferenceCount::get_class_type());
75 return get_class_type();
79 return get_class_type();
86 #include "physxObject.I" 88 #endif // PHYSXOBJECT_H A base class for things which need to inherit from both TypedObject and from ReferenceCount.
TypeHandle is the identifier used to differentiate C++ class types.