Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Wheel.h
Go to the documentation of this file.
1 #pragma once
2 
8 namespace ODemo {
9 
13 class Wheel
14 {
15 public:
17  Wheel();
18 
20  Wheel(const Wheel& ori);
21 
23  Wheel(Wheel&& ori) noexcept;
24 
26  Wheel& operator=(const Wheel& rhs);
27 
29  Wheel& operator=(Wheel&& rhs) noexcept;
30 
32  ~Wheel();
33 
35  void start();
36 
38  void stop();
39 
41  bool is_rotating() const;
42 
43 private:
44  double m_speed;
45  bool m_rotating;
46 };
47 
48 } // namespace ODemo
A really simple class for Wheel.
Definition: Wheel.h:13
bool m_rotating
Definition: Wheel.h:45
Wheel()
Default constructor.
Definition: Wheel.cpp:13
double m_speed
Definition: Wheel.h:44
Wheel & operator=(const Wheel &rhs)
Copy assignment operator.
Definition: Wheel.cpp:19
bool is_rotating() const
Indicate whether wheel is rotating or not.
Definition: Wheel.cpp:57
void start()
Start turning.
Definition: Wheel.cpp:41
void stop()
Stop turning.
Definition: Wheel.cpp:49
~Wheel()
destructor.
Definition: Wheel.cpp:39