![]() |
Developer Application Interface (ARC API) v4.5.8
ARC, Inc. GenIV Application Interface
|
#include <CArcAlertPacket.h>
Public Member Functions | |
CArcAlertPacket (void) | |
virtual | ~CArcAlertPacket (void) |
bool | headerValid (void) const noexcept override |
const std::string | translate (void) |
const std::string | getName (void) const noexcept override |
![]() | |
CArcStatusPacket (void)=default | |
virtual | ~CArcStatusPacket (void)=default |
void | assign (std::uint8_t *pData, const std::uint32_t uiSize) |
bool | headerValid (void) const noexcept override |
constexpr std::uint32_t | command (void) noexcept |
std::uint32_t | value (const std::uint32_t uiIndex=0) const |
const std::uint32_t * | valueData (void) |
std::uint8_t | valueCount (void) |
bool | compare (const std::uint32_t uiValue=static_cast< std::uint32_t >(cmds_e::DONE)) noexcept |
template<typename... Args> | |
std::enable_if_t< std::conjunction_v< std::is_same< std::uint32_t, Args >... >, bool > | compare (Args... args) |
bool | success (void) noexcept |
bool | containsError (void) noexcept |
errorCodes_e | errorCode (void) noexcept |
const std::string | errorCodeDescription (void) |
const std::string | getName (void) const override |
![]() | |
virtual | ~CArcPacket (void)=default |
constexpr std::uint32_t | headerLength (void) const noexcept |
constexpr std::uint32_t | headerByteLength (void) const noexcept |
std::uint8_t | packetId (void) const |
bool | checkPacketId (std::uint32_t uiHeader, std::uint8_t uiPacketId) const noexcept |
std::uint8_t | payloadId (void) const |
std::uint8_t | payloadLength (void) const |
std::uint32_t | payloadByteLength (void) const |
std::uint32_t * | payload (void) const noexcept |
void | add (const std::uint32_t uiValue) |
std::uint32_t | length (void) const noexcept |
std::uint32_t | byteLength (void) const noexcept |
std::uint32_t | maxByteLength (void) const noexcept |
std::uint32_t | maxLength (void) const noexcept |
std::uint32_t | at (const std::uint32_t uiIndex) const |
std::uint32_t & | operator[] (const std::uint32_t uiIndex) |
std::uint8_t * | data (void) const noexcept |
virtual const std::string | toString (void) const |
virtual const std::string | toLogString (void) const |
![]() | |
virtual | ~CArcBase (void) |
Static Public Attributes | |
static constexpr std::uint32_t | MAX_PACKET_SIZE = CArcPacket::MAX_PACKET_SIZE |
![]() | |
static constexpr std::uint32_t | STATUS_START_INDEX = 1 |
Static Protected Attributes | |
static constexpr std::uint8_t | PAYLOAD_ID = 0xAE |
static constexpr std::uint32_t | READ_ALERT = 0x414C5254 |
![]() | |
static constexpr std::uint8_t | PAYLOAD_ID = 0xAF |
![]() | |
static constexpr auto | MAX_PACKET_SIZE = static_cast< std::uint32_t >( 1024 ) |
![]() | |
static const std::string | m_sVersion |
Additional Inherited Members | |
![]() | |
static const std::string | version (void) |
static void | zeroMemory (void *pDest, std::size_t uiSize) |
static void | copyMemory (void *pDest, void *pSrc, std::size_t uiSize) |
template<typename T > | |
static std::tuple< T *, T * > | copyAndIncrement (void *pDest, void *pSrc, const std::size_t uiSize) |
template<typename ErrCode > requires std::is_integral_v<ErrCode> | |
static const std::string | getSystemErrorMessage (ErrCode iErrCode) |
static const std::string | getSystemErrorMessage (void) |
static std::uint32_t | getSystemError (void) noexcept |
static pStringList_t | splitString (const std::string &sString, const char &zDelim=' ') |
static std::string | formatString (const char *pszFmt,...) |
static const std::filesystem::path | incrementFileName (const std::filesystem::path &tFilePath="", const std::int32_t iStartValue=-1) |
static std::string | convertWideToAnsi (const wchar_t wzString[]) noexcept |
static std::string | convertWideToAnsi (const std::wstring &wsString) |
static std::wstring | convertAnsiToWide (const char *pszString) |
static std::string | cmdToString (const std::uint32_t uiCmd) |
template<typename T > | |
static std::string | iterToString (T *begin, T *end, const char zSeperator=' ') |
static std::string | setDots (const std::string &sText, const std::size_t uiMaxLength, const char szDot='.') |
static std::string | trim (const std::string &sText) noexcept |
static const std::chrono::time_point< std::chrono::high_resolution_clock > | startCodeTime (void) noexcept |
template<typename T > | |
static constexpr auto | endCodeTime (const std::chrono::time_point< std::chrono::high_resolution_clock > tStartTimePoint) noexcept |
![]() | |
CArcPacket (const std::uint32_t uiSize=MAX_PACKET_SIZE) | |
void | incrementLength (const std::uint8_t uiIncr=1) noexcept |
![]() | |
CArcBase (void)=default | |
CArcBase (const CArcBase &)=delete | |
CArcBase (CArcBase &&)=delete | |
CArcBase & | operator= (const CArcBase &)=delete |
CArcBase & | operator= (CArcBase &&)=delete |
![]() | |
packetHeader_t * | m_pHeader |
std::uint32_t * | m_pPayload |
std::unique_ptr< std::uint8_t[]> | m_pData |
std::uint32_t | m_uiSize |
@breif ARC GenIV alert packet class. Alerts are issued from the controller when a problem arises that needs immediate attention.
All ARC GenIV devices and controllers communicate via packets.
Definition at line 35 of file CArcAlertPacket.h.
arc::gen4::CArcAlertPacket::CArcAlertPacket | ( | void | ) |
Constructor
|
virtual |
Destructor
|
overridevirtualnoexcept |
Determines if the packet contains a valid header. The implementation may change; thus no details are given.
Implements arc::gen4::CArcPacket.
const std::string arc::gen4::CArcAlertPacket::translate | ( | void | ) |
Translates the payload to ASCII characters.
std::ios_base::failure |
|
overridevirtualnoexcept |
Returns the packet name.
Any | exception thrown by std::string |
Implements arc::gen4::CArcPacket.
|
staticconstexpr |
Default maximum packet size ( in bytes )
Definition at line 66 of file CArcAlertPacket.h.
|
staticconstexprprotected |
Definition at line 71 of file CArcAlertPacket.h.
|
staticconstexprprotected |
Definition at line 74 of file CArcAlertPacket.h.