ad_map_access
Namespaces | Macros | Enumerations | Functions
RouteCreationMode.hpp File Reference
#include <iostream>
#include <memory>
#include <string>
Include dependency graph for RouteCreationMode.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::route
 namespace route
 

Macros

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

Enumerations

enum  ad::map::route::RouteCreationMode : int32_t { ad::map::route::RouteCreationMode::Undefined = 0, ad::map::route::RouteCreationMode::SameDrivingDirection = 1, ad::map::route::RouteCreationMode::AllRoutableLanes = 2, ad::map::route::RouteCreationMode::AllNeighborLanes = 3 }
 DataType RouteCreationMode. More...
 

Functions

std::string toString (::ad::map::route::RouteCreationMode const e)
 Conversion of ad::map::route::RouteCreationMode 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::route::RouteCreationMode fromString (std::string const &str)
 Conversion from std::string to enum type T helper. More...
 
std::ostream & ad::map::route::operator<< (std::ostream &os, RouteCreationMode const &value)
 standard ostream operator More...
 
std::string std::to_string (::ad::map::route::RouteCreationMode const &value)
 overload of the std::to_string for RouteCreationMode
 

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::route::RouteCreationMode 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);