15 #ifndef EVENTPARAMETER_H 16 #define EVENTPARAMETER_H 18 #include "pandabase.h" 21 #include "typedObject.h" 22 #include "typedWritableReferenceCount.h" 23 #include "pointerTo.h" 24 #include "bamReader.h" 25 #include "bamWriter.h" 26 #include "paramValue.h" 43 INLINE EventParameter(
int value);
44 INLINE EventParameter(
double value);
45 INLINE EventParameter(
const string &value);
46 INLINE EventParameter(
const wstring &value);
48 INLINE EventParameter(
const EventParameter ©);
49 INLINE EventParameter &operator = (
const EventParameter ©);
50 INLINE ~EventParameter();
57 INLINE
bool is_empty()
const;
58 INLINE
bool is_int()
const;
59 INLINE
int get_int_value()
const;
60 INLINE
bool is_double()
const;
61 INLINE
double get_double_value()
const;
62 INLINE
bool is_string()
const;
63 INLINE
string get_string_value()
const;
64 INLINE
bool is_wstring()
const;
65 INLINE wstring get_wstring_value()
const;
67 INLINE
bool is_typed_ref_count()
const;
72 void output(ostream &out)
const;
78 INLINE ostream &operator << (ostream &out,
const EventParameter ¶m);
82 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_EVENT, EXPTP_PANDA_EVENT,
ParamValue<int>);
90 #include "eventParameter.I" An optional parameter associated with an event.
A class object for storing specifically objects of type TypedReferenceCount, which is different than ...
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
A handy class object for storing simple values (like integers or strings) passed along with an Event ...
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.