An OSC address. More...
#include <juce_OSCAddress.h>
Public Member Functions | |
OSCAddress (const String &address) | |
Constructs a new OSCAddress from a String. More... | |
OSCAddress (const char *address) | |
Constructs a new OSCAddress from a C string. More... | |
bool | operator!= (const OSCAddress &other) const noexcept |
Compares two OSCAddress objects. More... | |
bool | operator== (const OSCAddress &other) const noexcept |
Compares two OSCAddress objects. More... | |
String | toString () const noexcept |
Converts the OSCAddress to a String. More... | |
Private Attributes | |
String | asString |
StringArray | oscSymbols |
Friends | |
class | OSCAddressPattern |
An OSC address.
This address always starts with a forward slash and has a format similar to an URL, with several address parts separated by slashes.
Only a subset of ASCII characters are allowed in OSC addresses; see OpenSoundControl 1.0 specification for details.
OSC addresses can be used to register OSCMessageListener objects to an OSCReceiver if you wish them to only listen to certain messages with matching OSC address patterns.
{OSC}
juce::OSCAddress::OSCAddress | ( | const String & | address | ) |
Constructs a new OSCAddress from a String.
OSCFormatError | if the string is not a valid OSC address. |
juce::OSCAddress::OSCAddress | ( | const char * | address | ) |
Constructs a new OSCAddress from a C string.
OSCFormatError | of the string is not a valid OSC address. |
|
noexcept |
Compares two OSCAddress objects.
|
noexcept |
Compares two OSCAddress objects.
|
noexcept |
Converts the OSCAddress to a String.
Note: Trailing slashes are always removed automatically.
|
friend |
|
private |
|
private |