Gaia
gaia.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_GAIA_H
21 #define GAIA_GAIA_H
22 
23 #include "types.h"
24 #include "gaiaexception.h"
25 
30 class __TODO__ {};
31 
35 namespace gaia2 {
36 
42 void init();
43 
48 void shutdown();
49 
55 extern bool verbose;
56 
57 extern const char* version;
58 extern const char* version_git_sha;
59 
60 } // namespace gaia2
61 
62 
63 
64 
65 template <typename T, size_t N>
66 char (&ArraySizeHelper(T (&array)[N]))[N];
67 
73 #define ARRAYSIZE(array) (sizeof(ArraySizeHelper(array)))
74 
78 #define range(c) (c).begin(), (c).end()
79 
80 
81 // adds serialization of QString into a std::ostream
82 inline std::ostream& operator<<(std::ostream& out, const QString& str) {
83  return out << str.toUtf8().data();
84 }
85 
86 #define NAME_SEPARATOR '.'
87 
88 
89 #endif // GAIA_GAIA_H
Main Gaia namespace, which contains all the library functions.
Definition: addfield.cpp:22
Definition: gaia.h:30