syntax help and some cmd-line parsing
[ecparse.git] / GlobalSettings.cpp
1 /**
2  * © 2008 by David ‘Bombe’ Roden <bombe@pterodactylus.net>
3  */
4
5 #include "GlobalSettings.h"
6
7 GlobalSettings::GlobalSettings() {
8         verbose = false;
9 }
10
11 GlobalSettings::~GlobalSettings() {
12 }
13
14 GlobalSettings* GlobalSettings::instance = 0;
15
16 GlobalSettings* GlobalSettings::getInstance() {
17         if (instance) {
18                 return instance;
19         }
20         instance = new GlobalSettings();
21         return instance;
22 }
23
24 void GlobalSettings::setVerbose(bool verbose) {
25         this->verbose = verbose;
26 }
27