#include <oscargument.h>
Public Member Functions | |
| OSCArgument ()=default | |
| OSCArgument (OSCValuePtr value) | |
| ~OSCArgument ()=default | |
| template<typename T > | |
| const T * | get () const |
| template<typename T > | |
| T * | get () |
| rtti::TypeInfo | getValueType () const |
| float | asFloat () const |
| bool | isFloat () const |
| int | asInt () const |
| bool | isInt () const |
| bool | asBool () const |
| bool | isBool () const |
| const std::string & | asString () const |
| bool | isString () const |
| double | asDouble () const |
| bool | isDouble () const |
| char | asChar () const |
| bool | isChar () const |
| bool | isNil () const |
| std::string | toString () |
| OSCArgument (OSCArgument &)=delete | |
| OSCArgument & | operator= (const OSCArgument &)=delete |
| void | add (osc::OutboundPacketStream &outPacket) const |
| std::size_t | size () const |
The OSCArgument wraps an OSCValue. This class offers some utility methods to quickly work with the most common OSC values. For other / more complex OSC Value types you can ask for the value using the get<T> function. Note that this argument owns the value.
|
default |
| OSCArgument | ( | OSCValuePtr | value | ) |
|
default |
|
delete |
Copy is not allowed
| void add | ( | osc::OutboundPacketStream & | outPacket | ) | const |
Adds the value to an OSC packet that can be send over
| outPacket | the packet to add the value to |
| bool asBool | ( | ) | const |
| char asChar | ( | ) | const |
| double asDouble | ( | ) | const |
| float asFloat | ( | ) | const |
| int asInt | ( | ) | const |
| const std::string& asString | ( | ) | const |
| T * get |
| const T * get |
| rtti::TypeInfo getValueType | ( | ) | const |
| bool isBool | ( | ) | const |
| bool isChar | ( | ) | const |
| bool isDouble | ( | ) | const |
| bool isFloat | ( | ) | const |
| bool isInt | ( | ) | const |
| bool isNil | ( | ) | const |
| bool isString | ( | ) | const |
|
delete |
| std::size_t size | ( | ) | const |
| std::string toString | ( | ) |