gphoto2pp
A C++ Wrapper for libgphoto2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
gphoto2pp::CameraAbilitiesListWrapper Class Reference

#include <camera_abilities_list_wrapper.hpp>

Public Member Functions

 CameraAbilitiesListWrapper ()
 ~CameraAbilitiesListWrapper ()
 CameraAbilitiesListWrapper (CameraAbilitiesListWrapper &&other)
CameraAbilitiesListWrapperoperator= (CameraAbilitiesListWrapper &&other)
 CameraAbilitiesListWrapper (CameraAbilitiesListWrapper const &other)
CameraAbilitiesListWrapperoperator= (CameraAbilitiesListWrapper const &other)
gphoto2::_CameraAbilitiesList * getPtr () const
CameraListWrapper listDetect (GPPortInfoListWrapper const &portInfoList)
 Tries to detect any cameras connected to the computer using the list of ports provided.
void reset ()
 Resets the abilities list.
int count () const
 Counts the entries in the abilities list.
int lookupModel (std::string const &model) const
 Scans the list for the given model.

Detailed Description

A wrapper around the gphoto2 CameraAbilitiesList struct.

Constructor & Destructor Documentation

gphoto2pp::CameraAbilitiesListWrapper::CameraAbilitiesListWrapper ( )
gphoto2pp::CameraAbilitiesListWrapper::~CameraAbilitiesListWrapper ( )
gphoto2pp::CameraAbilitiesListWrapper::CameraAbilitiesListWrapper ( CameraAbilitiesListWrapper &&  other)
gphoto2pp::CameraAbilitiesListWrapper::CameraAbilitiesListWrapper ( CameraAbilitiesListWrapper const &  other)

Member Function Documentation

int gphoto2pp::CameraAbilitiesListWrapper::count ( ) const

Counts the entries in the abilities list.

Returns
he number of items in the list
Note
Direct wrapper for gp_abilities_list_count(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception
gphoto2::_CameraAbilitiesList* gphoto2pp::CameraAbilitiesListWrapper::getPtr ( ) const
CameraListWrapper gphoto2pp::CameraAbilitiesListWrapper::listDetect ( GPPortInfoListWrapper const &  portInfoList)

Tries to detect any cameras connected to the computer using the list of ports provided.

Parameters
[in]portInfoListof ports to scan for camera models
Note
Direct wrapper for gp_abilities_list_detect(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception
int gphoto2pp::CameraAbilitiesListWrapper::lookupModel ( std::string const &  model) const

Scans the list for the given model.

Parameters
[in]modelof camera to search for
Returns
the index of the item (if found)
Note
Direct wrapper for gp_abilities_list_count(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception
CameraAbilitiesListWrapper& gphoto2pp::CameraAbilitiesListWrapper::operator= ( CameraAbilitiesListWrapper &&  other)
CameraAbilitiesListWrapper& gphoto2pp::CameraAbilitiesListWrapper::operator= ( CameraAbilitiesListWrapper const &  other)
void gphoto2pp::CameraAbilitiesListWrapper::reset ( )

Resets the abilities list.

Note
Direct wrapper for gp_abilities_list_reset(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception

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