19 #include "pandabase.h" 20 #include "eventParameter.h" 21 #include "typedReferenceCount.h" 40 void operator = (
const Event ©);
43 INLINE
void set_name(
const string &name);
44 INLINE
void clear_name();
45 INLINE
bool has_name()
const;
46 INLINE
const string &get_name()
const;
50 int get_num_parameters()
const;
52 MAKE_SEQ(get_parameters, get_num_parameters, get_parameter);
54 bool has_receiver()
const;
57 void clear_receiver();
59 void output(ostream &out)
const;
63 ParameterList _parameters;
73 static void init_type() {
74 TypedReferenceCount::init_type();
75 register_type(_type_handle,
"Event",
76 TypedReferenceCount::get_class_type());
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
87 INLINE ostream &operator << (ostream &out,
const Event &n);
An optional parameter associated with an event.
An abstract base class for anything that might care about receiving events.
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
A named event, possibly with parameters.
TypeHandle is the identifier used to differentiate C++ class types.