Address

A parsed OSC address, splitted in multiple parts.

Constructors

this
this(string addr)

Constructs a new address from a string.

this
this(const(Address) copy)

Constructs a new address from another one.

this
this(const(string)[] parts, bool endsWithMethod)

Constructs a new address from a container list.

Members

Functions

match
bool match(const(Address) addr)

Checks if the given address match the current one.

opBinary
Address opBinary(string rhs)

Adds a container at the end of the address.

opEquals
bool opEquals(Address addr)

Checks if the object is the same as the current instance.

opIndex
string opIndex(size_t idx)

Access to a container in the address.

popBack
void popBack()

Removes the last container (or the method) of the address.

popFront
void popFront()

Removes the first container of the address.

pushBack
Address* pushBack(string cont)

Adds a container to the end of the address.

pushFront
Address* pushFront(string cont)

Adds a container to the start of the address.

save
Address save()

Copies the container range.

setMethod
Address* setMethod(string m)

Sets the method of the address.

toString
string toString()

Converts the address to a string.

Properties

back
string back [@property getter]

Gets the last container (or the method) of the address.

container
Address container [@property getter]

Returns the address of the container.

empty
bool empty [@property getter]

Checks if the container range is empty.

front
string front [@property getter]

Gets the first container of the address.

isContainer
bool isContainer [@property getter]

Is the current address a container ?

isMethod
bool isMethod [@property getter]

Is the current address a method ?

isRoot
bool isRoot [@property getter]

Is the current address "/" ?

length
size_t length [@property getter]

Returns the number of containers (including the method) in the address.

method
string method [@property getter]

Returns the method's name of the address.

method
string method [@property setter]

Sets the method's name of the address.

Meta