Eclipse SUMO - Simulation of Urban MObility
cpp/Helpers.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3 // Copyright (C) 2016-2024 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 #pragma once
24 #include <config.h>
25 
26 #include <string>
27 
28 
29 namespace PHEMlightdll {
30  class Helpers {
31  //--------------------------------------------------------------------------------------------------
32  // Members
33  //--------------------------------------------------------------------------------------------------
34  private:
35  std::string _vClass;
36  public:
37  const std::string& getvClass() const;
38  void setvClass(const std::string& value);
39  private:
40  std::string _eClass;
41  public:
42  const std::string& geteClass() const;
43  void seteClass(const std::string& value);
44  private:
45  std::string _tClass;
46  public:
47  const std::string& gettClass() const;
48  void settClass(const std::string& value);
49  private:
50  std::string _sClass;
51  public:
52  const std::string& getsClass() const;
53  void setsClass(const std::string& value);
54  private:
55  std::string _Class;
56  public:
57  const std::string& getgClass() const;
58  void setgClass(const std::string& value);
59  private:
60  std::string _ErrMsg;
61  public:
62  const std::string& getErrMsg() const;
63  void setErrMsg(const std::string& value);
64  private:
65  std::string _commentPrefix;
66  public:
67  const std::string& getCommentPrefix() const;
68  void setCommentPrefix(const std::string& value);
69  private:
70  std::string _PHEMDataV;
71  public:
72  const std::string& getPHEMDataV() const;
73  void setPHEMDataV(const std::string& value);
74 
75  //Get vehicle class
76  private:
77  bool getvclass(const std::string& VEH);
78 
79  //Get technologie Class
80  bool gettclass(const std::string& VEH);
81 
82  //Get size class
83  bool getsclass(const std::string& VEH);
84 
85  //Get euro class
86  bool geteclass(const std::string& VEH);
87 
88  //Set complete class string
89  public:
90  bool setclass(const std::string& VEH);
91 
92 
93  };
94 }
const std::string & getvClass() const
Definition: cpp/Helpers.cpp:31
const std::string & geteClass() const
Definition: cpp/Helpers.cpp:39
void setgClass(const std::string &value)
Definition: cpp/Helpers.cpp:67
bool geteclass(const std::string &VEH)
std::string _commentPrefix
Definition: cpp/Helpers.h:65
void setsClass(const std::string &value)
Definition: cpp/Helpers.cpp:59
const std::string & getErrMsg() const
Definition: cpp/Helpers.cpp:71
bool getsclass(const std::string &VEH)
bool getvclass(const std::string &VEH)
Definition: cpp/Helpers.cpp:95
const std::string & getCommentPrefix() const
Definition: cpp/Helpers.cpp:79
const std::string & getPHEMDataV() const
Definition: cpp/Helpers.cpp:87
void setErrMsg(const std::string &value)
Definition: cpp/Helpers.cpp:75
std::string _eClass
Definition: cpp/Helpers.h:40
std::string _sClass
Definition: cpp/Helpers.h:50
std::string _vClass
Definition: cpp/Helpers.h:35
void setPHEMDataV(const std::string &value)
Definition: cpp/Helpers.cpp:91
void setCommentPrefix(const std::string &value)
Definition: cpp/Helpers.cpp:83
bool gettclass(const std::string &VEH)
void seteClass(const std::string &value)
Definition: cpp/Helpers.cpp:43
const std::string & getgClass() const
Definition: cpp/Helpers.cpp:63
std::string _tClass
Definition: cpp/Helpers.h:45
void setvClass(const std::string &value)
Definition: cpp/Helpers.cpp:35
const std::string & gettClass() const
Definition: cpp/Helpers.cpp:47
const std::string & getsClass() const
Definition: cpp/Helpers.cpp:55
std::string _PHEMDataV
Definition: cpp/Helpers.h:70
void settClass(const std::string &value)
Definition: cpp/Helpers.cpp:51
bool setclass(const std::string &VEH)
std::string _Class
Definition: cpp/Helpers.h:55
std::string _ErrMsg
Definition: cpp/Helpers.h:60