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

lti::fireWireDCAM::cameraSet Class Reference

Set of cameras. More...

#include <ltiFireWireDCAM.h>

Collaboration diagram for lti::fireWireDCAM::cameraSet:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cameraSet ()
 ~cameraSet ()
const cameraInfooperator[] (const int idx) const
cameraInfooperator[] (const int idx)
unsigned int size () const
bool get (busInfo &bus)
bool findCamera (const u_int64_t &euID64, int &camIdx) const
bool findFreeCamera (int &camIdx) const
bool reserveIndex (const int idx)
bool releaseIndex (const int idx)

Public Attributes

std::string errorStr

Protected Attributes

std::vector< cameraInfocams_
mutex lock_

Detailed Description

Set of cameras.

This class represents the set of all available cameras


Constructor & Destructor Documentation

lti::fireWireDCAM::cameraSet::cameraSet (  ) 

Default constructor.

lti::fireWireDCAM::cameraSet::~cameraSet (  ) 

Default destructor.


Member Function Documentation

bool lti::fireWireDCAM::cameraSet::findCamera ( const u_int64_t &  euID64,
int &  camIdx 
) const

Try to find a camera within the set with the given identification.

Parameters:
euID64 is the identification number used by the libdc1394
camIdx if the id is found, this will contain the index to access the camera with the given id, otherwise it will be set to -1.
Returns:
true if the camera is found, or false if not.
bool lti::fireWireDCAM::cameraSet::findFreeCamera ( int &  camIdx  )  const

This method finds the first available camera.

bool lti::fireWireDCAM::cameraSet::get ( busInfo bus  ) 

Evaluate the given bus and create all the necessary objects to obtain and retain the information of all available cameras.

cameraInfo& lti::fireWireDCAM::cameraSet::operator[] ( const int  idx  ) 

Get the information block of the camera identified with the given index.

const cameraInfo& lti::fireWireDCAM::cameraSet::operator[] ( const int  idx  )  const

Get the information block of the camera identified with the given index.

bool lti::fireWireDCAM::cameraSet::releaseIndex ( const int  idx  ) 

Mark the camera with the given index as free to be used by other instances.

bool lti::fireWireDCAM::cameraSet::reserveIndex ( const int  idx  ) 

Mark the camera with the given index as being in use.

Only one instance of this functor can use a particular camera at a time.

unsigned int lti::fireWireDCAM::cameraSet::size (  )  const

Return the total number of cameras found.


Member Data Documentation

Camera array.

Error string.

Protect the camera array.


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