AJA NTV2 SDK
17.1.1.1245
NTV2 SDK 17.1.1.1245
|
#include <debug.h>
Public Member Functions | |
AJADebug () | |
virtual | ~AJADebug () |
Static Public Member Functions | |
static uint32_t | Version (void) |
static uint32_t | TotalBytes (void) |
static AJAStatus | Open (bool incrementRefCount=false) |
static AJAStatus | Close (bool decrementRefCount=false) |
static AJAStatus | Enable (int32_t index, uint32_t destination=AJA_DEBUG_DESTINATION_NONE) |
static AJAStatus | Disable (int32_t index, uint32_t destination=AJA_DEBUG_DESTINATION_NONE) |
static AJAStatus | SetDestination (int32_t index, uint32_t destination=AJA_DEBUG_DESTINATION_NONE) |
static AJAStatus | GetDestination (const int32_t inGroup, uint32_t &outDestination) |
static bool | IsActive (int32_t index) |
static bool | IsOpen (void) |
static bool | IsDebugBuild (void) |
static void | Report (int32_t index, int32_t severity, const char *pFileName, int32_t lineNumber,...) |
static void | Report (int32_t index, int32_t severity, const char *pFileName, int32_t lineNumber, const std::string &message) |
static void | AssertWithMessage (const char *pFileName, int32_t lineNumber, const std::string &pExpression) |
static uint32_t | MessageRingCapacity (void) |
static AJAStatus | GetClientReferenceCount (int32_t &outRefCount) |
static AJAStatus | SetClientReferenceCount (int32_t refCount) |
static AJAStatus | GetSequenceNumber (uint64_t &outSequenceNumber) |
static AJAStatus | GetMessageSequenceNumber (const uint64_t sequenceNumber, uint64_t &outSequenceNumber) |
static AJAStatus | GetMessageGroup (const uint64_t sequenceNumber, int32_t &outGroupIndex) |
static AJAStatus | GetMessageDestination (const uint64_t sequenceNumber, uint32_t &outDestination) |
static AJAStatus | GetMessageTime (const uint64_t sequenceNumber, uint64_t &outTime) |
static AJAStatus | GetMessageWallClockTime (const uint64_t sequenceNumber, int64_t &outTime) |
static AJAStatus | GetMessageFileName (const uint64_t sequenceNumber, std::string &outFileName) |
static AJAStatus | GetMessageLineNumber (const uint64_t sequenceNumber, int32_t &outLineNumber) |
static AJAStatus | GetMessageSeverity (const uint64_t sequenceNumber, int32_t &outSeverity) |
static AJAStatus | GetMessageText (const uint64_t sequenceNumber, std::string &outMessage) |
static AJAStatus | GetProcessId (const uint64_t sequenceNumber, uint64_t &outPid) |
static AJAStatus | GetThreadId (const uint64_t sequenceNumber, uint64_t &outTid) |
static AJAStatus | GetMessagesAccepted (uint64_t &outCount) |
static AJAStatus | GetMessagesIgnored (uint64_t &outCount) |
static const std::string & | SeverityName (const int32_t severity) |
static const std::string & | GroupName (const int32_t group) |
static AJAStatus | SaveState (const std::string &inFilePath) |
static AJAStatus | RestoreState (const std::string &inFilePath) |
static uint32_t | StatsCapacity (void) |
static bool | HasStats (void) |
static AJAStatus | StatAllocate (const uint32_t inKey) |
static AJAStatus | StatFree (const uint32_t inKey) |
static bool | StatIsAllocated (const uint32_t inKey) |
static AJAStatus | StatReset (const uint32_t inKey) |
static AJAStatus | StatTimerStart (const uint32_t inKey) |
static AJAStatus | StatTimerStop (const uint32_t inKey) |
static AJAStatus | StatCounterIncrement (const uint32_t inKey, const uint32_t inIncrement=1) |
static AJAStatus | StatSetValue (const uint32_t inKey, const uint32_t inValue) |
static AJAStatus | StatGetInfo (const uint32_t inKey, AJADebugStat &outInfo) |
static AJAStatus | StatGetKeys (std::vector< uint32_t > &outKeys, uint32_t &outSeqNum) |
static AJAStatus | StatGetKeys (std::set< uint32_t > &outKeys, uint32_t &outSeqNum) |
static AJAStatus | StatGetSequenceNum (uint32_t &outSeqNum) |
static int64_t | DebugTime (void) |
static const char * | GetSeverityString (int32_t severity) |
static const char * | GetGroupString (int32_t group) |
static AJAStatus | GetDestination (int32_t index, uint32_t *pDestination) |
static AJAStatus | GetClientReferenceCount (int32_t *pRefCount) |
static AJAStatus | GetSequenceNumber (uint64_t *pSequenceNumber) |
static AJAStatus | GetMessageSequenceNumber (uint64_t sequenceNumber, uint64_t *pSequenceNumber) |
static AJAStatus | GetMessageGroup (uint64_t sequenceNumber, int32_t *pGroupIndex) |
static AJAStatus | GetMessageDestination (uint64_t sequenceNumber, uint32_t *pDestination) |
static AJAStatus | GetMessageTime (uint64_t sequenceNumber, uint64_t *pTime) |
static AJAStatus | GetMessageWallClockTime (uint64_t sequenceNumber, int64_t *pTime) |
static AJAStatus | GetMessageFileName (uint64_t sequenceNumber, const char **ppFileName) |
static AJAStatus | GetMessageLineNumber (uint64_t sequenceNumber, int32_t *pLineNumber) |
static AJAStatus | GetMessageSeverity (uint64_t sequenceNumber, int32_t *pSeverity) |
static AJAStatus | GetMessageText (uint64_t sequenceNumber, const char **ppMessage) |
static AJAStatus | GetProcessId (uint64_t sequenceNumber, uint64_t *pPid) |
static AJAStatus | GetThreadId (uint64_t sequenceNumber, uint64_t *pTid) |
static AJAStatus | GetMessagesAccepted (uint64_t *pCount) |
static AJAStatus | GetMessagesIgnored (uint64_t *pCount) |
static void * | GetPrivateDataLoc (void) |
static size_t | GetPrivateDataLen (void) |
|
static |
Release resources used by the debug system.
Invoke before application terminates.
[in] | decrementRefCount | If true will decrement the ref count in the shared memory, NOTE that this should only be true when used in something that is processing the log messages, like ajalogger. |
|
static |
|
static |
Disable delivery of messages to the destination index.
[in] | index | Specify the message destinations for this group index. |
[in] | destination | Bit array of message destinations (AJA_DEBUG_DESTINATION). |
|
static |
Enable delivery of messages to the destination index.
[in] | index | Specify the message destinations for this group index. |
[in] | destination | Bit array of message destinations (AJA_DEBUG_DESTINATION). |
|
static |
Get the reference count for the number of clients accessing shared debug info
[out] | outRefCount | Receives the current client reference count. |
|
inlinestatic |
|
static |
Get the destination associated with a debug group.
[in] | inGroup | Index of the group destination to return. |
[out] | outDestination | Receives the current destination |
|
inlinestatic |
|
static |
|
static |
Get the destination of the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outDestination | Receives the destination of the message. |
|
inlinestatic |
|
static |
Get the source file name that reported the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outFileName | Receives the source file name that reported the message. |
|
static |
|
static |
Get the group index that reported the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outGroupIndex | Receives the group that reported the message. |
|
inlinestatic |
|
static |
Get the source line number that reported the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outLineNumber | Receives the source line number that reported the message. |
|
inlinestatic |
|
static |
Get the number of messages accepted into the ring since creation.
[out] | outCount | Receives the number of messages |
|
inlinestatic |
|
static |
Get the sequence number recorded in the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outSequenceNumber | Receives the sequence number recorded in the message. |
|
inlinestatic |
|
static |
Get the severity of the reported message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outSeverity | Receives the severity of the reported message. |
|
inlinestatic |
|
static |
Get the number of messages ignored and not put into the ring since creation.
[out] | outCount | Receives the number of messages |
|
inlinestatic |
|
static |
Get the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outMessage | Receives the message text |
|
static |
|
static |
Get the time the message was reported.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outTime | Receives the time the message was reported. |
|
inlinestatic |
|
static |
Get the wall clock time the message was reported.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outTime | Receives the wall clock time the message was reported, as returned from time() |
|
inlinestatic |
|
static |
Get the Process Id that reported the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outPid | Process Id that reported the message. |
|
inlinestatic |
|
static |
Get the sequence number of the latest message
[out] | outSequenceNumber | Receives the current sequence number. |
|
inlinestatic |
|
static |
|
static |
Get the Thread Id that reported the message.
[in] | sequenceNumber | Sequence number of the message. |
[out] | outTid | Receives the thread Id that reported the message. |
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Initialize the debug system.
Invoke before reporting debug messages.
[in] | incrementRefCount | If true will increment the ref count in the shared memory, NOTE that this should only be true when used in something that is processing the log messages, like ajalogger. |
|
static |
Report debug message to the specified destination index.
[in] | index | Report the message to this destination index. |
[in] | severity | Severity (::AJA_DEBUG_SEVERITY) of the message to report. |
[in] | pFileName | The source filename reporting the message. |
[in] | lineNumber | The line number in the source file reporting the message. |
[in] | message | The message to report. |
|
static |
Report debug message to the specified destination index.
[in] | index | Report the message to this destination index. |
[in] | severity | Severity (::AJA_DEBUG_SEVERITY) of the message to report. |
[in] | pFileName | The source filename reporting the message. |
[in] | lineNumber | The line number in the source file reporting the message. |
[in] | ... | Format parameters to be passed to vsprintf. The first is the format itself. |
|
static |
|
static |
|
static |
Set the reference count for the number of clients accessing shared debug info NOTE: in normal circumstances this should never be used, if set to 0 or less the debug system will be closed (shared memory cleaned up)
[in] | refCount | The client reference count to set. |
|
static |
Enable delivery of messages to the destination index.
[in] | index | Specify the message destinations for this index. |
[in] | destination | Bit array of message destinations (AJA_DEBUG_DESTINATION). |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |