]> Dogcows Code - chaz/yoink/blob - src/Moof/Backend.hh
more explicit constructors
[chaz/yoink] / src / Moof / Backend.hh
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #ifndef _MOOF_BACKEND_HH_
13 #define _MOOF_BACKEND_HH_
14
15
16 namespace Mf {
17
18
19 class Error;
20
21
22 /*
23 * Some classes and subsystems require certain backend libraries to be
24 * initialized. This is the mechanism to accomplish that. Classes which
25 * rely on any backend libraries just need to instantiate this class as a
26 * member. Backend cleanup will occur automagically when there are no more
27 * instances.
28 */
29
30 class Backend
31 {
32 public:
33
34 Backend();
35 Backend(const Backend& backend);
36 ~Backend();
37
38 static bool isInitialized();
39 static const Error& getError();
40 };
41
42
43 } // namespace Mf
44
45 #endif // _MOOF_BACKEND_HH_
46
This page took 0.029088 seconds and 4 git commands to generate.