Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
photo_camera Class Reference

#include <photo_camera.hpp>

Public Types

enum  photo_mode { DIRECT = 0, TO_FILE = 1 }
 

Public Member Functions

 photo_camera (void)
 
bool photo_camera_capture (photo_image *image)
 
bool photo_camera_capture_to_file (const std::string &filename)
 
bool photo_camera_close (void)
 
GPContext * photo_camera_create_context (void)
 
int photo_camera_find_widget_by_name (std::string name, CameraWidget **child, CameraWidget **rootconfig)
 
bool photo_camera_get_config (const std::string &, char **value)
 
bool photo_camera_open (photo_camera_list *list, int n)
 
bool photo_camera_open (photo_camera_list *list, const std::string &model_name, const std::string &port_name)
 
bool photo_camera_set_config (const std::string &param, const std::string &value)
 
 ~photo_camera (void)
 

Private Member Functions

bool photo_camera_check_toggle_value (const std::string &value_in, int *value_out)
 

Private Attributes

CameraAbilities abilities_
 
Camera * camera_
 
GPContext * context_
 
enum photo_mode mode_
 
GPPortInfo port_info_
 

Detailed Description

Definition at line 50 of file photo_camera.hpp.

Member Enumeration Documentation

◆ photo_mode

Enumerator
DIRECT 
TO_FILE 

Definition at line 54 of file photo_camera.hpp.

Constructor & Destructor Documentation

◆ photo_camera()

photo_camera::photo_camera ( void  )

Definition at line 48 of file photo_camera.cpp.

◆ ~photo_camera()

photo_camera::~photo_camera ( void  )

Definition at line 57 of file photo_camera.cpp.

Member Function Documentation

◆ photo_camera_capture()

bool photo_camera::photo_camera_capture ( photo_image image)

Definition at line 633 of file photo_camera.cpp.

◆ photo_camera_capture_to_file()

bool photo_camera::photo_camera_capture_to_file ( const std::string filename)

Definition at line 582 of file photo_camera.cpp.

◆ photo_camera_check_toggle_value()

bool photo_camera::photo_camera_check_toggle_value ( const std::string value_in,
int *  value_out 
)
private

This function should be updated to leverage boost's ability to compare strings in a case insensitive manner: #include <boost/algorithm/string.hpp> boost::iequals( s1, s2 );

Definition at line 244 of file photo_camera.cpp.

◆ photo_camera_close()

bool photo_camera::photo_camera_close ( void  )

Definition at line 161 of file photo_camera.cpp.

◆ photo_camera_create_context()

GPContext * photo_camera::photo_camera_create_context ( void  )

Definition at line 68 of file photo_camera.cpp.

◆ photo_camera_find_widget_by_name()

int photo_camera::photo_camera_find_widget_by_name ( std::string  name,
CameraWidget **  child,
CameraWidget **  rootconfig 
)

Definition at line 177 of file photo_camera.cpp.

◆ photo_camera_get_config()

bool photo_camera::photo_camera_get_config ( const std::string param,
char **  value 
)

Definition at line 476 of file photo_camera.cpp.

◆ photo_camera_open() [1/2]

bool photo_camera::photo_camera_open ( photo_camera_list list,
int  n 
)

Definition at line 131 of file photo_camera.cpp.

◆ photo_camera_open() [2/2]

bool photo_camera::photo_camera_open ( photo_camera_list list,
const std::string model_name,
const std::string port_name 
)

Definition at line 79 of file photo_camera.cpp.

◆ photo_camera_set_config()

bool photo_camera::photo_camera_set_config ( const std::string param,
const std::string value 
)

Definition at line 286 of file photo_camera.cpp.

Member Data Documentation

◆ abilities_

CameraAbilities photo_camera::abilities_
private

Definition at line 60 of file photo_camera.hpp.

◆ camera_

Camera* photo_camera::camera_
private

Definition at line 57 of file photo_camera.hpp.

◆ context_

GPContext* photo_camera::context_
private

Definition at line 58 of file photo_camera.hpp.

◆ mode_

enum photo_mode photo_camera::mode_
private

Definition at line 61 of file photo_camera.hpp.

◆ port_info_

GPPortInfo photo_camera::port_info_
private

Definition at line 59 of file photo_camera.hpp.


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


photo
Author(s): Benjamin Pitzer
autogenerated on Mon Feb 28 2022 23:12:30