Add a filter-by-from/to-chunk in ExitManager::List.
[UnsignedByte.git] / src / DB / Generated / TableImpls.cpp
blobc1e827ef52195280d507518b721ff24f942d0add
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 ***************************************************************************/
21 /* NOTE: This file was generated automatically. Do not edit. */
23 #include "TableImpl.h"
24 #include "TableImpls.h"
25 #include "Tables.h"
26 #include "FieldImpl.h"
27 #include "FieldImpls.h"
28 #include "KeyImpl.h"
30 using namespace db;
32 TableImpls::TableImpls() :
33 ACCOUNTS( SmartPtr<db::Accounts>(new db::Accounts()) ),
34 AREAS( SmartPtr<db::Areas>(new db::Areas()) ),
35 BRANCHES( SmartPtr<db::Branches>(new db::Branches()) ),
36 CHANNELS( SmartPtr<db::Channels>(new db::Channels()) ),
37 CHANNELLOGS( SmartPtr<db::ChannelLogs>(new db::ChannelLogs()) ),
38 CHARACTERACCOUNT( SmartPtr<db::CharacterAccount>(new db::CharacterAccount()) ),
39 CHARACTERBRANCH( SmartPtr<db::CharacterBranch>(new db::CharacterBranch()) ),
40 CHARACTERCLUSTER( SmartPtr<db::CharacterCluster>(new db::CharacterCluster()) ),
41 CHARACTERSKILL( SmartPtr<db::CharacterSkill>(new db::CharacterSkill()) ),
42 CHARACTERSTAT( SmartPtr<db::CharacterStat>(new db::CharacterStat()) ),
43 CHARACTERTREE( SmartPtr<db::CharacterTree>(new db::CharacterTree()) ),
44 CLUSTERS( SmartPtr<db::Clusters>(new db::Clusters()) ),
45 CHUNKS( SmartPtr<db::Chunks>(new db::Chunks()) ),
46 COLOURS( SmartPtr<db::Colours>(new db::Colours()) ),
47 COMMANDS( SmartPtr<db::Commands>(new db::Commands()) ),
48 DETAILS( SmartPtr<db::Details>(new db::Details()) ),
49 DETAILAREA( SmartPtr<db::DetailArea>(new db::DetailArea()) ),
50 DETAILROOM( SmartPtr<db::DetailRoom>(new db::DetailRoom()) ),
51 DETAILCHUNK( SmartPtr<db::DetailChunk>(new db::DetailChunk()) ),
52 DETAILCHARACTER( SmartPtr<db::DetailCharacter>(new db::DetailCharacter()) ),
53 DETAILDETAIL( SmartPtr<db::DetailDetail>(new db::DetailDetail()) ),
54 ECHOS( SmartPtr<db::Echos>(new db::Echos()) ),
55 ENTITIES( SmartPtr<db::Entities>(new db::Entities()) ),
56 EXITS( SmartPtr<db::Exits>(new db::Exits()) ),
57 GRANTGROUPS( SmartPtr<db::GrantGroups>(new db::GrantGroups()) ),
58 LOGS( SmartPtr<db::Logs>(new db::Logs()) ),
59 PERMISSIONS( SmartPtr<db::Permissions>(new db::Permissions()) ),
60 RACES( SmartPtr<db::Races>(new db::Races()) ),
61 ROOMS( SmartPtr<db::Rooms>(new db::Rooms()) ),
62 SECTORS( SmartPtr<db::Sectors>(new db::Sectors()) ),
63 SKILLS( SmartPtr<db::Skills>(new db::Skills()) ),
64 STATS( SmartPtr<db::Stats>(new db::Stats()) ),
65 TRACES( SmartPtr<db::Traces>(new db::Traces()) ),
66 TRACECHUNK( SmartPtr<db::TraceChunk>(new db::TraceChunk()) ),
67 TRACEDETAIL( SmartPtr<db::TraceDetail>(new db::TraceDetail()) ),
68 TRACEENTITY( SmartPtr<db::TraceEntity>(new db::TraceEntity()) ),
69 TRACEROOM( SmartPtr<db::TraceRoom>(new db::TraceRoom()) ),
70 TREES( SmartPtr<db::Trees>(new db::Trees()) ),
71 VERSION( SmartPtr<db::Version>(new db::Version()) )
73 m_tables.push_back(ACCOUNTS);
74 m_tables.push_back(AREAS);
75 m_tables.push_back(BRANCHES);
76 m_tables.push_back(CHANNELS);
77 m_tables.push_back(CHANNELLOGS);
78 m_tables.push_back(CHARACTERACCOUNT);
79 m_tables.push_back(CHARACTERBRANCH);
80 m_tables.push_back(CHARACTERCLUSTER);
81 m_tables.push_back(CHARACTERSKILL);
82 m_tables.push_back(CHARACTERSTAT);
83 m_tables.push_back(CHARACTERTREE);
84 m_tables.push_back(CLUSTERS);
85 m_tables.push_back(CHUNKS);
86 m_tables.push_back(COLOURS);
87 m_tables.push_back(COMMANDS);
88 m_tables.push_back(DETAILS);
89 m_tables.push_back(DETAILAREA);
90 m_tables.push_back(DETAILROOM);
91 m_tables.push_back(DETAILCHUNK);
92 m_tables.push_back(DETAILCHARACTER);
93 m_tables.push_back(DETAILDETAIL);
94 m_tables.push_back(ECHOS);
95 m_tables.push_back(ENTITIES);
96 m_tables.push_back(EXITS);
97 m_tables.push_back(GRANTGROUPS);
98 m_tables.push_back(LOGS);
99 m_tables.push_back(PERMISSIONS);
100 m_tables.push_back(RACES);
101 m_tables.push_back(ROOMS);
102 m_tables.push_back(SECTORS);
103 m_tables.push_back(SKILLS);
104 m_tables.push_back(STATS);
105 m_tables.push_back(TRACES);
106 m_tables.push_back(TRACECHUNK);
107 m_tables.push_back(TRACEDETAIL);
108 m_tables.push_back(TRACEENTITY);
109 m_tables.push_back(TRACEROOM);
110 m_tables.push_back(TREES);
111 m_tables.push_back(VERSION);
114 void TableImpls::Initialize()
116 Assert(!m_initialized);
118 m_initialized = true;
120 for(TableImplVector::const_iterator it = m_tables.begin(); it != m_tables.end(); it++)
122 TableImplPtr table = *it;
123 Assert(table);
125 table->Initialize();