GnuCashew ~ GnuCash Enabled Web
GCW
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
8
namespace
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
*/
22
class
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
GCW::Config
Application Configuration.
Definition:
Config.h:23
GCW::Config::asString
std::string asString(const std::string &_field)
GCW::Config::asInt
int asInt(const std::string &_field)
GCW::Config::Area
Area
Definition:
Config.h:25
GCW::Config::Area::APP
@ APP
GCW::Config::Area::USER
@ USER
GCW::Config::Area::GLOBAL
@ GLOBAL
GCW::Config::Area::FILE
@ FILE
GCW::Config::Config
Config()
Definition:
Config.cpp:6
GCW::Config::Config
Config(const Area _area)
GCW
Definition:
App.h:17
Generated on Fri Mar 7 2025 11:49:32 for GnuCashew ~ GnuCash Enabled Web by
1.9.1