KnownIdStrategy.hpp
Go to the documentation of this file.
1 //
3 // Thor C++ Library
4 // Copyright (c) 2011-2015 Jan Haller
5 //
6 // This software is provided 'as-is', without any express or implied
7 // warranty. In no event will the authors be held liable for any damages
8 // arising from the use of this software.
9 //
10 // Permission is granted to anyone to use this software for any purpose,
11 // including commercial applications, and to alter it and redistribute it
12 // freely, subject to the following restrictions:
13 //
14 // 1. The origin of this software must not be misrepresented; you must not
15 // claim that you wrote the original software. If you use this software
16 // in a product, an acknowledgment in the product documentation would be
17 // appreciated but is not required.
18 //
19 // 2. Altered source versions must be plainly marked as such, and must not be
20 // misrepresented as being the original software.
21 //
22 // 3. This notice may not be removed or altered from any source distribution.
23 //
25 
28 
29 #ifndef THOR_KNOWNIDSTRATEGY_HPP
30 #define THOR_KNOWNIDSTRATEGY_HPP
31 
32 
33 namespace thor
34 {
35 
38 
39 namespace Resources
40 {
41 
46  {
50  };
51 
52 } // namespace Resources
53 
55 
56 } // namespace thor
57 
58 #endif // THOR_KNOWNIDSTRATEGY_HPP
Always loads a new resource. If the ID is already known, the corresponding resource is released...
Definition: KnownIdStrategy.hpp:49
Loads a new resource if the ID is unknown. Otherwise, a ResourceAccessException is thrown...
Definition: KnownIdStrategy.hpp:47
KnownIdStrategy
Strategy to deal with already known resource IDs.
Definition: KnownIdStrategy.hpp:45
Definition: Animator.hpp:42
Loads a new resource if the ID is unknown. Otherwise, the resource associated with the ID is reused...
Definition: KnownIdStrategy.hpp:48