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

Macros

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

Enumerations

enum  ad::map::landmark::LandmarkType : int32_t {
  ad::map::landmark::LandmarkType::INVALID = 0, ad::map::landmark::LandmarkType::UNKNOWN = 1, ad::map::landmark::LandmarkType::TRAFFIC_SIGN = 2, ad::map::landmark::LandmarkType::TRAFFIC_LIGHT = 3,
  ad::map::landmark::LandmarkType::POLE = 4, ad::map::landmark::LandmarkType::GUIDE_POST = 5, ad::map::landmark::LandmarkType::TREE = 6, ad::map::landmark::LandmarkType::STREET_LAMP = 7,
  ad::map::landmark::LandmarkType::POSTBOX = 8, ad::map::landmark::LandmarkType::MANHOLE = 9, ad::map::landmark::LandmarkType::POWERCABINET = 10, ad::map::landmark::LandmarkType::FIRE_HYDRANT = 11,
  ad::map::landmark::LandmarkType::BOLLARD = 12, ad::map::landmark::LandmarkType::OTHER = 13
}
 DataType LandmarkType. More...
 

Functions

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

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::landmark::LandmarkType 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);