AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
NTV2DeviceSpecParser Class Reference

One-stop shop for parsing device specifications. (New in SDK 16.3) I do very little in the way of validating semantics. I simply do the parsing and provide the information needed to connect to local or remote devices, real or fake. More...

#include <ntv2nubaccess.h>

Public Member Functions

 NTV2DeviceSpecParser (const std::string inSpec="")
 My constructor. If given device specification is non-empty, proceeds to Parse it. More...
 
void Reset (const std::string inSpec="")
 Resets me, then parses the given device specification. More...
 
std::string Resource (const bool inStripLeadSlash=true) const
 
std::ostream & PrintErrors (std::ostream &oss) const
 
std::ostream & Print (std::ostream &oss, const bool inDumpResults=false) const
 
std::string InfoString (void) const
 
uint64_t DeviceSerial (void) const
 
std::string DeviceModel (void) const
 
NTV2DeviceID DeviceID (void) const
 
UWord DeviceIndex (void) const
 

Static Public Member Functions

static bool IsSupportedScheme (const std::string &inScheme)
 

Detailed Description

One-stop shop for parsing device specifications. (New in SDK 16.3) I do very little in the way of validating semantics. I simply do the parsing and provide the information needed to connect to local or remote devices, real or fake.

Definition at line 93 of file ntv2nubaccess.h.

Constructor & Destructor Documentation

◆ NTV2DeviceSpecParser()

NTV2DeviceSpecParser::NTV2DeviceSpecParser ( const std::string  inSpec = "")

My constructor. If given device specification is non-empty, proceeds to Parse it.

Definition at line 170 of file ntv2nubaccess.cpp.

Member Function Documentation

◆ DeviceID()

NTV2DeviceID NTV2DeviceSpecParser::DeviceID ( void  ) const

Definition at line 369 of file ntv2nubaccess.cpp.

◆ DeviceIndex()

UWord NTV2DeviceSpecParser::DeviceIndex ( void  ) const

Definition at line 378 of file ntv2nubaccess.cpp.

◆ DeviceModel()

std::string NTV2DeviceSpecParser::DeviceModel ( void  ) const
inline

Definition at line 120 of file ntv2nubaccess.h.

◆ DeviceSerial()

uint64_t NTV2DeviceSpecParser::DeviceSerial ( void  ) const

Definition at line 362 of file ntv2nubaccess.cpp.

◆ InfoString()

string NTV2DeviceSpecParser::InfoString ( void  ) const

Definition at line 355 of file ntv2nubaccess.cpp.

◆ IsSupportedScheme()

bool NTV2DeviceSpecParser::IsSupportedScheme ( const std::string &  inScheme)
static
Returns
True if the given scheme starts with "ntv2"

Definition at line 710 of file ntv2nubaccess.cpp.

◆ Print()

ostream & NTV2DeviceSpecParser::Print ( std::ostream &  oss,
const bool  inDumpResults = false 
) const

Definition at line 331 of file ntv2nubaccess.cpp.

◆ PrintErrors()

ostream & NTV2DeviceSpecParser::PrintErrors ( std::ostream &  oss) const

Definition at line 385 of file ntv2nubaccess.cpp.

◆ Reset()

void NTV2DeviceSpecParser::Reset ( const std::string  inSpec = "")

Resets me, then parses the given device specification.

Definition at line 175 of file ntv2nubaccess.cpp.

◆ Resource()

string NTV2DeviceSpecParser::Resource ( const bool  inStripLeadSlash = true) const
Returns
The Result for the kConnectParamResource key

Definition at line 186 of file ntv2nubaccess.cpp.


The documentation for this class was generated from the following files: