23INLINE EventParameter::
36INLINE EventParameter::
43INLINE EventParameter::
50INLINE EventParameter::
57INLINE EventParameter::
58EventParameter(
const std::string &value) : _ptr(new
EventStoreString(value)) { }
63INLINE EventParameter::
70INLINE EventParameter::
86INLINE EventParameter::
96 return (_ptr ==
nullptr);
108 return _ptr->is_of_type(EventStoreInt::get_class_type());
133 return _ptr->is_of_type(EventStoreDouble::get_class_type());
154 return _ptr->is_of_type(EventStoreString::get_class_type());
175 return _ptr->is_of_type(EventStoreWstring::get_class_type());
199 return _ptr->is_of_type(EventStoreTypedRefCount::get_class_type());
An optional parameter associated with an event.
int get_int_value() const
Retrieves the value stored in the EventParameter.
bool is_double() const
Returns true if the EventParameter stores a double floating-point value, false otherwise.
std::wstring get_wstring_value() const
Retrieves the value stored in the EventParameter.
bool is_empty() const
Returns true if the EventParameter is the empty parameter, storing nothing, or false otherwise.
bool is_string() const
Returns true if the EventParameter stores a string value, false otherwise.
TypedReferenceCount * get_typed_ref_count_value() const
Retrieves the value stored in the EventParameter.
TypedWritableReferenceCount * get_ptr() const
Retrieves a pointer to the actual value stored in the parameter.
bool is_typed_ref_count() const
Returns true if the EventParameter stores a TypedReferenceCount pointer, false otherwise.
bool is_int() const
Returns true if the EventParameter stores an integer value, false otherwise.
std::string get_string_value() const
Retrieves the value stored in the EventParameter.
bool is_wstring() const
Returns true if the EventParameter stores a wstring value, false otherwise.
double get_double_value() const
Retrieves the value stored in the EventParameter.
A class object for storing specifically objects of type TypedReferenceCount, which is different than ...
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 TypedObject and from ReferenceCount.
A base class for things which need to inherit from both TypedWritable and from ReferenceCount.