Application State Change. More...
#include <state_change.hpp>


Classes | |
| struct | messageT |
| The type of the message. More... | |
Static Public Member Functions | |
| static bool | verify (flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len) |
| static std::string | msgString (void *msgBuffer, flatlogs::msgLenT len) |
| Format the message for text output, including translation of state codes to text form. | |
| static std::string | from (void *msgBuffer) |
| Access the from field. | |
| static std::string | to (void *msgBuffer) |
| Access the to field. | |
| static logMetaDetail | getAccessor (const std::string &member) |
| Get an empty logMetaDetail because meta data doesn't make sense for this log. | |
| static flatlogs::msgLenT | length (const fbMessage &msg) |
| Get the length of the message. | |
| static int | format (void *msgBuffer, const fbMessage &msg) |
| Format the buffer given the input message. | |
| static std::string | msgJSON (void *msgBuffer, flatlogs::msgLenT len, const uint8_t *binarySchema, const unsigned int binarySchemaLength) |
Static Public Attributes | |
| static const flatlogs::eventCodeT | eventCode = eventCodes::STATE_CHANGE |
| static const flatlogs::logPrioT | defaultLevel = flatlogs::logPrio::LOG_INFO |
Application State Change.
Definition at line 27 of file state_change.hpp.
|
inlinestaticinherited |
Format the buffer given the input message.
| [out] | msgBuffer | the buffer, must be pre-allocated to size length(msg) |
| [in] | msg | the message which contains a flatbuffer builder, from which the data are memcpy-ed. |
Definition at line 54 of file flatbuffer_log.hpp.
|
inlinestatic |
Access the from field.
| [in] | msgBuffer | Buffer containing the flatbuffer serialized message. |
Definition at line 73 of file state_change.hpp.
References MagAOX::app::stateCodes::codeText(), and MagAOX::logger::GetState_change_fb().
Referenced by MagAOX::logger::state_change::messageT::messageT().
|
inlinestatic |
Get an empty logMetaDetail because meta data doesn't make sense for this log.
| [in] | member | the name of the member |
Definition at line 90 of file state_change.hpp.
Referenced by MagAOX::logger::logMemberAccessor(), and libXWCTest::loggerTest::logTypeAccessorTest::TEST_CASE().
|
inlinestaticinherited |
Get the length of the message.
| [in] | msg | the fbMessage type holding a FlatBufferBuilder |
Definition at line 46 of file flatbuffer_log.hpp.
|
inlinestaticinherited |
| [in] | msgBuffer | Buffer containing the flatbuffer serialized message. |
| [in] | len | [unused] length of msgBuffer. |
| [in] | binarySchema | flatbuffers binary schema for this log type |
| [in] | binarySchemaLength | flatbuffers binary schema length |
Definition at line 65 of file flatbuffer_log.hpp.
|
inlinestatic |
Format the message for text output, including translation of state codes to text form.
| [in] | msgBuffer | Buffer containing the flatbuffer serialized message. |
| [in] | len | [unused] length of msgBuffer. |
Definition at line 59 of file state_change.hpp.
References MagAOX::app::stateCodes::codeText(), and MagAOX::logger::GetState_change_fb().
|
inlinestatic |
Access the to field.
| [in] | msgBuffer | Buffer containing the flatbuffer serialized message. |
Definition at line 80 of file state_change.hpp.
References MagAOX::app::stateCodes::codeText(), and MagAOX::logger::GetState_change_fb().
Referenced by MagAOX::logger::state_change::messageT::messageT().
|
inlinestatic |
| [in] | logBuff | Buffer containing the flatbuffer serialized message. |
| [in] | len | length of msgBuffer. |
Definition at line 47 of file state_change.hpp.
References flatlogs::logHeader::messageBuffer(), and MagAOX::logger::VerifyState_change_fbBuffer().
Referenced by MagAOX::logger::logVerify().
|
static |
Definition at line 33 of file state_change.hpp.
|
static |
Definition at line 30 of file state_change.hpp.