AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
ntv2nubaccess.cpp File Reference

Implementation of NTV2Dictionary, NTV2DeviceSpecParser, NTV2RPCClientAPI & NTV2RPCServerAPI classes. More...

#include "ajatypes.h"
#include "ntv2utils.h"
#include "ntv2nubaccess.h"
#include "ntv2publicinterface.h"
#include "ntv2version.h"
#include "ajabase/system/debug.h"
#include "ajabase/common/common.h"
#include "ajabase/system/info.h"
#include "ajabase/system/systemtime.h"
#include "ajabase/system/thread.h"
#include <iomanip>
#include <fstream>
#include "mbedtls/x509.h"
#include "mbedtls/error.h"
#include "mbedtls/md.h"
#include "mbedtls/ssl.h"
#include <CoreFoundation/CoreFoundation.h>
#include <dlfcn.h>
Include dependency graph for ntv2nubaccess.cpp:

Go to the source code of this file.

Classes

class  NTV2Plugin
 
class  PluginRegistry
 
class  NTV2PluginLoader
 

Macros

#define DLL_EXTENSION   ".dylib"
 
#define PATH_DELIMITER   "/"
 
#define FIRMWARE_FOLDER   "Firmware" PATH_DELIMITER
 
#define SIG_EXTENSION   ".sig"
 
#define INSTP(_p_)   xHEX0N(uint64_t(_p_),16)
 
#define NBFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define NBWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define NBNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define NBINFO(__x__)   AJA_sINFO (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define NBDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 
#define NBCFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)
 
#define NBCWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)
 
#define NBCNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)
 
#define NBCINFO(__x__)   AJA_sINFO (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)
 
#define NBCDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)
 
#define NBSFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)
 
#define NBSWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)
 
#define NBSNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)
 
#define NBSINFO(__x__)   AJA_sINFO (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)
 
#define NBSDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)
 
#define PLGFAIL(__x__)   AJA_sERROR (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLGWARN(__x__)   AJA_sWARNING(AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLGNOTE(__x__)   AJA_sNOTICE (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLGINFO(__x__)   AJA_sINFO (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define PLGDBG(__x__)   AJA_sDEBUG (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)
 
#define P_FAIL(__x__)
 
#define P_WARN(__x__)
 
#define P_NOTE(__x__)
 
#define P_INFO(__x__)
 
#define P_DBG(__x__)
 
#define _DEBUGSTATS_
 
#define PDBGX(__x__)   AJA_sDEBUG (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)
 

Typedefs

typedef AJARefPtr< NTV2PluginNTV2PluginPtr
 
typedef AJARefPtr< PluginRegistryPluginRegistryPtr
 

Functions

static uint32_t gBaseConstructCount (0)
 
static uint32_t gBaseDestructCount (0)
 
static uint32_t gClientConstructCount (0)
 
static uint32_t gClientDestructCount (0)
 
static uint32_t gServerConstructCount (0)
 
static uint32_t gServerDestructCount (0)
 
static uint32_t gLoaderConstructCount (0)
 
static uint32_t gLoaderDestructCount (0)
 
static uint32_t gPluginConstructCount (0)
 
static uint32_t gPluginDestructCount (0)
 
void DumpLoadedPlugins (void)
 

Detailed Description

Implementation of NTV2Dictionary, NTV2DeviceSpecParser, NTV2RPCClientAPI & NTV2RPCServerAPI classes.

Definition in file ntv2nubaccess.cpp.

Macro Definition Documentation

◆ _DEBUGSTATS_

#define _DEBUGSTATS_

Definition at line 82 of file ntv2nubaccess.cpp.

◆ DLL_EXTENSION

#define DLL_EXTENSION   ".dylib"

Definition at line 28 of file ntv2nubaccess.cpp.

◆ FIRMWARE_FOLDER

#define FIRMWARE_FOLDER   "Firmware" PATH_DELIMITER

Definition at line 30 of file ntv2nubaccess.cpp.

◆ INSTP

#define INSTP (   _p_)    xHEX0N(uint64_t(_p_),16)

Definition at line 49 of file ntv2nubaccess.cpp.

◆ NBCDBG

#define NBCDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)

Definition at line 59 of file ntv2nubaccess.cpp.

◆ NBCFAIL

#define NBCFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)

Definition at line 55 of file ntv2nubaccess.cpp.

◆ NBCINFO

#define NBCINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)

Definition at line 58 of file ntv2nubaccess.cpp.

◆ NBCNOTE

#define NBCNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)

Definition at line 57 of file ntv2nubaccess.cpp.

◆ NBCWARN

#define NBCWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_RPCClient, AJAFUNC << ": " << __x__)

Definition at line 56 of file ntv2nubaccess.cpp.

◆ NBDBG

#define NBDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 54 of file ntv2nubaccess.cpp.

◆ NBFAIL

#define NBFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 50 of file ntv2nubaccess.cpp.

◆ NBINFO

#define NBINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 53 of file ntv2nubaccess.cpp.

◆ NBNOTE

#define NBNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 52 of file ntv2nubaccess.cpp.

◆ NBSDBG

#define NBSDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)

Definition at line 64 of file ntv2nubaccess.cpp.

◆ NBSFAIL

#define NBSFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)

Definition at line 60 of file ntv2nubaccess.cpp.

◆ NBSINFO

#define NBSINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)

Definition at line 63 of file ntv2nubaccess.cpp.

◆ NBSNOTE

#define NBSNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)

Definition at line 62 of file ntv2nubaccess.cpp.

◆ NBSWARN

#define NBSWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_RPCServer, AJAFUNC << ": " << __x__)

Definition at line 61 of file ntv2nubaccess.cpp.

◆ NBWARN

#define NBWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_RPCClient, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 51 of file ntv2nubaccess.cpp.

◆ P_DBG

#define P_DBG (   __x__)
Value:
if (useStdout()) cout << "## DEBUG: " << AJAFUNC << ": " << __x__ << endl; \
AJA_sDEBUG (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 80 of file ntv2nubaccess.cpp.

◆ P_FAIL

#define P_FAIL (   __x__)
Value:
if (useStdout()) cout << "## ERROR: " << AJAFUNC << ": " << __x__ << endl; \
AJA_sERROR (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 72 of file ntv2nubaccess.cpp.

◆ P_INFO

#define P_INFO (   __x__)
Value:
if (useStdout()) cout << "## INFO: " << AJAFUNC << ": " << __x__ << endl; \
AJA_sINFO (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 78 of file ntv2nubaccess.cpp.

◆ P_NOTE

#define P_NOTE (   __x__)
Value:
if (useStdout()) cout << "## NOTE: " << AJAFUNC << ": " << __x__ << endl; \
AJA_sNOTICE (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 76 of file ntv2nubaccess.cpp.

◆ P_WARN

#define P_WARN (   __x__)
Value:
if (useStdout()) cout << "## WARNING: " << AJAFUNC << ": " << __x__ << endl; \
AJA_sWARNING(AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 74 of file ntv2nubaccess.cpp.

◆ PATH_DELIMITER

#define PATH_DELIMITER   "/"

Definition at line 29 of file ntv2nubaccess.cpp.

◆ PDBGX

#define PDBGX (   __x__)    AJA_sDEBUG (AJA_DebugUnit_Plugins, INSTP(this) << "::" << AJAFUNC << ": " << __x__)

Definition at line 84 of file ntv2nubaccess.cpp.

◆ PLGDBG

#define PLGDBG (   __x__)    AJA_sDEBUG (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 70 of file ntv2nubaccess.cpp.

◆ PLGFAIL

#define PLGFAIL (   __x__)    AJA_sERROR (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 66 of file ntv2nubaccess.cpp.

◆ PLGINFO

#define PLGINFO (   __x__)    AJA_sINFO (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 69 of file ntv2nubaccess.cpp.

◆ PLGNOTE

#define PLGNOTE (   __x__)    AJA_sNOTICE (AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 68 of file ntv2nubaccess.cpp.

◆ PLGWARN

#define PLGWARN (   __x__)    AJA_sWARNING(AJA_DebugUnit_Plugins, AJAFUNC << ": " << __x__)

Definition at line 67 of file ntv2nubaccess.cpp.

◆ SIG_EXTENSION

#define SIG_EXTENSION   ".sig"

Definition at line 45 of file ntv2nubaccess.cpp.

Typedef Documentation

◆ NTV2PluginPtr

Definition at line 946 of file ntv2nubaccess.cpp.

◆ PluginRegistryPtr

Definition at line 1102 of file ntv2nubaccess.cpp.

Function Documentation

◆ DumpLoadedPlugins()

void DumpLoadedPlugins ( void  )

Definition at line 1815 of file ntv2nubaccess.cpp.

◆ gBaseConstructCount()

static uint32_t gBaseConstructCount ( )
static

◆ gBaseDestructCount()

static uint32_t gBaseDestructCount ( )
static

◆ gClientConstructCount()

static uint32_t gClientConstructCount ( )
static

◆ gClientDestructCount()

static uint32_t gClientDestructCount ( )
static

◆ gLoaderConstructCount()

static uint32_t gLoaderConstructCount ( )
static

◆ gLoaderDestructCount()

static uint32_t gLoaderDestructCount ( )
static

◆ gPluginConstructCount()

static uint32_t gPluginConstructCount ( )
static

◆ gPluginDestructCount()

static uint32_t gPluginDestructCount ( )
static

◆ gServerConstructCount()

static uint32_t gServerConstructCount ( )
static

◆ gServerDestructCount()

static uint32_t gServerDestructCount ( )
static
AJA_DebugUnit_Plugins
@ AJA_DebugUnit_Plugins
Definition: debugshare.h:62
AJAFUNC
#define AJAFUNC
Definition: ajatypes.h:323