gfactory
Loading...
Searching...
No Matches
FordFactory.cc
Go to the documentation of this file.
1#include "FordFactory.h"
2
3#include <iostream>
4using namespace std;
5
6// See header for API docs.
7
8void Ford::go() {
9 cout << " Factory car ford fordVar[1] " << fordVar[1] << std::endl;
10}
11
12Ford::Ford(const std::shared_ptr<GOptions>& gopts) : Car(gopts) {
13 cout << " Instantiating Ford" << endl;
14
15 // Example initialization of plugin-specific state.
16 fordVar[0] = 100;
17 fordVar[1] = 200;
18}
Example base class used to demonstrate dynamic factory loading.
Definition Car.h:22
double fordVar[2]
Example plugin-specific state.
Definition FordFactory.h:37
void go()
Example behavior for the Ford plugin.
Definition FordFactory.cc:8
Ford(const std::shared_ptr< GOptions > &gopts)
Construct and initialize example state.