AJA NTV2 SDK  18.0.0.2122
NTV2 SDK 18.0.0.2122
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 
41 // AJA VDEV params:
42 #define kQParamVDevFolderPath "vdevfpath"
43 #define kQParamVDevName "vdevname"
44 #define kQParamVDevFileName "vdevfname"
45 #define kQParamVDevIndex "vdevindex"
46 
47 // AJA VDEV JSON keys:
48 #define kVDevJSON_Name "name"
49 #define kVDevJSON_URLSpec "urlspec"
50 #define kVDevJSON_Disabled "disabled"
51 #define kVDevJSON_Plugin "plugin"
52 #define kVDevJSON_Host "host"
53 
54 // Local URL schemes:
55 #define kLegalSchemeNTV2 "ntv2"
56 #define kLegalSchemeNTV2Local "ntv2local"
57 
58 // Exported Function Names:
59 #define kFuncNameCreateClient "CreateClient"
60 #define kFuncNameCreateServer "CreateServer"
61 #define kFuncNameGetRegInfo "GetRegistrationInfo"
62 
63 // Other Info Keys:
64 #define kNTV2PluginInfoKey_PluginsPath "PluginsPath"
65 #define kNTV2PluginInfoKey_PluginPath "PluginPath"
66 #define kNTV2PluginInfoKey_PluginSigPath "PluginSigPath"
67 #define kNTV2PluginInfoKey_PluginBaseName "PluginBaseName"
68 #define kNTV2PluginInfoKey_Fingerprint "serial number"
69 #define kNTV2PluginInfoKey_Errors "errors"
70 
71 // Plugin Registration Info Keys:
72 #define kNTV2PluginRegInfoKey_Vendor "Vendor"
73 #define kNTV2PluginRegInfoKey_CommonName "CommonName"
74 #define kNTV2PluginRegInfoKey_OrgUnit "OrgUnit"
75 #define kNTV2PluginRegInfoKey_ShortName "ShortName"
76 #define kNTV2PluginRegInfoKey_LongName "LongName"
77 #define kNTV2PluginRegInfoKey_Description "Description"
78 #define kNTV2PluginRegInfoKey_Copyright "Copyright"
79 #define kNTV2PluginRegInfoKey_NTV2SDKVersion "NTV2SDKVersion"
80 #define kNTV2PluginRegInfoKey_Version "Version"
81 #define kNTV2PluginRegInfoKey_CommitSHA "CommitSHA"
82 #define kNTV2PluginRegInfoKey_ReqParams "RequiredParams"
83 #define kNTV2PluginRegInfoKey_OptParams "OptionalParams"
84 
85 // Plugin Signature File Keys:
86 #define kNTV2PluginSigFileKey_X509Certificate "X509Certificate"
87 #define kNTV2PluginSigFileKey_Signature "Signature"
88 
89 // X509 Certificate Attribute Keys:
90 #define kNTV2PluginX500AttrKey_CommonName "CN"
91 #define kNTV2PluginX500AttrKey_LocalityName "L"
92 #define kNTV2PluginX500AttrKey_StateOrProvinceName "ST"
93 #define kNTV2PluginX500AttrKey_OrganizationName "O"
94 #define kNTV2PluginX500AttrKey_OrganizationalUnitName "OU"
95 #define kNTV2PluginX500AttrKey_CountryName "C"
96 
97 extern uint32_t gBaseConstructCount; // Number of NTV2RPCBase constructor calls made
98 extern uint32_t gBaseDestructCount; // Number of NTV2RPCBase destructor calls made
99 extern uint32_t gClientConstructCount; // Number of NTV2RPCClient constructor calls made
100 extern uint32_t gClientDestructCount; // Number of NTV2RPCClient destructor calls made
101 extern uint32_t gServerConstructCount; // Number of NTV2RPCServer constructor calls made
102 extern uint32_t gServerDestructCount; // Number of NTV2RPCServer destructor calls made
103 extern uint32_t gLoaderConstructCount; // Number of NTV2PluginLoader constructor calls made
104 extern uint32_t gLoaderDestructCount; // Number of NTV2PluginLoader destructor calls made
105 extern uint32_t gPluginConstructCount; // Number of NTV2Plugin constructor calls made
106 extern uint32_t gPluginDestructCount; // Number of NTV2Plugin destructor calls made
107 
112 {
113  public:
117  inline size_t size (void) const {return mDict.size();}
119  inline bool empty (void) const {return mDict.empty();}
120  inline bool hasKey (const std::string & inKey) const {return mDict.find(inKey) != mDict.end();}
121  std::string valueForKey (const std::string & inKey) const;
122  uint16_t u16ValueForKey (const std::string & inKey, const uint16_t inDefault = 0) const;
123  NTV2StringSet keys (void) const;
124  size_t largestKeySize (void) const;
125  size_t largestValueSize (void) const;
126  std::ostream & Print (std::ostream & oss, const bool inCompact = true) const;
127  bool serialize (std::string & outStr) const;
128 
133  inline void clear (void) {mDict.clear();}
135  bool insert (const std::string & inKey, const std::string & inValue);
136  inline size_t erase (const std::string & inKey) {return hasKey(inKey) ? mDict.erase(inKey) : 0;}
137  size_t updateFrom (const NTV2Dictionary & inDict);
138  size_t addFrom (const NTV2Dictionary & inDict);
139  bool deserialize (const std::string & inStr);
140  #if !defined(NTV2_DEPRECATE_17_1)
141  inline NTV2_DEPRECATED_f(size_t UpdateFrom (const NTV2Dictionary & inDict)) {return updateFrom(inDict);}
142  inline NTV2_DEPRECATED_f(size_t AddFrom (const NTV2Dictionary & inDict)) {return addFrom(inDict);}
143  #endif // !defined(NTV2_DEPRECATE_17_1)
144 
146  public:
147  typedef std::map<std::string, std::string> Dict;
148  typedef Dict::const_iterator DictConstIter;
149  inline size_t initializeFrom (const Dict & inDict) {mDict = inDict; return size();}
150 
151  private:
152  Dict mDict;
153 }; // NTV2Dictionary
154 
158 typedef std::pair<std::string, std::string> NTV2DictionaryEntry, NTV2DictEntry, NTV2ConnectParam;
159 
160 inline std::ostream & operator << (std::ostream & oss, const NTV2Dictionary & inDict) {return inDict.Print(oss);}
161 
169 {
170  public:
171  NTV2DeviceSpecParser (const std::string inSpec = "");
172  void Reset (const std::string inSpec = "");
173  inline const std::string & DeviceSpec (void) const {return mSpec;}
174  std::string MakeDeviceSpec (const bool urlEncodeQuery) const;
175  std::string MakeQueryString (const bool urlEncode) const;
176  inline bool HasDeviceSpec (void) const {return !DeviceSpec().empty();}
177  inline bool Successful (void) const {return !Failed();}
178  inline bool Failed (void) const {return DeviceSpec().empty() ? true : HasErrors();}
179  inline bool HasScheme (void) const {return HasResult(kConnectParamScheme);}
180  inline std::string Scheme (void) const {return Result(kConnectParamScheme);}
181  inline bool IsLocalDevice (void) const {return Scheme() == kLegalSchemeNTV2Local || Scheme() == kLegalSchemeNTV2;}
182  inline size_t ErrorCount (void) const {return mErrors.size();}
183  inline bool HasErrors (void) const {return ErrorCount() > 0;}
184  inline std::string Error (const size_t inIndex = 0) const {if (inIndex < mErrors.size()) return mErrors.at(inIndex); return "";}
185  inline NTV2StringList Errors (void) const {return mErrors;}
186  inline NTV2ConnectParams Results (void) const {return mResult;}
187  inline bool HasResult (const std::string & inKey) const {return mResult.hasKey(inKey);}
188  std::string Result (const std::string & inKey) const {return mResult.valueForKey(inKey);}
189  std::string Resource (const bool inStripLeadSlash = true) const;
190  std::ostream & PrintErrors (std::ostream & oss) const;
191  std::ostream & Print (std::ostream & oss, const bool inDumpResults = false) const;
192  std::string InfoString (void) const;
193  std::string DeviceSerial (void) const {return Result(kConnectParamDevSerial);}
194  inline std::string DeviceModel (void) const {return Result(kConnectParamDevModel);}
195  NTV2DeviceID DeviceID (void) const;
196  UWord DeviceIndex (void) const;
197  inline const NTV2Dictionary & QueryParams (void) const {return mQueryParams;}
198  inline std::string QueryParam (const std::string & inKey) const {return mQueryParams.valueForKey(inKey);}
199  inline bool HasQueryParams (void) const {return !QueryParams().empty();}
200  #if defined(_DEBUG)
201  static void test (void);
202  #endif // defined(_DEBUG)
203 
204  private:
205  void Parse (void);
206  bool ParseHexNumber (size_t & pos, std::string & outToken);
207  bool ParseDecNumber (size_t & pos, std::string & outToken);
208  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
209  bool ParseAlphaNumeric (size_t & pos, std::string & outToken, const std::string & inOtherChars = ""); // A run of letters and/or decimal digits and/or other chars
210  bool ParseScheme (size_t & pos, std::string & outToken); // An alphanumeric name followed by "://"
211  bool ParseSerialNum (size_t & pos, std::string & outToken); // An 8 or 9 character alphanumeric name or a 64-bit hex number
212  bool ParseDeviceID (size_t & pos, std::string & outToken); // An 32-bit hex number that matches a known NTV2DeviceID
213  bool ParseModelName (size_t & pos, std::string & outToken); // An alphanumeric name that matches a known device model name
214  bool ParseDNSName (size_t & pos, std::string & outDNSName); // A domain name: one or more alphanumeric names separated with '.'
215  bool ParseIPv4Address (size_t & pos, std::string & outIPv4); // Exactly four decimal numbers, each no greater than 255, separated with '.'
216  bool ParseHostAddressAndPortNumber (size_t & pos, std::string & outAddr, std::string & outPort); // A host name or IPv4 address with an optional port number
217  bool ParseResourcePath (size_t & pos, std::string & outRsrc); // One or more '/'-separated alphanumeric names
218  bool ParseParamAssignment (size_t & pos, std::string & outKey, std::string & outValue); // An alphanumeric key optionally followed by '=' optionally followed by URL-encoded value string
219  bool ParseQuery (size_t & pos, NTV2Dictionary & outParams); // Starts with '?' one or more '&'-separated param assignments
220  inline int LargestResultKey (void) const {return int(mResult.largestKeySize());}
221  inline int LargestResultValue (void) const {return int(mResult.largestValueSize());}
222  inline char CharAt (const size_t inPos) {return inPos < mSpec.length() ? mSpec.at(inPos) : 0;}
223  inline size_t SpecLength (void) const {return mSpec.length();}
224  inline size_t CurrentPosition (void) const {return mPos;}
225  inline void AddError (const std::string & inError) {mErrors.push_back(inError);}
226  static bool IsUpperLetter (const char inChar);
227  static bool IsLowerLetter (const char inChar);
228  static bool IsLetter (const char inChar, const bool inIncludeUnderscore = false);
229  static bool IsDecimalDigit (const char inChar);
230  static bool IsHexDigit (const char inChar);
231  static bool IsLegalSerialNumChar (const char inChar);
232 
233  private:
234  std::string mSpec;
235  NTV2StringList mErrors;
236  NTV2ConnectParams mResult;
237  NTV2Dictionary mQueryParams;
238  size_t mPos;
239 
240  public: // Class Methods
253  static bool ParseQueryParams (const NTV2Dictionary & inSrcDict, NTV2Dictionary & outQueryParams);
254 }; // NTV2DeviceSpecParser
255 
256 
261 {
262  public:
263  static std::string ShortSDKVersion (void);
264  static std::string AJAFingerprint (const bool inLowerCase = false, const bool inStripColons = false);
265 
266  protected:
267  NTV2RPCBase (NTV2Dictionary params, uint32_t * pRefCon);
268  virtual ~NTV2RPCBase ();
269  bool SetParams (const NTV2ConfigParams & inNewParams, const bool inAugment = false);
270 
271  protected:
273  mutable AJALock mParamLock;
274  uint32_t * mpRefCon;
275 }; // NTV2RPCBase
276 
277 
291 {
292  public:
298  static NTV2RPCClientAPI * CreateClient (NTV2ConnectParams & inParams);
299 
300  public:
304  virtual std::string HostName (void) const {return ConnectParam(kConnectParamHost);}
306  virtual std::string Name (void) const {return "";}
307  virtual std::string Description (void) const;
308  virtual std::ostream & Print (std::ostream & oss) const;
310 
314  virtual bool NTV2Connect (void);
316  virtual bool NTV2Disconnect (void);
317  virtual bool IsConnected (void) const {return false;}
318 
323  virtual NTV2ConnectParams ConnectParams (void) const;
325  virtual bool HasConnectParam (const std::string & inParam) const;
326  virtual std::string ConnectParam (const std::string & inParam) const;
327  virtual bool ConnectHasScheme (void) const;
328  virtual inline bool SetConnectParams (const NTV2ConnectParams & inNewParams, const bool inAugment = false) {return !IsConnected() && SetParams(inNewParams, inAugment);}
329 
334  virtual bool NTV2ReadRegisterRemote (const ULWord regNum, ULWord & outRegValue, const ULWord regMask, const ULWord regShift);
336  virtual bool NTV2WriteRegisterRemote (const ULWord regNum, const ULWord regValue, const ULWord regMask, const ULWord regShift);
337  virtual bool NTV2AutoCirculateRemote (AUTOCIRCULATE_DATA & autoCircData);
338  virtual bool NTV2WaitForInterruptRemote (const INTERRUPT_ENUMS eInterrupt, const ULWord timeOutMs);
339  virtual bool NTV2DMATransferRemote (const NTV2DMAEngine inDMAEngine, const bool inIsRead,
340  const ULWord inFrameNumber, NTV2Buffer & inOutBuffer,
341  const ULWord inCardOffsetBytes, const ULWord inNumSegments,
342  const ULWord inSegmentHostPitch, const ULWord inSegmentCardPitch,
343  const bool inSynchronous);
344  virtual bool NTV2MessageRemote (NTV2_HEADER * pInMessage);
346 
350  virtual bool NTV2GetBoolParamRemote (const ULWord inParamID, ULWord & outValue); // New in SDK 17.0
352  virtual bool NTV2GetNumericParamRemote (const ULWord inParamID, ULWord & outValue); // New in SDK 17.0
353  virtual bool NTV2GetSupportedRemote (const ULWord inEnumsID, ULWordSet & outSupported); // New in SDK 17.0
355 
370  virtual bool NTV2QueryDevices (NTV2StringList & outDeviceInfos, std::string & outErrMsg)
371  {
372  outErrMsg.clear();
373  outDeviceInfos.clear();
374  return true;
375  }
376 
377  #if !defined(NTV2_DEPRECATE_16_3) // These functions are going away
378  virtual NTV2_DEPRECATED_16_3(bool NTV2DriverGetBitFileInformationRemote(BITFILE_INFO_STRUCT & nfo, const NTV2BitFileType typ));
379  virtual NTV2_DEPRECATED_16_3(bool NTV2DriverGetBuildInformationRemote(BUILD_INFO_STRUCT & buildInfo));
380  virtual NTV2_DEPRECATED_16_3(bool NTV2DownloadTestPatternRemote(const NTV2Channel ch, const NTV2PixelFormat pf, const UWord msk, const bool dma, const ULWord tpNum));
381  virtual NTV2_DEPRECATED_16_3(bool NTV2ReadRegisterMultiRemote(const ULWord numRegs, ULWord & outFailedRegNum, NTV2RegInfo outRegs[]));
382  virtual NTV2_DEPRECATED_16_3(bool NTV2GetDriverVersionRemote(ULWord & vers));
383  #endif // !defined(NTV2_DEPRECATE_16_3)
384 
385  virtual ~NTV2RPCClientAPI();
386 
387  protected:
388  NTV2RPCClientAPI (NTV2ConnectParams inParams, void * pRefCon);
389 
390  virtual bool NTV2OpenRemote (void);
391  virtual bool NTV2CloseRemote (void);
392 
393  protected:
394  uint32_t mSpare[1024];
395 }; // NTV2RPCClientAPI
396 
398 
399 inline std::ostream & operator << (std::ostream & oss, const NTV2RPCClientAPI & inObj) {return inObj.Print(oss);}
400 
406 {
407  public:
415  static NTV2RPCServerAPI * CreateServer (NTV2ConfigParams & inParams);
416 
425  static NTV2RPCServerAPI * CreateServer (const std::string & inURL);
426 
427  public:
431  virtual std::ostream & Print (std::ostream & oss) const;
433  virtual inline bool IsRunning (void) const {return mRunning;}
434 
439  virtual NTV2ConfigParams ConfigParams (void) const;
441  virtual bool HasConfigParam (const std::string & inParam) const;
442  virtual std::string ConfigParam (const std::string & inParam) const;
443  virtual inline bool SetConfigParams (const NTV2ConfigParams & inNewParams, const bool inAugment = false) {return SetParams(inNewParams, inAugment);}
444 
449  virtual void RunServer (void);
451  virtual inline void Stop (void) {mTerminate = true;}
452 
454  protected:
455  NTV2RPCServerAPI (NTV2ConnectParams inParams, void * pRefCon);
456  virtual ~NTV2RPCServerAPI();
457 
458  protected:
459  bool mRunning;
460  bool mTerminate;
461  uint32_t mSpare[1024];
462 }; // NTV2RPCServerAPI
463 
464 inline std::ostream & operator << (std::ostream & oss, const NTV2RPCServerAPI & inObj) {return inObj.Print(oss);}
465 
471 extern "C"
472 {
486  typedef bool (*fpGetRegistrationInfo) (const uint32_t /*inHostSDKVers*/, NTV2Dictionary & /*outInfo*/);
487 
495  typedef NTV2RPCClientAPI* (*fpCreateClient) (void * /*pRefCon*/, const NTV2ConnectParams & /*inParams*/, const uint32_t /*inHostSDKVersion*/);
496 
505  typedef NTV2RPCServerAPI* (*fpCreateServer) (void * /*pRefCon*/, const NTV2ConfigParams & /*inParams*/, const uint32_t /*inHostSDKVersion*/);
506 
507  #if !defined(NTV2_DEPRECATE_16_3) // Don't use these functions going forward
508  typedef NTV2RPCAPI* (*fpCreateNTV2SoftwareDevice) (void * /*pInDLLHandle*/, const std::string & /*inQueryStr*/, const uint32_t /*inHostSDKVersion*/);
509  #endif // !defined(NTV2_DEPRECATE_16_3)
510 }
511 
512 #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:219
#define NTV2_DEPRECATED_16_3(__f__)
Definition: ajatypes.h:543
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:56
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:223
NTV2Channel
These enum values are mostly used to identify a specific widget_framestore. They&#39;re also commonly use...
Definition: ntv2enums.h:1357
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
NTV2DMAEngine
Definition: ntv2enums.h:1856
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< std::string > NTV2StringList
Definition: ntv2utils.h:1155
std::vector< NTV2DeviceIDSerialPair > NTV2DeviceIDSerialPairs
An ordered sequence of NTV2DeviceIDSerialPairs.
Definition: ntv2nubaccess.h:19
#define kLegalSchemeNTV2
Definition: ntv2nubaccess.h:55
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:3349
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:221
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
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:524
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
std::set< std::string > NTV2StringSet
Definition: ntv2utils.h:1158