Gaia
gaia2std.h
1 /*
2  * Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
3  *
4  * This file is part of Gaia
5  *
6  * Gaia is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Affero General Public License as published by the Free
8  * Software Foundation (FSF), either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14  * details.
15  *
16  * You should have received a copy of the Affero GNU General Public License
17  * version 3 along with this program. If not, see http://www.gnu.org/licenses/
18  */
19 
20 #ifndef GAIA_STL_GAIA2STD_H
21 #define GAIA_STL_GAIA2STD_H
22 
23 #include "origtypes.h"
24 
25 namespace gaia2std {
26 
31 void init();
32 
36 bool verbose();
37 
41 void setVerbose(bool verbosity);
42 
43 
44 // Debugging functions
45 
46 enum DebuggingModules {
47  // general modules
48  GMemory = 1 << 0,
49  GAlgorithms = 1 << 1,
50  GMath = 1 << 2,
51  GParser = 1 << 3,
52  GIO = 1 << 4,
53 
54  // class specific modules
55  GDataSet = 1 << 10,
56  GDescriptorTree = 1 << 11,
57  GRegion = 1 << 12,
58  GPoint = 1 << 13,
59  GView = 1 << 14,
60 
61  GNone = 0,
62  GAll = (1 << 30) -1
63 };
64 
65 void setDebugLevel(int levels);
66 void unsetDebugLevel(int levels);
67 
68 } // namespace gaia2std
69 
70 
71 #endif // GAIA_STL_GAIA2STD_H
Definition: baseexception.h:26
void init()
Init function that makes sure that all the factories have correctly registered all the types they can...
Definition: gaia.cpp:53
bool verbose
Flag that controls whether gaia should be silent or not, in general.
Definition: gaia.cpp:37