SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OptionsParser.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Parses command line arguments
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef OptionsParser_h
23
#define OptionsParser_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
36
// ===========================================================================
37
// class declarations
38
// ===========================================================================
39
class
OptionsCont
;
40
41
42
// ===========================================================================
43
// class definitions
44
// ===========================================================================
56
class
OptionsParser
{
57
public
:
66
static
bool
parse
(
int
argc,
char
** argv);
67
68
private
:
77
static
int
check
(
const
char
* arg1,
const
char
* arg2,
bool
& ok);
78
79
87
static
bool
checkParameter
(
const
char
* arg1);
88
89
97
static
bool
isAbbreviation
(
const
char
* arg1);
98
99
105
static
std::string
convert
(
const
char
* arg);
106
107
113
static
std::string
convert
(
char
abbr);
114
115
125
static
bool
processNonBooleanSingleSwitch
(
OptionsCont
& oc,
const
char
* arg);
126
127
128
};
129
130
131
#endif
132
133
/****************************************************************************/
134
tmp
buildd
sumo-0.15.0~dfsg
src
utils
options
OptionsParser.h
Generated on Sun May 27 2012 14:52:09 for SUMO - Simulation of Urban MObility by
1.8.1