SUMO - Simulation of Urban MObility
testlibsumo_main.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2018 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// Testing libsumo for C++
16
/****************************************************************************/
17
18
19
// ===========================================================================
20
// included modules
21
// ===========================================================================
22
#include <iostream>
23
#include <
libsumo/Simulation.h
>
24
#include <
utils/common/ToString.h
>
25
26
27
28
// ===========================================================================
29
// main function
30
// ===========================================================================
31
int
32
main
(
int
argc,
char
** argv) {
33
std::vector<std::string> options;
34
for
(
int
i = 1; i < argc; i++) {
35
options.push_back(argv[i]);
36
}
37
libsumo::Simulation::load
(options);
38
std::cout <<
"Simulation loaded\n"
;
39
}
40
41
42
/****************************************************************************/
Simulation.h
libsumo::Simulation::load
static void load(const std::vector< std::string > &args)
load a simulation with the given arguments
Definition:
Simulation.cpp:64
ToString.h
main
int main(int argc, char **argv)
Definition:
testlibsumo_main.cpp:32
src
traci_testclient
testlibsumo_main.cpp
Generated on Sat Nov 23 2019 06:08:23 for SUMO - Simulation of Urban MObility by
1.8.13