Code_TYMPAN  4.4.0
Industrial site acoustic simulation
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"
27 #if WITH_NMPB
29 #endif
70 #if WITH_NMPB
72 #endif
90 
91 namespace tympan
92 {
93 
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
static void add_factory(const char *, IOProtoFactory::ptr_type factory)
Definition: TYElement.cpp:32
void init_registry()