EventParameter

Inheritance:

Methods of EventParameter:

EventParameter
EventParameter::EventParameter(void);

Description: Defines an EventParameter that stores nothing: the "empty" parameter.
Description: Defines an EventParameter that stores a pointer to any kind of TypedWritableReferenceCount object. This is the most general constructor.
This accepts a const pointer, even though it stores (and eventually returns) a non-const pointer. This is just the simplest way to allow both const and non-const pointers to be stored, but it does lose the constness. Be careful.
Description: Defines an EventParameter that stores a pointer to a TypedReferenceCount object. Note that a TypedReferenceCount is not the same kind of pointer as a TypedWritableReferenceCount, hence we require both constructors.
Description: Defines an EventParameter that stores an integer value.
Description: Defines an EventParameter that stores a floating-point value.
Description: Defines an EventParameter that stores a string value.
Description: Defines an EventParameter that stores a wstring value.
Description:

getDoubleValue
double EventParameter::get_double_value(void) const;

Description: Retrieves the value stored in the EventParameter. It is only valid to call this if is_double() has already returned true.

getIntValue
int EventParameter::get_int_value(void) const;

Description: Retrieves the value stored in the EventParameter. It is only valid to call this if is_int() has already returned true.

getPtr
TypedWritableReferenceCount *EventParameter::get_ptr(void) const;

Description: Retrieves a pointer to the actual value stored in the parameter. The TypeHandle of this pointer may be examined to determine the actual type of parameter it contains. This is the only way to retrieve the value when it is not one of the above predefined types.

getStringValue
string EventParameter::get_string_value(void) const;

Description: Retrieves the value stored in the EventParameter. It is only valid to call this if is_string() has already returned true.

getTypedRefCountValue
TypedReferenceCount *EventParameter::get_typed_ref_count_value(void) const;

Description: Retrieves the value stored in the EventParameter. It is only valid to call this if is_typed_ref_count() has already returned true.

getWstringValue
basic_string< wchar_t > EventParameter::get_wstring_value(void) const;

Description: Retrieves the value stored in the EventParameter. It is only valid to call this if is_wstring() has already returned true.

isDouble
bool EventParameter::is_double(void) const;

Description: Returns true if the EventParameter stores a double floating-point value, false otherwise.

isEmpty
bool EventParameter::is_empty(void) const;

These functions are conveniences to easily determine if the EventParameter is one of the predefined parameter types, and retrieve the corresponding value. Of course, it is possible that the EventParameter is some user-defined type, and is none of these.
Description: Returns true if the EventParameter is the empty parameter, storing nothing, or false otherwise.

isInt
bool EventParameter::is_int(void) const;

These functions are conveniences to easily determine if the EventParameter is one of the predefined parameter types, and retrieve the corresponding value. Of course, it is possible that the EventParameter is some user-defined type, and is none of these.
Description: Returns true if the EventParameter stores an integer value, false otherwise.

isString
bool EventParameter::is_string(void) const;

Description: Returns true if the EventParameter stores a string value, false otherwise.

isTypedRefCount
bool EventParameter::is_typed_ref_count(void) const;

Description: Returns true if the EventParameter stores a TypedReferenceCount pointer, false otherwise. Note that a TypedReferenceCount is not exactly the same kind of pointer as a TypedWritableReferenceCount, hence the need for this separate call.

isWstring
bool EventParameter::is_wstring(void) const;

Description: Returns true if the EventParameter stores a wstring value, false otherwise.

operator =
EventParameter &EventParameter::operator =(EventParameter const &copy);

Description:

output
void EventParameter::output(ostream &out) const;

Description: