|
Open Model Railroad Network (OpenMRN)
|
Strongly typed wrapper representing a long DCC address. More...
#include <Address.hxx>
Public Member Functions | |
| DccLongAddress (unsigned v) | |
| Constructor. | |
Public Attributes | |
| uint16_t | value |
| Address value. | |
Static Public Attributes | |
| static constexpr unsigned | ADDRESS_MAX = 10239 |
| Largest valid address. | |
Strongly typed wrapper representing a long DCC address.
This allows C++ type inference to decide whether a particular value is a long or short address.
Definition at line 65 of file Address.hxx.
|
inlineexplicit |
Constructor.
| v | is the address value (0<=v<10239); |
Definition at line 72 of file Address.hxx.
|
staticconstexpr |
Largest valid address.
Definition at line 68 of file Address.hxx.
| uint16_t dcc::DccLongAddress::value |
Address value.
Definition at line 70 of file Address.hxx.