Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/netimport/NILoader.h
169666 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
14
/// @file NILoader.h
15
/// @author Daniel Krajzewicz
16
/// @author Jakob Erdmann
17
/// @author Michael Behrisch
18
/// @date Tue, 20 Nov 2001
19
///
20
// Perfoms network import
21
/****************************************************************************/
22
#pragma once
23
#include <config.h>
24
25
#include <string>
26
#include <vector>
27
#include <xercesc/sax2/SAX2XMLReader.hpp>
28
29
30
// ===========================================================================
31
// class declarations
32
// ===========================================================================
33
class OptionsCont;
34
class NBNetBuilder;
35
class Position;
36
class PositionVector;
37
38
39
// ===========================================================================
40
// class definitions
41
// ===========================================================================
42
/**
43
* @class NILoader
44
* @brief Perfoms network import
45
*
46
* A plain loader which encapsulates calls to the import modules.
47
*/
48
class NILoader {
49
public:
50
/** @brief Constructor
51
* @param[in] nb The network builder to fill with loaded data
52
*/
53
NILoader(NBNetBuilder& nb);
54
55
56
/// @brief Destructor
57
~NILoader();
58
59
60
/** loads data from the files specified in the given option container */
61
void load(OptionsCont& oc);
62
63
64
private:
65
/** loads data from sumo-files */
66
//void loadSUMO(OptionsCont &oc);
67
68
/** loads data from XML-files */
69
bool loadXML(OptionsCont& oc);
70
71
72
private:
73
/// @brief The network builder to fill with loaded data
74
NBNetBuilder& myNetBuilder;
75
76
77
private:
78
/// @brief Invalidated copy constructor.
79
NILoader(const NILoader&);
80
81
/// @brief Invalidated assignment operator.
82
NILoader& operator=(const NILoader&);
83
84
85
};
86
87