LCOV - code coverage report
Current view: top level - generated/include/ad/rss/state - UnstructuredSceneResponse.hpp (source / functions) Hit Total Coverage
Test: ad_rss Lines: 2 2 100.0 %
Date: 2024-05-08 22:46:37 Functions: 1 1 100.0 %
Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /*
       2                 :            :  * ----------------- BEGIN LICENSE BLOCK ---------------------------------
       3                 :            :  *
       4                 :            :  * Copyright (C) 2018-2020 Intel Corporation
       5                 :            :  *
       6                 :            :  * SPDX-License-Identifier: LGPL-2.1-only
       7                 :            :  *
       8                 :            :  * ----------------- END LICENSE BLOCK -----------------------------------
       9                 :            :  */
      10                 :            : 
      11                 :            : /**
      12                 :            :  * Generated file
      13                 :            :  * @file
      14                 :            :  *
      15                 :            :  * Generator Version : 11.0.0-1997
      16                 :            :  */
      17                 :            : 
      18                 :            : #pragma once
      19                 :            : 
      20                 :            : #include <iostream>
      21                 :            : #include <memory>
      22                 :            : #include <string>
      23                 :            : /*!
      24                 :            :  * @brief namespace ad
      25                 :            :  */
      26                 :            : namespace ad {
      27                 :            : /*!
      28                 :            :  * @brief namespace rss
      29                 :            :  */
      30                 :            : namespace rss {
      31                 :            : /*!
      32                 :            :  * @brief namespace state
      33                 :            :  */
      34                 :            : namespace state {
      35                 :            : 
      36                 :            : /*!
      37                 :            :  * \brief DataType UnstructuredSceneResponse
      38                 :            :  */
      39                 :            : enum class UnstructuredSceneResponse : int32_t
      40                 :            : {
      41                 :            :   /*!
      42                 :            :    * No response.
      43                 :            :    */
      44                 :            :   None = 0,
      45                 :            : 
      46                 :            :   /*!
      47                 :            :    * The object is allowed to continue forward.
      48                 :            :    */
      49                 :            :   ContinueForward = 1,
      50                 :            : 
      51                 :            :   /*!
      52                 :            :    * The object is allowed to drive away within the calculated heading range.
      53                 :            :    */
      54                 :            :   DriveAway = 2,
      55                 :            : 
      56                 :            :   /*!
      57                 :            :    * The vehicle has to brake.
      58                 :            :    */
      59                 :            :   Brake = 3
      60                 :            : };
      61                 :            : 
      62                 :            : } // namespace state
      63                 :            : } // namespace rss
      64                 :            : } // namespace ad
      65                 :            : /*!
      66                 :            :  * \brief Conversion of ::ad::rss::state::UnstructuredSceneResponse to std::string helper.
      67                 :            :  */
      68                 :            : std::string toString(::ad::rss::state::UnstructuredSceneResponse const e);
      69                 :            : 
      70                 :            : /*!
      71                 :            :  * \brief Conversion from std::string to enum type T helper.
      72                 :            :  *
      73                 :            :  * \param [in] str - a fully qualified string name of enum class type
      74                 :            :  *
      75                 :            :  * \return T enum value
      76                 :            :  *
      77                 :            :  * \throws std::out_of_range exception if the given string does not match any enum type
      78                 :            :  *
      79                 :            :  * Example usage:
      80                 :            :  * \code
      81                 :            :  *   auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
      82                 :            :  *   assert(value == SomeEnumType::eValue);
      83                 :            :  *   // Or:
      84                 :            :  *   auto value = fromString<SomeEnumType>("eValue");
      85                 :            :  *   assert(value == SomeEnumType::eValue);
      86                 :            :  * \endcode
      87                 :            :  */
      88                 :            : template <typename EnumType> EnumType fromString(std::string const &str);
      89                 :            : 
      90                 :            : /*!
      91                 :            :  * \brief Conversion from std::string to enum type T helper.
      92                 :            :  *
      93                 :            :  * \param [in] str - a fully qualified string name of enum class type
      94                 :            :  *
      95                 :            :  * \return T enum value
      96                 :            :  *
      97                 :            :  * \throws std::out_of_range exception if the given string does not match any enum type
      98                 :            :  *
      99                 :            :  * Example usage:
     100                 :            :  * \code
     101                 :            :  *   auto value = fromString<SomeEnumType>("SomeEnumType::eValue");
     102                 :            :  *   assert(value == SomeEnumType::eValue);
     103                 :            :  *   // Or:
     104                 :            :  *   auto value = fromString<SomeEnumType>("eValue");
     105                 :            :  *   assert(value == SomeEnumType::eValue);
     106                 :            :  * \endcode
     107                 :            :  */
     108                 :            : template <>::ad::rss::state::UnstructuredSceneResponse fromString(std::string const &str);
     109                 :            : 
     110                 :            : /*!
     111                 :            :  * \brief protect the definition of functions from duplicates by typedef usage within other data types
     112                 :            :  */
     113                 :            : #ifndef GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERESPONSE
     114                 :            : #define GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERESPONSE
     115                 :            : /*!
     116                 :            :  * @brief namespace ad
     117                 :            :  */
     118                 :            : namespace ad {
     119                 :            : /*!
     120                 :            :  * @brief namespace rss
     121                 :            :  */
     122                 :            : namespace rss {
     123                 :            : /*!
     124                 :            :  * @brief namespace state
     125                 :            :  */
     126                 :            : namespace state {
     127                 :            : 
     128                 :            : /**
     129                 :            :  * \brief standard ostream operator
     130                 :            :  *
     131                 :            :  * \param[in] os The output stream to write to
     132                 :            :  * \param[in] value UnstructuredSceneResponse value
     133                 :            :  *
     134                 :            :  * \returns The stream object.
     135                 :            :  *
     136                 :            :  */
     137                 :    1015870 : inline std::ostream &operator<<(std::ostream &os, UnstructuredSceneResponse const &value)
     138                 :            : {
     139         [ +  - ]:    1015870 :   return os << toString(value);
     140                 :            : }
     141                 :            : 
     142                 :            : } // namespace state
     143                 :            : } // namespace rss
     144                 :            : } // namespace ad
     145                 :            : 
     146                 :            : namespace std {
     147                 :            : /*!
     148                 :            :  * \brief overload of the std::to_string for UnstructuredSceneResponse
     149                 :            :  */
     150                 :            : inline std::string to_string(::ad::rss::state::UnstructuredSceneResponse const &value)
     151                 :            : {
     152                 :            :   return ::toString(value);
     153                 :            : }
     154                 :            : } // namespace std
     155                 :            : #endif // GEN_GUARD_AD_RSS_STATE_UNSTRUCTUREDSCENERESPONSE

Generated by: LCOV version 1.14