Example base class used to demonstrate static factory registration.
More...
#include <ShapeFactory.h>
In the example program, concrete shapes are registered directly with GManager because the application has compile-time access to both base and derived types.
Definition at line 16 of file ShapeFactory.h.
◆ ~Shape()
◆ Shape()
| Shape::Shape |
( |
const std::shared_ptr< GOptions > & | g | ) |
|
|
inlineexplicit |
- Parameters
-
| g | Shared options object used to initialize logging via GBase. |
Definition at line 27 of file ShapeFactory.h.
◆ Area()
| virtual void Shape::Area |
( |
| ) |
|
|
pure virtual |
The example implementations print to stdout.
Implemented in Triangle, and Box.
The documentation for this class was generated from the following file: