GnuCash  5.6-150-g038405b370+
Public Member Functions
GncOptionValue< ValueType > Class Template Reference

The generic option-value class. More...

#include <gnc-option-impl.hpp>

Inheritance diagram for GncOptionValue< ValueType >:
OptionClassifier

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
 
GncOptionValueoperator= (const GncOptionValue &)=default
 
GncOptionValueoperator= (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
 

Detailed Description

template<typename ValueType>
class GncOptionValue< ValueType >

The generic option-value class.

Most option types can use this template.

Definition at line 87 of file gnc-option-impl.hpp.


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