demo/demo/src/car.hpp Source File

demo/demo/src/car.hpp Source File#

Demo: demo/demo/src/car.hpp Source File
Demo
car.hpp
1 // =====================================================================================
2 // C O P Y R I G H T
3 // -------------------------------------------------------------------------------------
4 // Copyright (c) 2022 by Robert Bosch GmbH. All rights reserved.
5 //
6 // Author(s):
7 // - Markus Braun, :em engineering methods AG (contracted by Robert Bosch GmbH)
8 // =====================================================================================
9 #ifndef DEMO__CAR__INCLUDED
10 #define DEMO__CAR__INCLUDED
11 
19 namespace doxysphinx {
20 
30 namespace rst {
31 
62 class Car : public TopSecretPrototype<StyleProps::ExtraordinaryAwesomeness, EngineProps::UltraFast>
63 {
64  public:
75  Car(Engine& engine, Color& color) {};
76 
78  void enter(Driver& driver);
79 
80  // enter for person
81  void enter(Person& person);
82 
84  void leave(Person& person);
85 
109  void accelerate(float target_speed_ms);
110 
112  void brake(float brake_force_nm);
113 }; // Car
114 
115 } // rst
116 } // doxysphinx
117 
118 #endif
A car.
Definition: car.hpp:63
void enter(Driver &driver)
enter for driver
void accelerate(float target_speed_ms)
void brake(float brake_force_nm)
brakes the car
Car(Engine &engine, Color &color)
Creates a new instance of the Car.
Definition: car.hpp:75
void leave(Person &person)
leave for person or driver
An engine.
Definition: engine.hpp:25
The namespace doxysphinx contains all demo code that we need for demonstration of doxysphinx.
Definition: block_rst.hpp:13