| gphoto2pp
    A C++ Wrapper for libgphoto2 | 
#include <value_widget_base.hpp>


| Public Member Functions | |
| virtual T | getValue () const =0 | 
| Gets the widget's value in terms of T. | |
| virtual void | setValue (T const &value)=0 | 
| Sets the widget's value in terms of T. | |
|  Public Member Functions inherited from gphoto2pp::CameraWidgetWrapper | |
| virtual | ~CameraWidgetWrapper () | 
| CameraWidgetWrapper (CameraWidgetWrapper &&other) | |
| CameraWidgetWrapper & | operator= (CameraWidgetWrapper &&other) | 
| CameraWidgetWrapper (CameraWidgetWrapper const &other) | |
| CameraWidgetWrapper & | operator= (CameraWidgetWrapper const &other) | 
| gphoto2::_CameraWidget * | getPtr () const | 
| Gets the raw resource RAII indicates we still should allow our users access to the RAW Resource and it is applicable. | |
| std::string | getName () const | 
| Gets the widget's name. | |
| CameraWidgetTypeWrapper | getType () const | 
| Gets the widget's type. | |
| std::string | getLabel () const | 
| Gets the widget's label. | |
| std::string | getInfo () const | 
| Gets the widget's info. | |
| int | getId () const | 
| Gets the widget's unique id. | |
| CameraWidgetWrapper | getRoot () const | 
| Gets the widget's Root. This is likely going to be the Window Widget (same widget from ICameraWrapper::getConfig()). | |
| CameraWidgetWrapper | getParent () const | 
| Gets the widget's parent. This is the immediate parent of the widget. If the current widget is a leaf node, then this is likely a Section Widget, but could also be a Window Widget. | |
| Protected Member Functions | |
| 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. | |
| Additional Inherited Members | |
|  Protected Attributes inherited from gphoto2pp::CameraWidgetWrapper | |
| gphoto2::_CameraWidget * | m_cameraWidget = nullptr | 
A templated class which must be inherited by any leaf widget type. That means any widget type that is not a Section or a Widget. That way their specific widget implementations can define meaningful Get and Set methods.
| the | meaningful value type for the widget | 
| 
 | inlineprotected | 
| 
 | pure virtual | 
Gets the widget's value in terms of T.
Implemented in gphoto2pp::DateWidget, gphoto2pp::StringWidget, gphoto2pp::FloatWidget, and gphoto2pp::IntWidget.
| 
 | pure virtual | 
Sets the widget's value in terms of T.
| [in] | value | to set for the widget | 
Implemented in gphoto2pp::DateWidget, gphoto2pp::StringWidget, gphoto2pp::FloatWidget, and gphoto2pp::IntWidget.