GetDeviceBindingCount
Returns the number of devices ( PCI devices ) found in the system by the GetDeviceBindings() method.
Syntax
long GetDeviceBindingCount();
Parameters
None
Returns
long - Returns the number of elements in the device bindings list.
Required Headers
CController.h
Namespace
arc
Throws
None
Remarks
None
Example
        // This code demonstrates how to instantiate a new CController
        // object and print the number of available devices ( controllers ).

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        try {
            // Find all ARC PCI boards in the system.
            // This MUST be called first!
            cController.GetDeviceBindings();

            long dDevCount = cController.GetDeviceBindingCount();
            cout << "Found " << dDevCount << " devices!" << endl;
 
            // .... do something else here ....
         }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.