![]() |
AJA NTV2 SDK
18.0.0.2122
NTV2 SDK 18.0.0.2122
|
This class is used to enumerate AJA devices that are attached and known to the local host computer. More...
#include <ntv2devicescanner.h>
Public Member Functions | |
| CNTV2DeviceScanner (const bool inScanNow=(!(0))) | |
| CNTV2DeviceScanner (bool inScanNow, UWord inDeviceMask) | |
Static Public Member Functions | |
| 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 | GetVirtualDeviceWithName (const std::string &inNameString, CNTV2Card &outDevice, const bool inRescan=(!(0))) |
| Rescans the host, and returns an open CNTV2Card instance for the first virtual device with a matching name. 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 std::string &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:
| |
| 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 bool | GetDeviceWithSerial (const uint64_t sn, CNTV2Card &dev) |
| static void | ScanHardware (void) |
| static void | ScanHardware (const UWord inMask) |
| 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 void | SortDeviceInfoList (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 212 of file ntv2devicescanner.h.
|
explicit |
Definition at line 82 of file ntv2devicescanner.cpp.
|
explicit |
Definition at line 89 of file ntv2devicescanner.cpp.
|
static |
Definition at line 514 of file ntv2devicescanner.cpp.
|
static |
Definition at line 138 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the AJA device having the given zero-based index number.
| [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 168 of file ntv2devicescanner.cpp.
|
static |
Definition at line 152 of file ntv2devicescanner.cpp.
|
static |
|
static |
| [in] | inDevice | The CNTV2Card instance that's open for the device of interest. |
Definition at line 383 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number matches the given value.
| [in] | inSerialNumber | Specifies the device serial value to search for. |
| [out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
|
static |
Definition at line 282 of file ntv2devicescanner.cpp.
|
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:
| [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 306 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device found on the host that has the given NTV2DeviceID.
| [in] | inDeviceID | Specifies the device identifier of interest. |
| [out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
Definition at line 186 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose device identifier name contains the given substring.
| [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 204 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first AJA device whose serial number contains the given value.
| [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 260 of file ntv2devicescanner.cpp.
|
static |
Definition at line 76 of file ntv2devicescanner.cpp.
|
static |
Rescans the host, and returns an open CNTV2Card instance for the first virtual device with a matching name.
| [in] | inNameString | Specifies the virtual device name to search for. |
| [out] | outDevice | Receives the open, ready-to-use CNTV2Card instance. |
| [in] | inRescan | Will rescan devices before returning the open CNTV2Card instance. |
Definition at line 240 of file ntv2devicescanner.cpp.
|
static |
Definition at line 42 of file ntv2devicescanner.cpp.
|
static |
|
static |
Definition at line 37 of file ntv2devicescanner.cpp.
|
static |
Definition at line 32 of file ntv2devicescanner.cpp.
|
static |
Definition at line 47 of file ntv2devicescanner.cpp.
|
static |
Definition at line 52 of file ntv2devicescanner.cpp.
|
static |
| [in] | inStr | The string to be tested. |
Definition at line 66 of file ntv2devicescanner.cpp.
|
static |
Definition at line 104 of file ntv2devicescanner.cpp.
|
inlinestatic |
Definition at line 319 of file ntv2devicescanner.h.
|
inlinestatic |
Definition at line 324 of file ntv2devicescanner.h.