23 Ford(
const std::shared_ptr<GOptions>& gopts);
49 return static_cast<Car*
>(
new Ford(g));
Car * CarFactory(const std::shared_ptr< GOptions > &g)
Exported factory function for dynamic loading.
Example base class used to demonstrate dynamic factory loading.
Car(const std::shared_ptr< GOptions > &g)
Construct the base with a shared options/configuration instance.
Example dynamically-loadable Car implementation.
double fordVar[2]
Example plugin-specific state.
void go()
Example behavior for the Ford plugin.
Ford(const std::shared_ptr< GOptions > &gopts)
Construct and initialize example state.