GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
Config.h
Go to the documentation of this file.
1#line 2 "src/Config.h"
2
3#ifndef __CONFIG_H___
4#define __CONFIG_H___
5
6#include <string>
7
8namespace GCW {
9
10/*!
11** \brief Application Configuration
12**
13** The Application Configuration is controlled through this single object.
14** The configuration includes multiples 'areas' followed by specific settings
15** in each area. The areas included are;
16**
17** -# Global - stored for all applications
18** -# App - stored for the application specifically
19** -# User - stored for the currently logged in user
20**
21*/
22class Config
23{
24 enum class Area
25 {
26 GLOBAL,
27 APP,
28 FILE,
29 USER
30 };
31
32 public:
33
34 Config();
35 Config( const Area _area );
36
37 std::string asString( const std::string & _field );
38 int asInt( const std::string & _field );
39
40};
41
42} // endnamespace GCW {
43
44#endif // end#ifndef __CONFIG_H___
45
46
Application Configuration.
Definition Config.h:23
std::string asString(const std::string &_field)
int asInt(const std::string &_field)
Config(const Area _area)
Definition App.h:18