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

#include <string_widget.hpp>

Inheritance diagram for gphoto2pp::StringWidget:
Collaboration diagram for gphoto2pp::StringWidget:

Public Member Functions

std::string getValue () const override
 Gets the widget's value in terms of std::string.
void setValue (std::string const &value) override
 Sets the widget's value in terms of std::string.

Protected Member Functions

 StringWidget (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::ValueWidgetBase< std::string >
 ValueWidgetBase (gphoto2::_CameraWidget *cameraWidget)
- Protected Member Functions inherited from gphoto2pp::CameraWidgetWrapper
 CameraWidgetWrapper (gphoto2::_CameraWidget *cameraWidget)
void ref ()
 Adds a reference count to the internal gphoto2::CameraWidget struct.
void unref ()
 Subtracts a reference count to the internal gphoto2::CameraWidget struct.
gphoto2::_CameraWidget * getRootDefault () const
 Gets the unwrapped CameraWidget struct pointer of the root.
gphoto2::_CameraWidget * getParentDefault () const
 Gets the unwrapped CameraWidget struct pointer of the parent.

Friends

class NonValueWidget

Additional Inherited Members

- Protected Attributes inherited from gphoto2pp::CameraWidgetWrapper
gphoto2::_CameraWidget * m_cameraWidget = nullptr

Detailed Description

A class representing gphoto2 widgets which have a value that is meaningfully represented by a string

Constructor & Destructor Documentation

gphoto2pp::StringWidget::StringWidget ( gphoto2::_CameraWidget *  cameraWidget)
protected

Member Function Documentation

std::string gphoto2pp::StringWidget::getValue ( ) const
overridevirtual

Gets the widget's value in terms of std::string.

Returns
the widget's std::string value
Note
Direct wrapper for gp_widget_get_value(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception

Implements gphoto2pp::ValueWidgetBase< std::string >.

void gphoto2pp::StringWidget::setValue ( std::string const &  value)
overridevirtual

Sets the widget's value in terms of std::string.

Parameters
[in]valueto set for the widget
Note
Direct wrapper for gp_widget_set_value(...)
Exceptions
GPhoto2pp::exceptions::gphoto2_exception

Implements gphoto2pp::ValueWidgetBase< std::string >.

Friends And Related Function Documentation

friend class NonValueWidget
friend

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