Add a filter-by-from/to-chunk in ExitManager::List.
[UnsignedByte.git] / src / DB / Managers / Managers.h
blobeb5a18edf8039b92b41cf572fb36fdfaf79ee0e8
1 /***************************************************************************
2 * Copyright (C) 2008 by Sverre Rabbelier *
3 * sverre@rabbelier.nl *
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
20 #pragma once
22 #include "Types.h"
24 namespace mud
26 class AccountManager;
27 class AreaManager;
28 class ChannelManager;
29 class CharacterManager;
30 class ChunkManager;
31 class ClusterManager;
32 class ColourManager;
33 class CommandManager;
34 class DetailManager;
35 class EchoManager;
36 class ExitManager;
37 class GrantGroupManager;
38 class MCharacterManager;
39 class PermissionManager;
40 class RaceManager;
41 class RoomManager;
42 class SectorManager;
43 class TraceManager;
45 /**
46 * This singleton the one instance of all other managers.
48 * It is usefull to contain all Singletons in one place since now all singeltons may be freed with a single call.
49 * As such, this class is really a 'manager manager'.
50 */
51 class Managers : public Singleton<mud::Managers>
53 public:
54 AccountManager* Account; /**< The manager for Account objects. */
55 AreaManager* Area; /**< The manager for Area objects. */
56 ChannelManager* Channel; /**< The manager for Channel objects. */
57 CharacterManager* Character; /**< The manager for Character objects. */
58 ChunkManager* Chunk; /**< The manager for Chunk objects. */
59 ClusterManager* Cluster; /**< The manager for Cluster objects. */
60 ColourManager* Colour; /**< The manager for Colour objects. */
61 CommandManager* Command; /**< The manager for Command objects. */
62 DetailManager* Detail; /**< The manager for Detail objects. */
63 EchoManager* Echo; /**< The manager for Echo objects. */
64 ExitManager* Exit; /**< The manager for Exit objects. */
65 GrantGroupManager* GrantGroup; /**< The manager for GrantGroup objects. */
66 MCharacterManager* MCharacter; /**< The manager for MCharacter objects. */
67 PermissionManager* Permission; /**< The manager for Permission objects. */
68 RaceManager* Race; /**< The manager for Race objects. */
69 RoomManager* Room; /**< The manager for Room objects. */
70 SectorManager* Sector; /**< The manager for Sector objects. */
71 TraceManager* Trace; /**< The manager for Trace objects. */
73 private:
74 /** This is a singleton class, use <code>Get</code> to get the instance. */
75 Managers();
77 /** Hide the copy constructor. */
78 Managers(const Managers& rhs);
80 /** Hide the assignment constructor. */
81 Managers operator=(const Managers& rhs);
83 /** This is a singleton class, use <code>Free</code> to free the instance. */
84 ~Managers();
86 friend class Singleton<mud::Managers>;