GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
gcwglobal.h
Go to the documentation of this file.
1#line 2 "src/Glb/gcwglobal.h"
2
3#ifndef __GLOBAL_H___
4#define __GLOBAL_H___
5
6/*
7** set up some common global definitions
8**
9*/
10
11#define ISO_DATE_FORMAT "yyyy-MM-ddThh:mm:ss.zzzZ"
12#define GCW_DATE_FORMAT_STORAGE "yyyy-MM-dd"
13#define GCW_TIME_FORMAT_STORAGE "hh:mm:ss"
14#define GCW_DATETIME_FORMAT_STORAGE GCW_DATE_FORMAT_STORAGE " " GCW_TIME_FORMAT_STORAGE
15//#define GCW_DATE_FORMAT_DISPLAY "MM/dd/yyyy"
16#define GCW_DATE_FORMAT_DISPLAY "yyyy-MM-dd"
17
18/*!
19** \brief Default Time
20**
21** This is the default-time that is applied to the split items
22** date column. Since the user-interface only accepts 'date'
23** values and not 'time' values, the time-component that gets
24** posted to the back-end database is set to this default value.
25**
26*/
27#define GCW_DATE_DEFAULT_TIME { 10, 59, 0 }
28#define GCW_DEFAULT_DATE "1970-01-01 00:00:00"
29#define GCW_RECONCILE_NO "n"
30#define GCW_RECONCILE_YES "y"
31#define GCW_RECONCILE_CLEARED "c"
32
33/*!
34** \brief Internal Numeric Type
35**
36** This DECIMAL library is used to handle 'currency' type values, which
37** are notably difficult to handle within native C code.
38**
39*/
40#define GCW_NUMERIC DECIMAL::decimal<2>
41
42#define FUNCTION_HEADER __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ":<start>"
43#define FUNCTION_FOOTER __FILE__ << ":" << __LINE__ << " " << __FUNCTION__ << ":<end>"
44#define BREAKER std::endl << std::endl << std::endl
45#define BREAKHEADER BREAKER << FUNCTION_HEADER
46#define BREAKFOOTER FUNCTION_FOOTER << BREAKER
47
48#endif
49