GnuCash  4.12-558-g06612b8434
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< 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 ()
 
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: