Eclipse SUMO - Simulation of Urban MObility
Helpers.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2016-2022 German Aerospace Center (DLR) and others.
4 // PHEMlight module
5 // Copyright 2016 Technische Universitaet Graz, https://www.tugraz.at/
6 // This program and the accompanying materials are made available under the
7 // terms of the Eclipse Public License 2.0 which is available at
8 // https://www.eclipse.org/legal/epl-2.0/
9 // This Source Code may also be made available under the following Secondary
10 // Licenses when the conditions for such availability set forth in the Eclipse
11 // Public License 2.0 are satisfied: GNU General Public License, version 2
12 // or later which is available at
13 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
14 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
15 /****************************************************************************/
21 //
22 /****************************************************************************/
23 
24 
25 #ifndef PHEMlightHELPERS
26 #define PHEMlightHELPERS
27 
28 #include <string>
29 
30 
31 namespace PHEMlightdll {
32  class Helpers {
33  //--------------------------------------------------------------------------------------------------
34  // Members
35  //--------------------------------------------------------------------------------------------------
36  private:
37  std::string _vClass;
38  public:
39  const std::string& getvClass() const;
40  void setvClass(const std::string& value);
41  private:
42  std::string _eClass;
43  public:
44  const std::string& geteClass() const;
45  void seteClass(const std::string& value);
46  private:
47  std::string _tClass;
48  public:
49  const std::string& gettClass() const;
50  void settClass(const std::string& value);
51  private:
52  std::string _sClass;
53  public:
54  const std::string& getsClass() const;
55  void setsClass(const std::string& value);
56  private:
57  std::string _Class;
58  public:
59  const std::string& getgClass() const;
60  void setgClass(const std::string& value);
61  private:
62  std::string _ErrMsg;
63  public:
64  const std::string& getErrMsg() const;
65  void setErrMsg(const std::string& value);
66  private:
67  std::string _commentPrefix;
68  public:
69  const std::string& getCommentPrefix() const;
70  void setCommentPrefix(const std::string& value);
71  private:
72  std::string _PHEMDataV;
73  public:
74  const std::string& getPHEMDataV() const;
75  void setPHEMDataV(const std::string& value);
76 
77  //Get vehicle class
78  private:
79  bool getvclass(const std::string& VEH);
80 
81  //Get technologie Class
82  bool gettclass(const std::string& VEH);
83 
84  //Get size class
85  bool getsclass(const std::string& VEH);
86 
87  //Get euro class
88  bool geteclass(const std::string& VEH);
89 
90  //Set complete class string
91  public:
92  bool setclass(const std::string& VEH);
93 
94 
95  };
96 }
97 
98 
99 #endif //#ifndef PHEMlightHELPERS
const std::string & getvClass() const
Definition: Helpers.cpp:31
const std::string & geteClass() const
Definition: Helpers.cpp:39
void setgClass(const std::string &value)
Definition: Helpers.cpp:67
bool geteclass(const std::string &VEH)
Definition: Helpers.cpp:217
void setsClass(const std::string &value)
Definition: Helpers.cpp:59
const std::string & getErrMsg() const
Definition: Helpers.cpp:71
bool getsclass(const std::string &VEH)
Definition: Helpers.cpp:177
std::string _ErrMsg
Definition: Helpers.h:62
bool getvclass(const std::string &VEH)
Definition: Helpers.cpp:95
const std::string & getCommentPrefix() const
Definition: Helpers.cpp:79
const std::string & getPHEMDataV() const
Definition: Helpers.cpp:87
void setErrMsg(const std::string &value)
Definition: Helpers.cpp:75
std::string _sClass
Definition: Helpers.h:52
void setPHEMDataV(const std::string &value)
Definition: Helpers.cpp:91
void setCommentPrefix(const std::string &value)
Definition: Helpers.cpp:83
bool gettclass(const std::string &VEH)
Definition: Helpers.cpp:142
void seteClass(const std::string &value)
Definition: Helpers.cpp:43
const std::string & getgClass() const
Definition: Helpers.cpp:63
std::string _eClass
Definition: Helpers.h:42
std::string _vClass
Definition: Helpers.h:37
std::string _tClass
Definition: Helpers.h:47
void setvClass(const std::string &value)
Definition: Helpers.cpp:35
const std::string & gettClass() const
Definition: Helpers.cpp:47
std::string _Class
Definition: Helpers.h:57
const std::string & getsClass() const
Definition: Helpers.cpp:55
std::string _PHEMDataV
Definition: Helpers.h:72
void settClass(const std::string &value)
Definition: Helpers.cpp:51
bool setclass(const std::string &VEH)
Definition: Helpers.cpp:241
std::string _commentPrefix
Definition: Helpers.h:67