gfactory
Loading...
Searching...
No Matches
FordFactory.h
Go to the documentation of this file.
1#pragma once
2
3#include "Car.h"
4
5class Ford : public Car
6{
7public:
8 // inherit the base (const std::shared_ptr<GOptions>&) ctor
9 using Car::Car;
10
11 Ford(const std::shared_ptr<GOptions>&);
12
13 void go();
14 double fordVar[2]{};
15};
16
17extern "C" Car* CarFactory(const std::shared_ptr<GOptions>& g) {
18 return static_cast<Car*>(new Ford(g));
19}
Car * CarFactory(const std::shared_ptr< GOptions > &g)
Definition FordFactory.h:17
Definition Car.h:11
Car(const std::shared_ptr< GOptions > &g)
Definition Car.h:16
Ford(const std::shared_ptr< GOptions > &)
double fordVar[2]
Definition FordFactory.h:14
void go()
Definition FordFactory.cc:6