Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
RoadVehicle.cpp
Go to the documentation of this file.
1 
8 #include "tracer/tracer.h"
9 
10 namespace ODemo {
11 
12 using namespace std;
13 
15 
17 
19 
21 {
23  if (this != &rhs) {
25  }
26  return *this;
27 }
28 
30 {
32  if (this != &rhs) {
34  }
35  return *this;
36 }
37 
39 
40 void RoadVehicle::info() const
41 {
43  const string s{"I'm a generic Road vehicle"};
45 }
46 
47 void RoadVehicle::move(double, vector<double>) { COMP_MISC_MEMBER_TRACER; }
48 
49 } // namespace ODemo
LandVehicle & operator=(const LandVehicle &rhs)
Copy assignment.
Definition: LandVehicle.cpp:20
Comprehensive include file for all tracer classes.
A LandVehicle drives on land.
Definition: LandVehicle.h:14
void move(double speed, std::vector< double > direction) override
Motion of the vehicle.
Definition: RoadVehicle.cpp:47
RoadVehicle()
Default constructor.
Definition: RoadVehicle.cpp:14
A RoadVehicle is any kind of vehicle that moves on the road.
Definition: RoadVehicle.h:16
void info() const override
Return identification info.
Definition: RoadVehicle.cpp:40
~RoadVehicle() override
Destructor.
Definition: RoadVehicle.cpp:38
#define COMP_MISC_MEMBER_TRACER
Macro for tracking member scope.
Definition: MemberTracer.h:21
#define COMP_MISC_LOG_TRACER(MSG)
Macro for inserting log message into tracker output at current severity level.
Definition: TracerOutput.h:17
Header for the RoadVehicle class.
RoadVehicle & operator=(const RoadVehicle &rhs)
Copy assignment operator.
Definition: RoadVehicle.cpp:20