gfactory
Loading...
Searching...
No Matches
FordFactory.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Car.h
"
4
5
class
Ford
:
public
Car
6
{
7
public
:
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
17
extern
"C"
Car
*
CarFactory
(
const
std::shared_ptr<GOptions>& g) {
18
return
static_cast<
Car
*
>
(
new
Ford
(g));
19
}
Car.h
CarFactory
Car * CarFactory(const std::shared_ptr< GOptions > &g)
Definition
FordFactory.h:17
Car
Definition
Car.h:11
Car::Car
Car(const std::shared_ptr< GOptions > &g)
Definition
Car.h:16
Ford
Definition
FordFactory.h:6
Ford::Ford
Ford(const std::shared_ptr< GOptions > &)
Definition
FordFactory.cc:10
Ford::fordVar
double fordVar[2]
Definition
FordFactory.h:14
Ford::go
void go()
Definition
FordFactory.cc:6
examples
FordFactory.h
Generated by
1.10.0