#include <Status.h>
Public Member Functions | |
uint32_t | code (void) const |
uint32_t | code (void) const |
eformat::GenericStatus | generic (void) const |
eformat::GenericStatus | generic (void) const |
uint16_t | specific (void) const |
uint16_t | specific (void) const |
Status (uint32_t v) | |
Status (eformat::GenericStatus gen, uint16_t spec) | |
Status (uint32_t v) | |
Status (eformat::GenericStatus gen, uint16_t spec) | |
Private Attributes | |
eformat::GenericStatus | m_gen |
The generic part. | |
uint16_t | m_spec |
The specific part. |
|
Constructor. Takes the components to form a status
|
|
Constructor. Takes the status to understand the components from.
00016 : m_gen(static_cast<eformat::GenericStatus>(v&0xffff)), 00017 m_spec((v>>16)&0xffff) 00018 { 00019 }
|
|
Constructor. Takes the components to form a status
|
|
Constructor. Takes the status to understand the components from.
|
|
Gets the full 32-bit number made by assembling the 2 numbers above. |
|
Gets the full 32-bit number made by assembling the 2 numbers above. 00022 {
00023 uint32_t retval = m_spec;
00024 retval <<= 16;
00025 retval |= m_gen;
00026 return retval;
00027 }
|
|
Extracts the generic part of this status word 00075 { return m_gen; }
|
|
Extracts the generic part of this status word 00075 { return m_gen; }
|
|
Extracts the specific part of this status word 00080 { return m_spec; }
|
|
Extracts the specific part of this status word 00080 { return m_spec; }
|
|
The generic part.
|
|
The specific part.
|