AJA NTV2 SDK  18.1.0.2149
NTV2 SDK 18.1.0.2149
ntv2nubaccess.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MIT */
8 #ifndef NTV2NUBACCESS_H
9 #define NTV2NUBACCESS_H
10 
11 #include "ntv2utils.h" // NTV2StringList
12 #include "ajabase/system/lock.h" // AJALock
13 #include <string>
14 #include <vector>
15 #include <map>
16 
17 // TYPEDEFs
18 typedef std::pair<NTV2DeviceID, ULWord64> NTV2DeviceIDSerialPair;
19 typedef std::vector<NTV2DeviceIDSerialPair> NTV2DeviceIDSerialPairs;
20 typedef NTV2DeviceIDSerialPairs::iterator NTV2DeviceIDSerialPairsIter;
21 typedef NTV2DeviceIDSerialPairs::const_iterator NTV2DeviceIDSerialPairsConstIter;
22 
23 // Supported NTV2ConnectParams:
24 #define kConnectParamScheme "scheme"
25 #define kConnectParamHost "host"
26 #define kConnectParamPort "port"
27 #define kConnectParamDevIndex "deviceindex"
28 #define kConnectParamDevSerial "deviceserial"
29 #define kConnectParamDevModel "devicemodel"
30 #define kConnectParamDevID "deviceid"
31 #define kConnectParamResource "resourcePath"
32 #define kConnectParamQuery "query"
33 
34 // AJA query params:
35 #define kQParamVerboseLogging "verbose"
36 #define kQParamLogToStdout "stdout"
37 #define kQParamShowX509Cert "showcert"
38 #define kQParamShowParams "showparams"
39 #define kQParamDebugRegistry "debugregistry"
40 #define kQParamNumWorkers "numworkers"
41 
42 // AJA VDEV params:
43 #define kQParamVDevFolderPath "vdevfpath"
44 #define kQParamVDevName "vdevname"
45 #define kQParamVDevFileName "vdevfname"
46 #define kQParamVDevIndex "vdevindex"
47 
48 // AJA VDEV JSON keys:
49 #define kVDevJSON_Name "name"
50 #define kVDevJSON_URLSpec "urlspec"
51 #define kVDevJSON_Disabled "disabled"
52 #define kVDevJSON_Plugin "plugin"
53 #define kVDevJSON_Host "host"
54 
55 // Local URL schemes:
56 #define kLegalSchemeNTV2 "ntv2"
57 #define kLegalSchemeNTV2Local "ntv2local"
58 
59 // Exported Function Names:
60 #define kFuncNameCreateClient "CreateClient"
61 #define kFuncNameCreateServer "CreateServer"
62 #define kFuncNameGetRegInfo "GetRegistrationInfo"
63 
64 // Other Info Keys:
65 #define kNTV2PluginInfoKey_PluginsPath "PluginsPath"
66 #define kNTV2PluginInfoKey_PluginPath "PluginPath"
67 #define kNTV2PluginInfoKey_PluginSigPath "PluginSigPath"
68 #define kNTV2PluginInfoKey_PluginBaseName "PluginBaseName"
69 #define kNTV2PluginInfoKey_Fingerprint "serial number"
70 #define kNTV2PluginInfoKey_Errors "errors"
71 
72 // Plugin Registration Info Keys:
73 #define kNTV2PluginRegInfoKey_Vendor "Vendor"
74 #define kNTV2PluginRegInfoKey_CommonName "CommonName"
75 #define kNTV2PluginRegInfoKey_OrgUnit "OrgUnit"
76 #define kNTV2PluginRegInfoKey_ShortName "ShortName"
77 #define kNTV2PluginRegInfoKey_LongName "LongName"
78 #define kNTV2PluginRegInfoKey_Description "Description"
79 #define kNTV2PluginRegInfoKey_Copyright "Copyright"
80 #define kNTV2PluginRegInfoKey_NTV2SDKVersion "NTV2SDKVersion"
81 #define kNTV2PluginRegInfoKey_Version "Version"
82 #define kNTV2PluginRegInfoKey_CommitSHA "CommitSHA"
83 #define kNTV2PluginRegInfoKey_ReqParams "RequiredParams"
84 #define kNTV2PluginRegInfoKey_OptParams "OptionalParams"
85 
86 // Plugin Signature File Keys:
87 #define kNTV2PluginSigFileKey_X509Certificate "X509Certificate"
88 #define kNTV2PluginSigFileKey_Signature "Signature"
89 
90 // X509 Certificate Attribute Keys:
91 #define kNTV2PluginX500AttrKey_CommonName "CN"
92 #define kNTV2PluginX500AttrKey_LocalityName "L"
93 #define kNTV2PluginX500AttrKey_StateOrProvinceName "ST"
94 #define kNTV2PluginX500AttrKey_OrganizationName "O"
95 #define kNTV2PluginX500AttrKey_OrganizationalUnitName "OU"
96 #define kNTV2PluginX500AttrKey_CountryName "C"
97 
98 extern uint32_t gBaseConstructCount; // Number of NTV2RPCBase constructor calls made
99 extern uint32_t gBaseDestructCount; // Number of NTV2RPCBase destructor calls made
100 extern uint32_t gClientConstructCount; // Number of NTV2RPCClient constructor calls made
101 extern uint32_t gClientDestructCount; // Number of NTV2RPCClient destructor calls made
102 extern uint32_t gServerConstructCount; // Number of NTV2RPCServer constructor calls made
103 extern uint32_t gServerDestructCount; // Number of NTV2RPCServer destructor calls made
104 extern uint32_t gLoaderConstructCount; // Number of NTV2PluginLoader constructor calls made
105 extern uint32_t gLoaderDestructCount; // Number of NTV2PluginLoader destructor calls made
106 extern uint32_t gPluginConstructCount; // Number of NTV2Plugin constructor calls made
107 extern uint32_t gPluginDestructCount; // Number of NTV2Plugin destructor calls made
108 
113 {
114  public:
118  inline size_t size (void) const {return mDict.size();}
120  inline bool empty (void) const {return mDict.empty();}
121  inline bool hasKey (const std::string & inKey) const {return mDict.find(inKey) != mDict.end();}
122  std::string valueForKey (const std::string & inKey) const;
123  uint16_t u16ValueForKey (const std::string & inKey, const uint16_t inDefault = 0) const;
124  NTV2StringSet keys (void) const;
125  size_t largestKeySize (void) const;
126  size_t largestValueSize (void) const;
127  std::ostream & Print (std::ostream & oss, const bool inCompact = true) const;
128  bool serialize (std::string & outStr) const;
129 
134  inline void clear (void) {mDict.clear();}
136  bool insert (const std::string & inKey, const std::string & inValue);
137  inline size_t erase (const std::string & inKey) {return hasKey(inKey) ? mDict.erase(inKey) : 0;}
138  size_t updateFrom (const NTV2Dictionary & inDict);
139  size_t addFrom (const NTV2Dictionary & inDict);
140  bool deserialize (const std::string & inStr);
141  #if !defined(NTV2_DEPRECATE_17_1)
142  inline NTV2_DEPRECATED_f(size_t UpdateFrom (const NTV2Dictionary & inDict)) {return updateFrom(inDict);}
143  inline NTV2_DEPRECATED_f(size_t AddFrom (const NTV2Dictionary & inDict)) {return addFrom(inDict);}
144  #endif // !defined(NTV2_DEPRECATE_17_1)
145 
147  public:
148  typedef std::map<std::string, std::string> Dict;
149  typedef Dict::const_iterator DictConstIter;
150  inline size_t initializeFrom (const Dict & inDict) {mDict = inDict; return size();}
151 
152  private:
153  Dict mDict;
154 }; // NTV2Dictionary
155 
159 typedef std::pair<std::string, std::string> NTV2DictionaryEntry, NTV2DictEntry, NTV2ConnectParam;
160 
161 inline std::ostream & operator << (std::ostream & oss, const NTV2Dictionary & inDict) {return inDict.Print(oss);}
162 
170 {
171  public:
172  NTV2DeviceSpecParser (const std::string inSpec = "");
173  void Reset (const std::string inSpec = "");
174  inline const std::string & DeviceSpec (void) const {return mSpec;}
175  std::string MakeDeviceSpec (const bool urlEncodeQuery) const;
176  std::string MakeQueryString (const bool urlEncode) const;
177  inline bool HasDeviceSpec (void) const {return !DeviceSpec().empty();}
178  inline bool Successful (void) const {return !Failed();}
179  inline bool Failed (void) const {return DeviceSpec().empty() ? true : HasErrors();}
180  inline bool HasScheme (void) const {return HasResult(kConnectParamScheme);}
181  inline std::string Scheme (void) const {return Result(kConnectParamScheme);}
182  inline bool IsLocalDevice (void) const {return Scheme() == kLegalSchemeNTV2Local || Scheme() == kLegalSchemeNTV2;}
183  inline size_t ErrorCount (void) const {return mErrors.size();}
184  inline bool HasErrors (void) const {return ErrorCount() > 0;}
185  inline std::string Error (const size_t inIndex = 0) const {if (inIndex < mErrors.size()) return mErrors.at(inIndex); return "";}
186  inline NTV2StringList Errors (void) const {return mErrors;}
187  inline NTV2ConnectParams Results (void) const {return mResult;}
188  inline bool HasResult (const std::string & inKey) const {return mResult.hasKey(inKey);}
189  std::string Result (const std::string & inKey) const {return mResult.valueForKey(inKey);}
190  std::string Resource (const bool inStripLeadSlash = true) const;
191  std::ostream & PrintErrors (std::ostream & oss) const;
192  std::ostream & Print (std::ostream & oss, const bool inDumpResults = false) const;
193  std::string InfoString (void) const;
194  std::string DeviceSerial (void) const {return Result(kConnectParamDevSerial);}
195  inline std::string DeviceModel (void) const {return Result(kConnectParamDevModel);}
196  NTV2DeviceID DeviceID (void) const;
197  UWord DeviceIndex (void) const;
198  inline const NTV2Dictionary & QueryParams (void) const {return mQueryParams;}
199  inline std::string QueryParam (const std::string & inKey) const {return mQueryParams.valueForKey(inKey);}
200  inline bool HasQueryParams (void) const {return !QueryParams().empty();}
201  #if defined(_DEBUG)
202  static void test (void);
203  #endif // defined(_DEBUG)
204 
205  private:
206  void Parse (void);
207  bool ParseHexNumber (size_t & pos, std::string & outToken);
208  bool ParseDecNumber (size_t & pos, std::string & outToken);
209  bool ParseAlphaNum (size_t & pos, std::string & outToken, const std::string & inOtherChars = ""); // Starts with letter followed by run of letters and/or digits and/or other chars
210  bool ParseAlphaNumeric (size_t & pos, std::string & outToken, const std::string & inOtherChars = ""); // A run of letters and/or decimal digits and/or other chars
211  bool ParseScheme (size_t & pos, std::string & outToken); // An alphanumeric name followed by "://"
212  bool ParseSerialNum (size_t & pos, std::string & outToken); // An 8 or 9 character alphanumeric name or a 64-bit hex number
213  bool ParseDeviceID (size_t & pos, std::string & outToken); // An 32-bit hex number that matches a known NTV2DeviceID
214  bool ParseModelName (size_t & pos, std::string & outToken); // An alphanumeric name that matches a known device model name
215  bool ParseDNSName (size_t & pos, std::string & outDNSName); // A domain name: one or more alphanumeric names separated with '.'
216  bool ParseIPv4Address (size_t & pos, std::string & outIPv4); // Exactly four decimal numbers, each no greater than 255, separated with '.'
217  bool ParseHostAddressAndPortNumber (size_t & pos, std::string & outAddr, std::string & outPort); // A host name or IPv4 address with an optional port number
218  bool ParseResourcePath (size_t & pos, std::string & outRsrc); // One or more '/'-separated alphanumeric names
219  bool ParseParamAssignment (size_t & pos, std::string & outKey, std::string & outValue); // An alphanumeric key optionally followed by '=' optionally followed by URL-encoded value string
220  bool ParseQuery (size_t & pos, NTV2Dictionary & outParams); // Starts with '?' one or more '&'-separated param assignments
221  inline int LargestResultKey (void) const {return int(mResult.largestKeySize());}
222  inline int LargestResultValue (void) const {return int(mResult.largestValueSize());}
223  inline char CharAt (const size_t inPos) {return inPos < mSpec.length() ? mSpec.at(inPos) : 0;}
224  inline size_t SpecLength (void) const {return mSpec.length();}
225  inline size_t CurrentPosition (void) const {return mPos;}
226  inline void AddError (const std::string & inError) {mErrors.push_back(inError);}
227  static bool IsUpperLetter (const char inChar);
228  static bool IsLowerLetter (const char inChar);
229  static bool IsLetter (const char inChar, const bool inIncludeUnderscore = false);
230  static bool IsDecimalDigit (const char inChar);
231  static bool IsHexDigit (const char inChar);
232  static bool IsLegalSerialNumChar (const char inChar);
233 
234  private:
235  std::string mSpec;
236  NTV2StringList mErrors;
237  NTV2ConnectParams mResult;
238  NTV2Dictionary mQueryParams;
239  size_t mPos;
240 
241  public: // Class Methods
254  static bool ParseQueryParams (const NTV2Dictionary & inSrcDict, NTV2Dictionary & outQueryParams);
255 }; // NTV2DeviceSpecParser
256 
257 
262 {
263  public:
264  static std::string ShortSDKVersion (void);
265  static std::string AJAFingerprint (const bool inLowerCase = false, const bool inStripColons = false);
266 
267  protected:
268  NTV2RPCBase (NTV2Dictionary params, uint32_t * pRefCon);
269  virtual ~NTV2RPCBase ();
270  bool SetParams (const NTV2ConfigParams & inNewParams, const bool inAugment = false);
271 
272  protected:
274  mutable AJALock mParamLock;
275  uint32_t * mpRefCon;
276 }; // NTV2RPCBase
277 
278 
292 {
293  public:
299  static NTV2RPCClientAPI * CreateClient (NTV2ConnectParams & inParams);
300 
301  public:
305  virtual std::string HostName (void) const {return ConnectParam(kConnectParamHost);}
307  virtual std::string Name (void) const {return "";}
308  virtual std::string Description (void) const;
309  virtual std::ostream & Print (std::ostream & oss) const;
311 
315  virtual bool NTV2Connect (void);
317  virtual bool NTV2Disconnect (void);
318  virtual bool IsConnected (void) const {return false;}
319 
324  virtual NTV2ConnectParams ConnectParams (void) const;
326  virtual bool HasConnectParam (const std::string & inParam) const;
327  virtual std::string ConnectParam (const std::string & inParam) const;
328  virtual bool ConnectHasScheme (void) const;
329  virtual inline bool SetConnectParams (const NTV2ConnectParams & inNewParams, const bool inAugment = false) {return !IsConnected() && SetParams(inNewParams, inAugment);}
330 
335  virtual bool NTV2ReadRegisterRemote (const ULWord regNum, ULWord & outRegValue, const ULWord regMask, const ULWord regShift);
337  virtual bool NTV2WriteRegisterRemote (const ULWord regNum, const ULWord regValue, const ULWord regMask, const ULWord regShift);
338  virtual bool NTV2AutoCirculateRemote (AUTOCIRCULATE_DATA & autoCircData);
339  virtual bool NTV2WaitForInterruptRemote (const INTERRUPT_ENUMS eInterrupt, const ULWord timeOutMs);
340  virtual bool NTV2DMATransferRemote (const NTV2DMAEngine inDMAEngine, const bool inIsRead,
341  const ULWord inFrameNumber, NTV2Buffer & inOutBuffer,
342  const ULWord inCardOffsetBytes, const ULWord inNumSegments,
343  const ULWord inSegmentHostPitch, const ULWord inSegmentCardPitch,
344  const bool inSynchronous);
345  virtual bool NTV2MessageRemote (NTV2_HEADER * pInMessage);
347 
351  virtual bool NTV2GetBoolParamRemote (const ULWord inParamID, ULWord & outValue); // New in SDK 17.0
353  virtual bool NTV2GetNumericParamRemote (const ULWord inParamID, ULWord & outValue); // New in SDK 17.0
354  virtual bool NTV2GetSupportedRemote (const ULWord inEnumsID, ULWordSet & outSupported); // New in SDK 17.0
356 
371  virtual bool NTV2QueryDevices (NTV2StringList & outDeviceInfos, std::string & outErrMsg)
372  {
373  outErrMsg.clear();
374  outDeviceInfos.clear();
375  return true;
376  }
377 
378  #if !defined(NTV2_DEPRECATE_16_3) // These functions are going away
379  virtual NTV2_DEPRECATED_16_3(bool NTV2DriverGetBitFileInformationRemote(BITFILE_INFO_STRUCT & nfo, const NTV2BitFileType typ));
380  virtual NTV2_DEPRECATED_16_3(bool NTV2DriverGetBuildInformationRemote(BUILD_INFO_STRUCT & buildInfo));
381  virtual NTV2_DEPRECATED_16_3(bool NTV2DownloadTestPatternRemote(const NTV2Channel ch, const NTV2PixelFormat pf, const UWord msk, const bool dma, const ULWord tpNum));
382  virtual NTV2_DEPRECATED_16_3(bool NTV2ReadRegisterMultiRemote(const ULWord numRegs, ULWord & outFailedRegNum, NTV2RegInfo outRegs[]));
383  virtual NTV2_DEPRECATED_16_3(bool NTV2GetDriverVersionRemote(ULWord & vers));
384  #endif // !defined(NTV2_DEPRECATE_16_3)
385 
386  virtual ~NTV2RPCClientAPI();
387 
388  protected:
389  NTV2RPCClientAPI (NTV2ConnectParams inParams, void * pRefCon);
390 
391  virtual bool NTV2OpenRemote (void);
392  virtual bool NTV2CloseRemote (void);
393 
394  protected:
395  uint32_t mSpare[1024];
396 }; // NTV2RPCClientAPI
397 
399 
400 inline std::ostream & operator << (std::ostream & oss, const NTV2RPCClientAPI & inObj) {return inObj.Print(oss);}
401 
407 {
408  public:
416  static NTV2RPCServerAPI * CreateServer (NTV2ConfigParams & inParams);
417 
426  static NTV2RPCServerAPI * CreateServer (const std::string & inURL);
427 
428  public:
432  virtual std::ostream & Print (std::ostream & oss) const;
434  virtual inline bool IsRunning (void) const {return mRunning;}
435 
440  virtual NTV2ConfigParams ConfigParams (void) const;
442  virtual bool HasConfigParam (const std::string & inParam) const;
443  virtual std::string ConfigParam (const std::string & inParam) const;
444  virtual inline bool SetConfigParams (const NTV2ConfigParams & inNewParams, const bool inAugment = false) {return SetParams(inNewParams, inAugment);}
445 
450  virtual void RunServer (void);
452  virtual inline void Stop (void) {mTerminate = true;}
453 
455  protected:
456  NTV2RPCServerAPI (NTV2ConnectParams inParams, void * pRefCon);
457  virtual ~NTV2RPCServerAPI();
458 
459  protected:
460  bool mRunning;
461  bool mTerminate;
462  uint32_t mSpare[1024];
463 }; // NTV2RPCServerAPI
464 
465 inline std::ostream & operator << (std::ostream & oss, const NTV2RPCServerAPI & inObj) {return inObj.Print(oss);}
466 
472 extern "C"
473 {
487  typedef bool (*fpGetRegistrationInfo) (const uint32_t /*inHostSDKVers*/, NTV2Dictionary & /*outInfo*/);
488 
496  typedef NTV2RPCClientAPI* (*fpCreateClient) (void * /*pRefCon*/, const NTV2ConnectParams & /*inParams*/, const uint32_t /*inHostSDKVersion*/);
497 
506  typedef NTV2RPCServerAPI* (*fpCreateServer) (void * /*pRefCon*/, const NTV2ConfigParams & /*inParams*/, const uint32_t /*inHostSDKVersion*/);
507 
508  #if !defined(NTV2_DEPRECATE_16_3) // Don't use these functions going forward
509  typedef NTV2RPCAPI* (*fpCreateNTV2SoftwareDevice) (void * /*pInDLLHandle*/, const std::string & /*inQueryStr*/, const uint32_t /*inHostSDKVersion*/);
510  #endif // !defined(NTV2_DEPRECATE_16_3)
511 }
512 
513 #endif // NTV2NUBACCESS_H
Everything needed to call CNTV2Card::ReadRegister or CNTV2Card::WriteRegister functions.
std::string QueryParam(const std::string &inKey) const
uint32_t gLoaderDestructCount
virtual bool NTV2QueryDevices(NTV2StringList &outDeviceInfos, std::string &outErrMsg)
Queries the devices that are accessible on the remote host.
std::ostream & operator<<(std::ostream &oss, const NTV2Dictionary &inDict)
#define kConnectParamDevSerial
Device with this serial number.
Definition: ntv2nubaccess.h:28
Declares the AJALock class.
NTV2Dictionary NTV2ConfigParams
A dictionary of parameters used to configure an RPC server.
bool(* fpGetRegistrationInfo)(const uint32_t, NTV2Dictionary &)
Obtains a plugin&#39;s registration information. Starting in SDK 17.1, all plugins must implement this fu...
size_t ErrorCount(void) const
uint32_t gServerDestructCount
NTV2FrameBufferFormat
Identifies a particular video frame buffer pixel format. See Device Frame Buffer Formats for details...
Definition: ntv2enums.h:221
#define NTV2_DEPRECATED_16_3(__f__)
Definition: ajatypes.h:556
NTV2DeviceIDSerialPairs::const_iterator NTV2DeviceIDSerialPairsConstIter
Definition: ntv2nubaccess.h:21
virtual bool SetConnectParams(const NTV2ConnectParams &inNewParams, const bool inAugment=false)
Replaces or adds to my connect parameters.
size_t size(void) const
const std::string & DeviceSpec(void) const
NTV2Dictionary NTV2Dict
NTV2RPCClientAPI NTV2RPCAPI
bool Failed(void) const
bool HasDeviceSpec(void) const
#define kLegalSchemeNTV2Local
Definition: ntv2nubaccess.h:57
One-stop shop for parsing device specifications. (New in SDK 16.3) I do very little in the way of val...
size_t erase(const std::string &inKey)
Erases the given key and its corresponding value from me, returns 1 if successful, 0 if not.
Definition: lock.h:28
Dict::const_iterator DictConstIter
Common base class for NTV2RPCClientAPI and NTV2RPCServerAPI.
std::string DeviceModel(void) const
uint32_t ULWord
Definition: ajatypes.h:236
NTV2Channel
These enum values are mostly used to identify a specific widget_framestore. They&#39;re also commonly use...
Definition: ntv2enums.h:1359
bool hasKey(const std::string &inKey) const
#define kConnectParamDevModel
First device of this model (e.g. &#39;kona4&#39;)
Definition: ntv2nubaccess.h:29
AJALock mParamLock
Mutex to protect mParams.
virtual std::string Name(void) const
uint32_t gClientDestructCount
NTV2Dictionary mParams
Copy of config params passed to my constructor.
#define kConnectParamHost
DNS name, IPv4 or sw device DLL name.
Definition: ntv2nubaccess.h:25
bool IsLocalDevice(void) const
virtual bool SetConfigParams(const NTV2ConfigParams &inNewParams, const bool inAugment=false)
Replaces or adds to my config parameters.
virtual std::ostream & Print(std::ostream &oss) const
bool HasErrors(void) const
An object that can connect to, and operate remote or fake devices. I have three general API groups: ...
#define true
NTV2DeviceID
Identifies a specific AJA NTV2 device model number. The NTV2DeviceID is actually the PROM part number...
Definition: ntv2enums.h:20
NTV2Dictionary NTV2ConnectParams
A dictionary of parameters used to connect to remote/fake devices.
uint32_t gLoaderConstructCount
bool SetParams(const NTV2ConfigParams &inNewParams, const bool inAugment=false)
virtual void Stop(void)
Call this to request the server to stop.
const NTV2Dictionary & QueryParams(void) const
virtual std::ostream & Print(std::ostream &oss) const
std::set< std::string > NTV2StringSet
NTV2DMAEngine
Definition: ntv2enums.h:1859
bool HasResult(const std::string &inKey) const
enum _INTERRUPT_ENUMS_ INTERRUPT_ENUMS
std::ostream & Print(std::ostream &oss, const bool inCompact=true) const
Prints human-readable representation to ostream.
bool HasQueryParams(void) const
std::set< ULWord > ULWordSet
A collection of unique ULWord (uint32_t) values.
std::vector< NTV2DeviceIDSerialPair > NTV2DeviceIDSerialPairs
An ordered sequence of NTV2DeviceIDSerialPairs.
Definition: ntv2nubaccess.h:19
#define kLegalSchemeNTV2
Definition: ntv2nubaccess.h:56
All new NTV2 structs start with this common header.
uint32_t gServerConstructCount
virtual bool IsConnected(void) const
uint32_t gPluginConstructCount
Base class of objects that can serve device operation RPCs with NTV2RPCClientAPI instances.
NTV2ConnectParams Results(void) const
virtual bool IsRunning(void) const
NTV2BitFileType
Definition: ntv2enums.h:3352
std::string DeviceSerial(void) const
NTV2StringList Errors(void) const
bool mTerminate
Set true to stop server.
Describes a user-space buffer on the host computer. I have an address and a length, plus some optional attributes (allocated by SDK?, page-aligned? etc.).
#define AJAExport
Definition: export.h:33
bool empty(void) const
Declares numerous NTV2 utility functions.
uint32_t * mpRefCon
Reserved for internal use.
std::pair< std::string, std::string > NTV2ConnectParam
A parameter used to connect to remote/fake devices.
#define kConnectParamScheme
URL scheme.
Definition: ntv2nubaccess.h:24
std::pair< std::string, std::string > NTV2DictEntry
uint16_t UWord
Definition: ajatypes.h:234
bool mRunning
Running?
uint32_t gBaseConstructCount
A simple (not thread-safe) set of key/value pairs. (New in SDK 16.3)
size_t initializeFrom(const Dict &inDict)
bool Successful(void) const
std::string Scheme(void) const
std::pair< std::string, std::string > NTV2DictionaryEntry
std::vector< std::string > NTV2StringList
uint32_t gBaseDestructCount
std::map< std::string, std::string > Dict
std::string Result(const std::string &inKey) const
NTV2DeviceIDSerialPairs::iterator NTV2DeviceIDSerialPairsIter
Definition: ntv2nubaccess.h:20
#define NTV2_DEPRECATED_f(__f__)
Definition: ajatypes.h:537
uint32_t gPluginDestructCount
std::string Error(const size_t inIndex=0) const
uint32_t gClientConstructCount
std::pair< NTV2DeviceID, ULWord64 > NTV2DeviceIDSerialPair
Identifies a device by its NTV2DeviceID and serial number.
Definition: ntv2nubaccess.h:18
bool HasScheme(void) const