ad_map_access
Namespaces | Macros | Enumerations | Functions
ContactType.hpp File Reference
#include <iostream>
#include <memory>
#include <string>
Include dependency graph for ContactType.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ad
 namespace ad
 
 ad::map
 namespace map
 
 ad::map::lane
 namespace lane
 

Macros

#define GEN_GUARD_AD_MAP_LANE_CONTACTTYPE
 protect the definition of functions from duplicates by typedef usage within other data types
 

Enumerations

enum  ad::map::lane::ContactType : int32_t {
  ad::map::lane::ContactType::INVALID = 0, ad::map::lane::ContactType::UNKNOWN = 1, ad::map::lane::ContactType::FREE = 2, ad::map::lane::ContactType::LANE_CHANGE = 3,
  ad::map::lane::ContactType::LANE_CONTINUATION = 4, ad::map::lane::ContactType::LANE_END = 5, ad::map::lane::ContactType::SINGLE_POINT = 6, ad::map::lane::ContactType::STOP = 7,
  ad::map::lane::ContactType::STOP_ALL = 8, ad::map::lane::ContactType::YIELD = 9, ad::map::lane::ContactType::GATE_BARRIER = 10, ad::map::lane::ContactType::GATE_TOLBOOTH = 11,
  ad::map::lane::ContactType::GATE_SPIKES = 12, ad::map::lane::ContactType::GATE_SPIKES_CONTRA = 13, ad::map::lane::ContactType::CURB_UP = 14, ad::map::lane::ContactType::CURB_DOWN = 15,
  ad::map::lane::ContactType::SPEED_BUMP = 16, ad::map::lane::ContactType::TRAFFIC_LIGHT = 17, ad::map::lane::ContactType::CROSSWALK = 18, ad::map::lane::ContactType::PRIO_TO_RIGHT = 19,
  ad::map::lane::ContactType::RIGHT_OF_WAY = 20, ad::map::lane::ContactType::PRIO_TO_RIGHT_AND_STRAIGHT = 21
}
 DataType ContactType. More...
 

Functions

std::string toString (::ad::map::lane::ContactType const e)
 Conversion of ad::map::lane::ContactType to std::string helper.
 
template<typename EnumType >
EnumType fromString (std::string const &str)
 Conversion from std::string to enum type T helper. More...
 
template<>
::ad::map::lane::ContactType fromString (std::string const &str)
 Conversion from std::string to enum type T helper. More...
 
std::ostream & ad::map::lane::operator<< (std::ostream &os, ContactType const &value)
 standard ostream operator More...
 
std::string std::to_string (::ad::map::lane::ContactType const &value)
 overload of the std::to_string for ContactType
 

Detailed Description

Generated file

Generator Version : 11.0.0-1997

Function Documentation

◆ fromString() [1/2]

template<typename EnumType >
EnumType fromString ( std::string const &  str)

Conversion from std::string to enum type T helper.

Parameters
[in]str- a fully qualified string name of enum class type
Returns
T enum value
Exceptions
std::out_of_rangeexception if the given string does not match any enum type

Example usage:

auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
assert(value == SomeEnumType::eValue);
// Or:
auto value = fromString<SomeEnumType>("eValue");
assert(value == SomeEnumType::eValue);

◆ fromString() [2/2]

template<>
::ad::map::lane::ContactType fromString ( std::string const &  str)

Conversion from std::string to enum type T helper.

Parameters
[in]str- a fully qualified string name of enum class type
Returns
T enum value
Exceptions
std::out_of_rangeexception if the given string does not match any enum type

Example usage:

auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
assert(value == SomeEnumType::eValue);
// Or:
auto value = fromString<SomeEnumType>("eValue");
assert(value == SomeEnumType::eValue);