libAlgAudio  v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SDLHandle.hpp
Go to the documentation of this file.
1 #ifndef SDLHANDLE_HPP
2 #define SDLHANDLE_HPP
3 /*
4 This file is part of AlgAudio.
5 
6 AlgAudio, Copyright (C) 2015 CeTA - Audiovisual Technology Center
7 
8 AlgAudio is free software: you can redistribute it and/or modify
9 it under the terms of the GNU Lesser General Public License as
10 published by the Free Software Foundation, either version 3 of the
11 License, or (at your option) any later version.
12 
13 AlgAudio is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Lesser General Public License for more details.
17 
18 You should have received a copy of the GNU Lesser General Public License
19 along with AlgAudio. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #include "Utilities.hpp"
23 
24 namespace AlgAudio{
25 
26 namespace Exceptions{
27 struct SDLException : public Exception{
28  SDLException(std::string t);
29 };
30 struct SDLExceptionNoDesc : public Exception{
31  SDLExceptionNoDesc(std::string t) : Exception(t) {}
32 };
33 } // namesace Exceptions
34 
40 class SDLHandle{
41 private:
42  static int reference_counter;
43 public:
44  SDLHandle();
45  ~SDLHandle();
46  static int GetReferenceCount() {return reference_counter;}
47 };
48 
49 } // namespace AlgAudio
50 #endif // SDLHANDLE_HPP
Definition: SDLHandle.hpp:27
Definition: SDLHandle.hpp:40
static int GetReferenceCount()
Definition: SDLHandle.hpp:46
Definition: Alertable.hpp:26
SDLExceptionNoDesc(std::string t)
Definition: SDLHandle.hpp:31
Definition: Exception.hpp:29
Definition: SDLHandle.hpp:30