LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::fireWireDCAM::busInfo Class Reference

IEEE 1394 Bus Information Class. More...

#include <ltiFireWireDCAM.h>

List of all members.

Public Member Functions

 busInfo ()
 ~busInfo ()
bool get ()
bool getNodes ()

Public Attributes

raw1394handle_t * handles
nodeid_t ** cameraNodes
int cameraNum
int * portCameraNum
int portNum
bool cardFound

Protected Member Functions

bool deleteCameraNodes ()

Static Protected Member Functions

static int busResetHandler (raw1394handle_t handle, unsigned int generation)

Detailed Description

IEEE 1394 Bus Information Class.


Constructor & Destructor Documentation

lti::fireWireDCAM::busInfo::busInfo (  ) 

Default constructor.

Initializes everything with NULL o zero

lti::fireWireDCAM::busInfo::~busInfo (  ) 

Destructor.

Takes care of deallocation


Member Function Documentation

static int lti::fireWireDCAM::busInfo::busResetHandler ( raw1394handle_t  handle,
unsigned int  generation 
) [static, protected]

Bus reset handler.

TODO: we have to decide what is to be done when the cameras are life plugged/unplugged!

bool lti::fireWireDCAM::busInfo::deleteCameraNodes (  )  [protected]

Delete the camera nodes.

Returns:
false if nothing was deleted or true otherwise.
bool lti::fireWireDCAM::busInfo::get (  ) 

Fill the structure with information about the bus, nodes and cameras.

bool lti::fireWireDCAM::busInfo::getNodes (  ) 

Get camera nodes.

Returns false if no card could be found (which also sets the attribute cardFound to false


Member Data Documentation

Nodes.

Array of pointers to nodeid_t structures. This array will have portNum number of elements.

Total camera number (should be the sum of all elements in the portCameraNum array.

Flag to indicate if a camera was found.

Array of bus handles (type declared in file libraw1394/raw1394.h).

The number of elements in the array is given by portNum.

Array with the number of cameras for each port.

The number of elements of this array is given by portNum.

Port number.

Number of ports available. The portCameraNum and cameraNodes attributes are arrays with this number of elements.


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

Generated on Sat Apr 10 15:28:01 2010 for LTI-Lib by Doxygen 1.6.1