Om
1.0.0
A universal framework for multimedia simulation
|
A class that holds the type and value of a SoundFilter parameter. More...
#include <omSoundFilterParameter.h>
Public Member Functions | |
FilterParameter () | |
Create a filter parameter with an undefined type and value. More... | |
FilterParameter (Bool newBoolean) | |
Create a new filter parameter with the specified boolean value. More... | |
FilterParameter (Int64 newInteger) | |
Create a new filter parameter with the specified integer or enumeration value. More... | |
FilterParameter (Float32 newFloat) | |
Create a new filter parameter with the specified float value. More... | |
FilterParameter (Float64 newDouble) | |
Create a new filter parameter with the specified double value. More... | |
FilterParameter (FilterParameterType newType, const FilterParameterValue &newValue) | |
Create a new filter parameter with the specified type and generic value union. More... | |
FilterParameterType | getType () const |
Return the actual type of this filter parameter. More... | |
Bool | getValue (Bool &output) const |
Read this filter parameter as a boolean value. More... | |
Bool | getValue (Int64 &output) const |
Read this filter parameter as an integer value. More... | |
Bool | getValue (Float32 &output) const |
Read this filter parameter as a float value. More... | |
Bool | getValue (Float64 &output) const |
Read this filter parameter as a double value. More... | |
Bool | setValue (Bool output) |
Write this filter parameter as a boolean value. More... | |
Bool | setValue (Int64 output) |
Write this filter parameter as an integer or enumeration value. More... | |
Bool | setValue (Float32 output) |
Write this filter parameter as a float value. More... | |
Bool | setValue (Float64 output) |
Write this filter parameter as a double value. More... | |
UTF8String | toString () const |
Return a string representation of this parameter's value. More... | |
operator UTF8String () const | |
Return a string representation of this parameter's value. More... | |
A class that holds the type and value of a SoundFilter parameter.
The class provides ways to access the value of the generic parameter in a type-safe manner.
|
inline |
Create a filter parameter with an undefined type and value.
|
inline |
Create a new filter parameter with the specified boolean value.
|
inline |
Create a new filter parameter with the specified integer or enumeration value.
|
inline |
Create a new filter parameter with the specified float value.
|
inline |
Create a new filter parameter with the specified double value.
|
inline |
Create a new filter parameter with the specified type and generic value union.
|
inline |
Return the actual type of this filter parameter.
Read this filter parameter as a boolean value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no output is converted.
Read this filter parameter as an integer value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no output is converted.
Read this filter parameter as a float value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no output is converted.
Read this filter parameter as a double value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no output is converted.
Write this filter parameter as a boolean value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no value is set.
Write this filter parameter as an integer or enumeration value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no value is set.
Write this filter parameter as a float value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no value is set.
Write this filter parameter as a double value.
If the conversion succeeds, TRUE is returned. Otherwise, if the conversion fails, FALSE is returned and no value is set.
UTF8String om::sound::filters::FilterParameter::toString | ( | ) | const |
Return a string representation of this parameter's value.
|
inline |
Return a string representation of this parameter's value.