The Address struct. More...

Detailed Description

The Address struct.

Represents an address in the style of Jamoma :

aDevice:/aNode/anotherNode

Public Member Functions

 Address (const Address &other) noexcept
 
 Address (Address &&) noexcept
 
Addressoperator= (const Address &other) noexcept
 
Addressoperator= (Address &&other) noexcept
 
 Address (QString d, QStringList p) noexcept
 
QString toString () const
 toString More...
 
QString toString_unsafe () const
 
QString toShortString () const
 toShortString More...
 
bool isSet () const noexcept
 
bool operator== (const Address &a) const
 
bool operator!= (const Address &a) const
 

Static Public Member Functions

static bool validateString (const QString &str)
 
static bool validateFragment (const QString &s)
 
static std::optional< AddressfromString (const QString &str)
 

Public Attributes

QString device
 
QStringList path
 

Member Function Documentation

◆ isSet()

bool Address::isSet ( ) const
noexcept

Returns true if the address is set to a meaningful thing, e.g. not ":/"

◆ toShortString()

QString Address::toShortString ( ) const

toShortString

Returns
If short, "dev:/foo", else the last fifteen chars.

◆ toString()

QString Address::toString ( ) const

toString

Returns
aDevice:/and/path if valid, else an empty string.

The documentation for this struct was generated from the following files: