This class is used to enumerate AJA devices that are attached and known to the local host computer.
More...
#include <ntv2devicescanner.h>
|
static bool | GetDeviceAtIndex (const ULWord inDeviceIndexNumber, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the AJA device having the given zero-based index number. More...
|
|
static bool | GetFirstDeviceWithID (const NTV2DeviceID inDeviceID, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the first AJA device found on the host that has the given NTV2DeviceID. More...
|
|
static bool | GetFirstDeviceWithName (const std::string &inNameSubString, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose device identifier name contains the given substring. More...
|
|
static bool | GetFirstDeviceWithSerial (const std::string &inSerialStr, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number contains the given value. More...
|
|
static bool | GetDeviceWithSerial (const uint64_t inSerialNumber, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number matches the given value. More...
|
|
static bool | GetFirstDeviceFromArgument (const std::string &inArgument, CNTV2Card &outDevice) |
| Rescans the host, and returns an open CNTV2Card instance for the AJA device that matches a command line argument according to the following evaluation sequence: More...
|
|
static size_t | GetNumDevices (void) |
|
static std::string | GetDeviceRefName (CNTV2Card &inDevice) |
|
static bool | IsLegalSerialNumber (const std::string &inStr) |
|
static bool | IsLegalDecimalNumber (const std::string &inStr, const size_t maxLen=2) |
|
static uint64_t | IsLegalHexSerialNumber (const std::string &inStr) |
|
static bool | IsHexDigit (const char inChr) |
|
static bool | IsDecimalDigit (const char inChr) |
|
static bool | IsAlphaNumeric (const char inStr) |
|
static bool | IsAlphaNumeric (const std::string &inStr) |
|
static void | ScanHardware (void) |
|
static bool | DeviceIDPresent (const NTV2DeviceID inDeviceID, const bool inRescan=(0)) |
|
static bool | GetDeviceInfo (const ULWord inDeviceIndexNumber, NTV2DeviceInfo &outDeviceInfo, const bool inRescan=(0)) |
|
static NTV2DeviceInfoList | GetDeviceInfoList (void) |
|
static bool | CompareDeviceInfoLists (const NTV2DeviceInfoList &inOldList, const NTV2DeviceInfoList &inNewList, NTV2DeviceInfoList &outDevicesAdded, NTV2DeviceInfoList &outDevicesRemoved) |
|
This class is used to enumerate AJA devices that are attached and known to the local host computer.
Definition at line 236 of file ntv2devicescanner.h.
◆ CNTV2DeviceScanner() [1/2]
CNTV2DeviceScanner::CNTV2DeviceScanner |
( |
const bool |
inScanNow = (! (0) ) | ) |
|
|
explicit |
◆ CNTV2DeviceScanner() [2/2]
CNTV2DeviceScanner::CNTV2DeviceScanner |
( |
bool |
inScanNow, |
|
|
UWord |
inDeviceMask |
|
) |
| |
|
explicit |
◆ CompareDeviceInfoLists()
◆ DeviceIDPresent()
bool CNTV2DeviceScanner::DeviceIDPresent |
( |
const NTV2DeviceID |
inDeviceID, |
|
|
const bool |
inRescan = (0) |
|
) |
| |
|
static |
◆ GetDeviceAtIndex()
bool CNTV2DeviceScanner::GetDeviceAtIndex |
( |
const ULWord |
inDeviceIndexNumber, |
|
|
CNTV2Card & |
outDevice |
|
) |
| |
|
static |
Rescans the host, and returns an open CNTV2Card instance for the AJA device having the given zero-based index number.
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inDeviceIndexNumber | Specifies the AJA device using a zero-based index number. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 274 of file ntv2devicescanner.cpp.
◆ GetDeviceInfo()
bool CNTV2DeviceScanner::GetDeviceInfo |
( |
const ULWord |
inDeviceIndexNumber, |
|
|
NTV2DeviceInfo & |
outDeviceInfo, |
|
|
const bool |
inRescan = (0) |
|
) |
| |
|
static |
◆ GetDeviceInfoList()
◆ GetDeviceRefName()
string CNTV2DeviceScanner::GetDeviceRefName |
( |
CNTV2Card & |
inDevice | ) |
|
|
static |
◆ GetDeviceWithSerial()
bool CNTV2DeviceScanner::GetDeviceWithSerial |
( |
const uint64_t |
inSerialNumber, |
|
|
CNTV2Card & |
outDevice |
|
) |
| |
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number matches the given value.
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inSerialNumber | Specifies the device serial value to search for. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 354 of file ntv2devicescanner.cpp.
◆ GetFirstDeviceFromArgument()
bool CNTV2DeviceScanner::GetFirstDeviceFromArgument |
( |
const std::string & |
inArgument, |
|
|
CNTV2Card & |
outDevice |
|
) |
| |
|
static |
Rescans the host, and returns an open CNTV2Card instance for the AJA device that matches a command line argument according to the following evaluation sequence:
- 1 or 2 digit unsigned decimal integer: a zero-based device index number;
- 8 or 9 character alphanumeric string: device with a matching serial number string (case-insensitive comparison);
- 3-16 character hexadecimal integer, optionally preceded by '0x': device having a matching 64-bit serial number;
- All other cases: first device (lowest index number) whose name contains the argument string (compared case-insensitively).
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inArgument | The argument string. If 'list' or '?', the std::cout stream is sent some "help text" showing a list of all available devices. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 366 of file ntv2devicescanner.cpp.
◆ GetFirstDeviceWithID()
Rescans the host, and returns an open CNTV2Card instance for the first AJA device found on the host that has the given NTV2DeviceID.
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inDeviceID | Specifies the device identifier of interest. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 286 of file ntv2devicescanner.cpp.
◆ GetFirstDeviceWithName()
bool CNTV2DeviceScanner::GetFirstDeviceWithName |
( |
const std::string & |
inNameSubString, |
|
|
CNTV2Card & |
outDevice |
|
) |
| |
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose device identifier name contains the given substring.
- Note
- The name is compared case-insensitively (e.g., "iO4K" == "Io4k").
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inNameSubString | Specifies a portion of the device name to search for. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 299 of file ntv2devicescanner.cpp.
◆ GetFirstDeviceWithSerial()
bool CNTV2DeviceScanner::GetFirstDeviceWithSerial |
( |
const std::string & |
inSerialStr, |
|
|
CNTV2Card & |
outDevice |
|
) |
| |
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number contains the given value.
- Note
- The serial value is compared case-sensitively.
- Returns
- True if successful; otherwise false.
- Parameters
-
[in] | inSerialStr | Specifies the device serial value to search for. |
[out] | outDevice | Receives the open, ready-to-use CNTV2Card instance of the first matching device. |
Definition at line 333 of file ntv2devicescanner.cpp.
◆ GetNumDevices()
size_t CNTV2DeviceScanner::GetNumDevices |
( |
void |
| ) |
|
|
static |
◆ IsAlphaNumeric() [1/2]
bool CNTV2DeviceScanner::IsAlphaNumeric |
( |
const char |
inStr | ) |
|
|
static |
◆ IsAlphaNumeric() [2/2]
static bool CNTV2DeviceScanner::IsAlphaNumeric |
( |
const std::string & |
inStr | ) |
|
|
static |
◆ IsDecimalDigit()
bool CNTV2DeviceScanner::IsDecimalDigit |
( |
const char |
inChr | ) |
|
|
static |
◆ IsHexDigit()
bool CNTV2DeviceScanner::IsHexDigit |
( |
const char |
inChr | ) |
|
|
static |
◆ IsLegalDecimalNumber()
bool CNTV2DeviceScanner::IsLegalDecimalNumber |
( |
const std::string & |
inStr, |
|
|
const size_t |
maxLen = 2 |
|
) |
| |
|
static |
◆ IsLegalHexSerialNumber()
uint64_t CNTV2DeviceScanner::IsLegalHexSerialNumber |
( |
const std::string & |
inStr | ) |
|
|
static |
◆ IsLegalSerialNumber()
bool CNTV2DeviceScanner::IsLegalSerialNumber |
( |
const std::string & |
inStr | ) |
|
|
static |
- Returns
- True if the string contains a legal serial number.
- Parameters
-
[in] | inStr | The string to be tested. |
Definition at line 89 of file ntv2devicescanner.cpp.
◆ ScanHardware()
void CNTV2DeviceScanner::ScanHardware |
( |
void |
| ) |
|
|
static |
The documentation for this class was generated from the following files: