gfactory
Loading...
Searching...
No Matches
FordFactory.h File Reference
#include "Car.h"
Include dependency graph for FordFactory.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Ford
 Example dynamically-loadable Car implementation. More...
 

Functions

CarCarFactory (const std::shared_ptr< GOptions > &g)
 Exported factory function for dynamic loading.
 

Function Documentation

◆ CarFactory()

Car * CarFactory ( const std::shared_ptr< GOptions > & g)

The base class Car::instantiate() resolves this symbol via dlsym and calls it.

Parameters
gOptions/configuration to pass into the derived constructor.
Returns
Newly allocated derived object as a base pointer. Ownership is transferred to the caller.

Definition at line 48 of file FordFactory.h.