Simulateur Ferroviaire
Reconstruction et visualisation d'un réseau ferroviaire à partir de données GeoJSON — Win32 / WebView2 / Leaflet
Chargement...
Recherche...
Aucune correspondance
Phase8_RepositoryTransfer.h
Aller à la documentation de ce fichier.
1
25#pragma once
26
27#include "PipelineContext.h"
29
31{
32public:
33
49 static void resolve(PipelineContext& ctx, Logger& logger);
50
65 static void transfer(PipelineContext& ctx, Logger& logger);
66
68
69private:
70
81 static std::unordered_map<std::string, ShuntingElement*>
82 buildBlockIndex(const BlockSet& blocks);
83
93 static void resolveStraight(
94 StraightBlock& st,
95 const BlockEndpoint& epPrev,
96 const BlockEndpoint& epNext,
97 const std::unordered_map<std::string, ShuntingElement*>& index,
98 Logger& logger);
99
108 static void resolveSwitch(
109 SwitchBlock& sw,
110 const std::array<BlockEndpoint, 3>& eps,
111 const std::unordered_map<std::string, ShuntingElement*>& index,
112 Logger& logger);
113};
Système de journalisation à 5 niveaux de trace, un fichier par moteur.
Conteneur central des données inter-phases du pipeline GeoParser.
Journaliseur associé à un moteur nommé.
Definition Logger.h:99
Definition Phase8_RepositoryTransfer.h:31
static void resolveSwitch(SwitchBlock &sw, const std::array< BlockEndpoint, 3 > &eps, const std::unordered_map< std::string, ShuntingElement * > &index, Logger &logger)
Résout les pointeurs root/normal/deviation d'un SwitchBlock.
Definition Phase8_RepositoryTransfer.cpp:240
static std::unordered_map< std::string, ShuntingElement * > buildBlockIndex(const BlockSet &blocks)
Construit l'index ID → ShuntingElement* depuis ctx.blocks.
Definition Phase8_RepositoryTransfer.cpp:186
static void resolveStraight(StraightBlock &st, const BlockEndpoint &epPrev, const BlockEndpoint &epNext, const std::unordered_map< std::string, ShuntingElement * > &index, Logger &logger)
Résout les pointeurs prev/next d'un StraightBlock.
Definition Phase8_RepositoryTransfer.cpp:200
static void transfer(PipelineContext &ctx, Logger &logger)
9b — Transfère les blocs vers TopologyRepository.
Definition Phase8_RepositoryTransfer.cpp:139
static void resolve(PipelineContext &ctx, Logger &logger)
9a — Résout les pointeurs inter-blocs.
Definition Phase8_RepositoryTransfer.cpp:33
Definition StraightBlock.h:24
Definition SwitchBlock.h:41
Extrémité d'un bloc — nœud frontière + ID du bloc voisin.
Definition BlockSet.h:35
Conteneur propriétaire des StraightBlock et SwitchBlock.
Definition BlockSet.h:48
Conteneur central du pipeline GeoParser.
Definition PipelineContext.h:51