Loading...
Searching...
No Matches
State::Address Struct Reference
Detailed Description
Public Member Functions | |
Address (const Address &other) noexcept | |
Address (Address &&) noexcept | |
Address & | operator= (const Address &other) noexcept |
Address & | operator= (Address &&other) noexcept |
Address (QString d, QStringList p) noexcept | |
QString | toString () const |
toString | |
QString | toString_unsafe () const |
QString | toShortString () const |
toShortString | |
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< Address > | fromString (const QString &str) |
Public Attributes | |
QString | device |
QStringList | path |
Member Function Documentation
◆ isSet()
|
noexcept |
Returns true if the address is set to a meaningful thing, e.g. not ":/"
◆ toShortString()
QString State::Address::toShortString | ( | ) | const |
toShortString
- Returns
- If short, "dev:/foo", else the last fifteen chars.
◆ toString()
QString State::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:
- Address.hpp
- Address.cpp