GnuCash
4.11-354-g0815ab64c1
|
The generic option-value class. More...
#include <gnc-option-impl.hpp>
Public Member Functions | |
GncOptionValue (const char *section, const char *name, const char *key, const char *doc_string, ValueType value, GncOptionUIType ui_type=GncOptionUIType::INTERNAL) | |
GncOptionValue (const GncOptionValue< ValueType > &from) | |
GncOptionValue (GncOptionValue< ValueType > &&)=default | |
GncOptionValue< ValueType > & | operator= (const GncOptionValue< ValueType > &)=default |
GncOptionValue< ValueType > & | operator= (GncOptionValue< ValueType > &&)=default |
ValueType | get_value () const |
ValueType | get_default_value () const |
void | set_value (ValueType new_value) |
void | set_default_value (ValueType new_value) |
void | reset_default_value () |
bool | is_changed () const noexcept |
GncOptionUIType | get_ui_type () const noexcept |
void | make_internal () |
std::string | serialize () const noexcept |
bool | deserialize (const std::string &str) noexcept |
Additional Inherited Members | |
![]() | |
std::string | m_section |
std::string | m_name |
std::string | m_sort_tag |
std::string | m_doc_string |
The generic option-value class.
Most option types can use this template.
Definition at line 88 of file gnc-option-impl.hpp.