GnuCash  4.11-354-g0815ab64c1
Public Member Functions
GncOptionDateValue Class Reference

A legal date value is a pair of either a RelativeDatePeriod, the absolute flag and a time64, or for legacy purposes the absolute flag and a timespec. More...

#include <gnc-option-impl.hpp>

Inheritance diagram for GncOptionDateValue:
OptionClassifier

Public Member Functions

 GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type)
 
 GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, time64 time)
 
 GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, RelativeDatePeriod period)
 
 GncOptionDateValue (const char *section, const char *name, const char *key, const char *doc_string, GncOptionUIType ui_type, const RelativeDatePeriodVec &period_set)
 
 GncOptionDateValue (const GncOptionDateValue &)=default
 
 GncOptionDateValue (GncOptionDateValue &&)=default
 
GncOptionDateValueoperator= (const GncOptionDateValue &)=default
 
GncOptionDateValueoperator= (GncOptionDateValue &&)=default
 
time64 get_value () const noexcept
 
time64 get_default_value () const noexcept
 
RelativeDatePeriod get_period () const noexcept
 
RelativeDatePeriod get_default_period () const noexcept
 
size_t get_period_index () const noexcept
 
size_t get_default_period_index () const noexcept
 
std::ostream & out_stream (std::ostream &oss) const noexcept
 
std::istream & in_stream (std::istream &iss)
 
bool validate (RelativeDatePeriod value)
 
bool validate (time64 time)
 
void set_value (RelativeDatePeriod value)
 
void set_value (time64 time)
 
void set_value (size_t index) noexcept
 
void set_default_value (RelativeDatePeriod value)
 
void set_default_value (time64 time)
 
std::size_t num_permissible_values () const noexcept
 
std::size_t permissible_value_index (const char *key) const noexcept
 
const char * permissible_value (std::size_t index) const
 
const char * permissible_value_name (std::size_t index) const
 
void reset_default_value ()
 
bool is_changed () const noexcept
 
GncOptionUIType get_ui_type () const noexcept
 
void make_internal ()
 
const RelativeDatePeriodVec & get_period_set () const
 
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

A legal date value is a pair of either a RelativeDatePeriod, the absolute flag and a time64, or for legacy purposes the absolute flag and a timespec.

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


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