Code_TYMPAN
4.4.0
Industrial site acoustic simulation
Tympan
models
business
init_registry.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) <2012-2024> <EDF-DTG> <FRANCE>
3
* This file is part of Code_TYMPAN (R).
4
* Code_TYMPAN (R) is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
* Code_TYMPAN (R) is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
* See the GNU General Public License for more details.
12
* You should have received a copy of the GNU General Public License along
13
* with Code_TYMPAN (R). If not, see <https://www.gnu.org/licenses/>.
14
*/
15
16
#include "
init_registry.h
"
17
#include "
Tympan/models/business/TYElement.h
"
18
#include "
Tympan/models/business/infrastructure/TYTopographie.h
"
19
#include "
Tympan/models/business/infrastructure/TYInfrastructure.h
"
20
#include "
Tympan/models/business/infrastructure/TYSiteNode.h
"
21
#include "
Tympan/models/business/infrastructure/TYDalle.h
"
22
#include "
Tympan/models/business/infrastructure/TYEcran.h
"
23
#include "
Tympan/models/business/infrastructure/TYBatiment.h
"
24
#include "
Tympan/models/business/infrastructure/TYEtage.h
"
25
#include "
Tympan/models/business/infrastructure/TYMachine.h
"
26
#include "
Tympan/models/business/infrastructure/TYMur.h
"
27
#if WITH_NMPB
28
#include "
Tympan/models/business/infrastructure/TYRoute.h
"
29
#endif
30
#include "
Tympan/models/business/infrastructure/TYMurElement.h
"
31
#include "
Tympan/models/business/infrastructure/TYReseauTransport.h
"
32
#include "
Tympan/models/business/infrastructure/TYParoi.h
"
33
#include "
Tympan/models/business/material/TYMateriauConstruction.h
"
34
#include "
Tympan/models/business/material/TYVegetation.h
"
35
#include "
Tympan/models/business/material/TYSol.h
"
36
#include "
Tympan/models/business/geometry/TYPoint.h
"
37
#include "
Tympan/models/business/geometry/TYRepere.h
"
38
#include "
Tympan/models/business/geometry/TYBox.h
"
39
#include "
Tympan/models/business/geometry/TYSegment.h
"
40
#include "
Tympan/models/business/geometry/TYGeometryNode.h
"
41
#include "
Tympan/models/business/geometry/TYPolygon.h
"
42
#include "
Tympan/models/business/geometry/TYFaceSet.h
"
43
#include "
Tympan/models/business/geometry/TYRectangle.h
"
44
#include "
Tympan/models/business/TYPalette.h
"
45
#include "
Tympan/models/business/TYPanel.h
"
46
#include "
Tympan/models/business/TYBoundaryNoiseMap.h
"
47
#include "
Tympan/models/business/TYLinearMaillage.h
"
48
#include "
Tympan/models/business/TYPointControl.h
"
49
#include "
Tympan/models/business/TYPointCalcul.h
"
50
#include "
Tympan/models/business/TYResultat.h
"
51
#include "
Tympan/models/business/TYRectangularMaillage.h
"
52
#include "
Tympan/models/business/TYProjet.h
"
53
#include "
Tympan/models/business/TYMaillage.h
"
54
#include "
Tympan/models/business/TYCalcul.h
"
55
#include "
Tympan/models/business/TYRay.h
"
56
#include "
Tympan/models/business/topography/TYAltimetrie.h
"
57
#include "
Tympan/models/business/topography/TYPlanEau.h
"
58
#include "
Tympan/models/business/topography/TYCoursEau.h
"
59
#include "
Tympan/models/business/topography/TYTerrain.h
"
60
#include "
Tympan/models/business/topography/TYCourbeNiveau.h
"
61
#include "
Tympan/models/business/acoustic/TYSource.h
"
62
#include "
Tympan/models/business/acoustic/TYDirectivity.h
"
63
#include "
Tympan/models/business/acoustic/TYSpectre.h
"
64
#include "
Tympan/models/business/acoustic/TYSourceLineic.h
"
65
#include "
Tympan/models/business/acoustic/TYSourceCheminee.h
"
66
#include "
Tympan/models/business/acoustic/TYUserSourcePonctuelle.h
"
67
#include "
Tympan/models/business/acoustic/TYSourceSurfacic.h
"
68
#include "
Tympan/models/business/acoustic/TYSourcePonctuelle.h
"
69
#include "
Tympan/models/business/acoustic/TYSourceBafflee.h
"
70
#if WITH_NMPB
71
#include "
Tympan/models/business/acoustic/TYTrafic.h
"
72
#endif
73
#include "
Tympan/models/business/acoustic/TYAttenuateur.h
"
74
#include "
Tympan/models/business/geoacoustic/TYBoucheSurface.h
"
75
#include "
Tympan/models/business/geoacoustic/TYChemineeSurface.h
"
76
#include "
Tympan/models/business/geoacoustic/TYAcousticSurfaceNode.h
"
77
#include "
Tympan/models/business/geoacoustic/TYAcousticVolume.h
"
78
#include "
Tympan/models/business/geoacoustic/TYAcousticSurface.h
"
79
#include "
Tympan/models/business/geoacoustic/TYAcousticRectangle.h
"
80
#include "
Tympan/models/business/geoacoustic/TYAcousticSemiCylinder.h
"
81
#include "
Tympan/models/business/geoacoustic/TYAcousticRectangleNode.h
"
82
#include "
Tympan/models/business/geoacoustic/TYAcousticCylinder.h
"
83
#include "
Tympan/models/business/geoacoustic/TYAcousticBox.h
"
84
#include "
Tympan/models/business/geoacoustic/TYAcousticSemiCircle.h
"
85
#include "
Tympan/models/business/geoacoustic/TYAcousticVolumeNode.h
"
86
#include "
Tympan/models/business/geoacoustic/TYAcousticCircle.h
"
87
#include "
Tympan/models/business/geoacoustic/TYAcousticPolygon.h
"
88
#include "
Tympan/models/business/geoacoustic/TYAcousticLine.h
"
89
#include "
Tympan/models/business/geoacoustic/TYAcousticFaceSet.h
"
90
91
namespace
tympan
92
{
93
94
void
init_registry
()
95
{
96
// MetierSolver/DataManagerCore
97
OPrototype::add_factory
(
"TYElement"
, std::move(build_factory<TYElement>()));
98
// Metier/Solver/DataManagerMetier/Site
99
OPrototype::add_factory
(
"TYTopographie"
, std::move(build_factory<TYTopographie>()));
100
OPrototype::add_factory
(
"TYInfrastructure"
, std::move(build_factory<TYInfrastructure>()));
101
OPrototype::add_factory
(
"TYSiteNode"
, std::move(build_factory<TYSiteNode>()));
102
// models/business/infrastructure
103
OPrototype::add_factory
(
"TYDalle"
, std::move(build_factory<TYDalle>()));
104
OPrototype::add_factory
(
"TYEcran"
, std::move(build_factory<TYEcran>()));
105
OPrototype::add_factory
(
"TYBatiment"
, std::move(build_factory<TYBatiment>()));
106
OPrototype::add_factory
(
"TYEtage"
, std::move(build_factory<TYEtage>()));
107
OPrototype::add_factory
(
"TYMachine"
, std::move(build_factory<TYMachine>()));
108
OPrototype::add_factory
(
"TYMur"
, std::move(build_factory<TYMur>()));
109
#if WITH_NMPB
110
OPrototype::add_factory
(
"TYRoute"
, std::move(build_factory<TYRoute>()));
111
#endif
112
OPrototype::add_factory
(
"TYMurElement"
, std::move(build_factory<TYMurElement>()));
113
OPrototype::add_factory
(
"TYReseauTransport"
, std::move(build_factory<TYReseauTransport>()));
114
OPrototype::add_factory
(
"TYParoi"
, std::move(build_factory<TYParoi>()));
115
// models/business/material
116
OPrototype::add_factory
(
"TYMateriauConstruction"
, std::move(build_factory<TYMateriauConstruction>()));
117
OPrototype::add_factory
(
"TYVegetation"
, std::move(build_factory<TYVegetation>()));
118
OPrototype::add_factory
(
"TYSol"
, std::move(build_factory<TYSol>()));
119
// models/business/geometry
120
OPrototype::add_factory
(
"TYPoint"
, std::move(build_factory<TYPoint>()));
121
OPrototype::add_factory
(
"TYRepere"
, std::move(build_factory<TYRepere>()));
122
OPrototype::add_factory
(
"TYBox"
, std::move(build_factory<TYBox>()));
123
OPrototype::add_factory
(
"TYSegment"
, std::move(build_factory<TYSegment>()));
124
OPrototype::add_factory
(
"TYGeometryNode"
, std::move(build_factory<TYGeometryNode>()));
125
OPrototype::add_factory
(
"TYPolygon"
, std::move(build_factory<TYPolygon>()));
126
OPrototype::add_factory
(
"TYFaceSet"
, std::move(build_factory<TYFaceSet>()));
127
OPrototype::add_factory
(
"TYRectangle"
, std::move(build_factory<TYRectangle>()));
128
// models/business/Commun
129
OPrototype::add_factory
(
"TYPalette"
, std::move(build_factory<TYPalette>()));
130
OPrototype::add_factory
(
"TYPanel"
, std::move(build_factory<TYPanel>()));
131
OPrototype::add_factory
(
"TYBoundaryNoiseMap"
, std::move(build_factory<TYBoundaryNoiseMap>()));
132
OPrototype::add_factory
(
"TYLinearMaillage"
, std::move(build_factory<TYLinearMaillage>()));
133
OPrototype::add_factory
(
"TYPointControl"
, std::move(build_factory<TYPointControl>()));
134
OPrototype::add_factory
(
"TYPointCalcul"
, std::move(build_factory<TYPointCalcul>()));
135
OPrototype::add_factory
(
"TYResultat"
, std::move(build_factory<TYResultat>()));
136
OPrototype::add_factory
(
"TYRectangularMaillage"
, std::move(build_factory<TYRectangularMaillage>()));
137
OPrototype::add_factory
(
"TYProjet"
, std::move(build_factory<TYProjet>()));
138
OPrototype::add_factory
(
"TYMaillage"
, std::move(build_factory<TYMaillage>()));
139
OPrototype::add_factory
(
"TYCalcul"
, std::move(build_factory<TYCalcul>()));
140
OPrototype::add_factory
(
"TYRay"
, std::move(build_factory<TYRay>()));
141
// models/business/topography
142
OPrototype::add_factory
(
"TYAltimetrie"
, std::move(build_factory<TYAltimetrie>()));
143
OPrototype::add_factory
(
"TYPlanEau"
, std::move(build_factory<TYPlanEau>()));
144
OPrototype::add_factory
(
"TYCoursEau"
, std::move(build_factory<TYCoursEau>()));
145
OPrototype::add_factory
(
"TYTerrain"
, std::move(build_factory<TYTerrain>()));
146
OPrototype::add_factory
(
"TYCourbeNiveau"
, std::move(build_factory<TYCourbeNiveau>()));
147
// models/business/acoustique
148
OPrototype::add_factory
(
"TYSource"
, std::move(build_factory<TYSource>()));
149
OPrototype::add_factory
(
"TYDirectivity"
, std::move(build_factory<TYDirectivity>()));
150
OPrototype::add_factory
(
"TYUserDefinedDirectivity"
, std::move(build_factory<TYUserDefinedDirectivity>()));
151
OPrototype::add_factory
(
"TYComputedDirectivity"
, std::move(build_factory<TYComputedDirectivity>()));
152
OPrototype::add_factory
(
"TYSpectre"
, std::move(build_factory<TYSpectre>()));
153
OPrototype::add_factory
(
"TYSourceLineic"
, std::move(build_factory<TYSourceLineic>()));
154
OPrototype::add_factory
(
"TYSourceCheminee"
, std::move(build_factory<TYSourceCheminee>()));
155
OPrototype::add_factory
(
"TYUserSourcePonctuelle"
, std::move(build_factory<TYUserSourcePonctuelle>()));
156
OPrototype::add_factory
(
"TYSourceSurfacic"
, std::move(build_factory<TYSourceSurfacic>()));
157
OPrototype::add_factory
(
"TYSourcePonctuelle"
, std::move(build_factory<TYSourcePonctuelle>()));
158
OPrototype::add_factory
(
"TYSourceBafflee"
, std::move(build_factory<TYSourceBafflee>()));
159
#if WITH_NMPB
160
OPrototype::add_factory
(
"TYTrafic"
, std::move(build_factory<TYTrafic>()));
161
#endif
162
OPrototype::add_factory
(
"TYAttenuateur"
, std::move(build_factory<TYAttenuateur>()));
163
// models/business/geoacoustic
164
OPrototype::add_factory
(
"TYBoucheSurface"
, std::move(build_factory<TYBoucheSurface>()));
165
OPrototype::add_factory
(
"TYChemineeSurface"
, std::move(build_factory<TYChemineeSurface>()));
166
OPrototype::add_factory
(
"TYAcousticSurfaceNode"
, std::move(build_factory<TYAcousticSurfaceNode>()));
167
OPrototype::add_factory
(
"TYAcousticVolume"
, std::move(build_factory<TYAcousticVolume>()));
168
OPrototype::add_factory
(
"TYAcousticSurface"
, std::move(build_factory<TYAcousticSurface>()));
169
OPrototype::add_factory
(
"TYAcousticRectangle"
, std::move(build_factory<TYAcousticRectangle>()));
170
OPrototype::add_factory
(
"TYAcousticSemiCylinder"
, std::move(build_factory<TYAcousticSemiCylinder>()));
171
OPrototype::add_factory
(
"TYAcousticRectangleNode"
, std::move(build_factory<TYAcousticRectangleNode>()));
172
OPrototype::add_factory
(
"TYAcousticCylinder"
, std::move(build_factory<TYAcousticCylinder>()));
173
OPrototype::add_factory
(
"TYAcousticBox"
, std::move(build_factory<TYAcousticBox>()));
174
OPrototype::add_factory
(
"TYAcousticSemiCircle"
, std::move(build_factory<TYAcousticSemiCircle>()));
175
OPrototype::add_factory
(
"TYAcousticVolumeNode"
, std::move(build_factory<TYAcousticVolumeNode>()));
176
OPrototype::add_factory
(
"TYAcousticCircle"
, std::move(build_factory<TYAcousticCircle>()));
177
OPrototype::add_factory
(
"TYAcousticPolygon"
, std::move(build_factory<TYAcousticPolygon>()));
178
OPrototype::add_factory
(
"TYAcousticLine"
, std::move(build_factory<TYAcousticLine>()));
179
OPrototype::add_factory
(
"TYAcousticFaceSet"
, std::move(build_factory<TYAcousticFaceSet>()));
180
181
// These classes weren't registered initially. Make sure they really don't need
182
// to be.
183
// OPrototype::add_factory("TYUserSrcRegime", std::move(build_factory<TYUserSrcRegime>()));
184
// OPrototype::add_factory("TYRegime", std::move(build_factory<TYRegime>()));
185
}
186
187
}
// namespace tympan
TYAcousticBox.h
TYAcousticCircle.h
TYAcousticCylinder.h
TYAcousticFaceSet.h
TYAcousticLine.h
TYAcousticPolygon.h
TYAcousticRectangleNode.h
TYAcousticRectangle.h
TYAcousticSemiCircle.h
TYAcousticSemiCylinder.h
TYAcousticSurfaceNode.h
TYAcousticSurface.h
TYAcousticVolumeNode.h
TYAcousticVolume.h
TYAltimetrie.h
TYAttenuateur.h
TYBatiment.h
TYBoucheSurface.h
TYBoundaryNoiseMap.h
TYBox.h
TYCalcul.h
TYChemineeSurface.h
TYCourbeNiveau.h
TYCoursEau.h
TYDalle.h
TYDirectivity.h
TYEcran.h
TYElement.h
TYEtage.h
TYFaceSet.h
TYGeometryNode.h
TYInfrastructure.h
TYLinearMaillage.h
TYMachine.h
TYMaillage.h
TYMateriauConstruction.h
TYMurElement.h
TYMur.h
TYPalette.h
TYPanel.h
TYParoi.h
TYPlanEau.h
TYPointCalcul.h
TYPointControl.h
TYPoint.h
TYPolygon.h
TYProjet.h
TYRay.h
TYRectangle.h
TYRectangularMaillage.h
TYRepere.h
TYReseauTransport.h
TYResultat.h
TYRoute.h
TYSegment.h
TYSiteNode.h
TYSol.h
TYSourceBafflee.h
TYSourceCheminee.h
TYSourceLineic.h
TYSourcePonctuelle.h
TYSourceSurfacic.h
TYSource.h
TYSpectre.h
TYTerrain.h
TYTopographie.h
TYTrafic.h
TYUserSourcePonctuelle.h
TYVegetation.h
OPrototype::add_factory
static void add_factory(const char *, IOProtoFactory::ptr_type factory)
Definition:
TYElement.cpp:32
init_registry.h
tympan
Definition:
exceptions.h:56
tympan::init_registry
void init_registry()
Definition:
init_registry.cpp:94
Generated on Fri Jan 23 2026 15:52:20 for Code_TYMPAN by
1.9.1