GnuCashew ~ GnuCash Enabled Web
GCW
Functions
GCW::Cfg Namespace Reference

Config Namespace. More...

Functions

DECIMAL::decimal_format decimal_format ()
 Decimal Format Specifier. More...
 
std::string date_format ()
 Date Format Specifier. More...
 
std::string time_format ()
 Time Format Specifier. More...
 

Detailed Description

Config Namespace.

The config namespace provides access to the various configuration variables.

Function Documentation

◆ date_format()

std::string GCW::Cfg::date_format ( )

Date Format Specifier.

TODO these should be moved to a user-adjustable config file.

Definition at line 27 of file GnuCashew.cpp.

Referenced by GCW::Eng::AccountRegisterModel::AccountRegisterModel(), and GCW::Eng::AccountRegisterModel::refreshFromDisk().

◆ decimal_format()

DECIMAL::decimal_format GCW::Cfg::decimal_format ( )

Decimal Format Specifier.

TODO these should be moved to a user-adjustable config file.

This provides the DECIMAL<2>() library with the formatting specification for converting DECIMAL numbers to strings.

Definition at line 21 of file GnuCashew.cpp.

Referenced by GCW::Dbo::Splits::Item::quantityAsString(), GCW::Eng::AccountRegisterModel::refreshFromDisk(), and GCW::Dbo::Splits::Item::valueAsString().

◆ time_format()

std::string GCW::Cfg::time_format ( )

Time Format Specifier.

TODO these should be moved to a user-adjustable config file.

Definition at line 35 of file GnuCashew.cpp.