GnuCash
5.6-150-g038405b370+
|
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 &)=default | |
GncOptionValue (GncOptionValue &&)=default | |
GncOptionValue & | operator= (const GncOptionValue &)=default |
GncOptionValue & | operator= (GncOptionValue &&)=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 () |
void | mark_saved () noexcept |
bool | is_dirty () const noexcept |
bool | is_changed () const noexcept |
GncOptionUIType | get_ui_type () const noexcept |
void | make_internal () |
bool | is_internal () |
std::string | serialize () const noexcept |
bool | deserialize (const std::string &str) noexcept |
Additional Inherited Members | |
Data Fields inherited from OptionClassifier | |
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 87 of file gnc-option-impl.hpp.