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

Go to the source code of this file.

Data Structures

class  Tesla
 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)

This must match the lookup performed by Car::instantiate().

Parameters
gOptions/configuration to pass into the derived constructor.
Returns
Newly allocated Tesla instance as a Car*. Ownership is transferred to the caller.

Definition at line 50 of file TeslaFactory.h.