GnuCash 7574033+
Loading...
Searching...
No Matches
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
GncOptionDateValue & operator= (const GncOptionDateValue &)=default
GncOptionDateValue & operator= (GncOptionDateValue &&)=default
time64 get_value () const noexcept
time64 get_default_value () const noexcept
RelativeDatePeriod get_period () const noexcept
RelativeDatePeriod get_default_period () const noexcept
uint16_t get_period_index () const noexcept
uint16_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 (uint16_t index) noexcept
void set_default_value (RelativeDatePeriod value)
void set_default_value (time64 time)
uint16_t num_permissible_values () const noexcept
uint16_t permissible_value_index (const char *key) const noexcept
const char * permissible_value (uint16_t index) const
const char * permissible_value_name (uint16_t index) const
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 ()
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 1045 of file gnc-option-impl.hpp.


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