nsbaci 1.0
Loading...
Searching...
No Matches
drawingServiceFactory.h
Go to the documentation of this file.
1
12
13#ifndef NSBACI_DRAWINGSERVICEFACTORY_H
14#define NSBACI_DRAWINGSERVICEFACTORY_H
15
16#include <memory>
17
18#include "drawingService.h"
19
24namespace nsbaci::factories {
25
26struct DefaultDrawingBackend {
27 explicit DefaultDrawingBackend() = default;
28};
29
30// tag used to generate a service with the default drawing backend
31constexpr inline DefaultDrawingBackend defaultDrawingBackend{};
32
37class DrawingServiceFactory {
38 private:
39 DrawingServiceFactory() = default;
40
41 public:
42 static std::unique_ptr<nsbaci::services::DrawingService> createService(
44 // static std::unique_ptr<nsbaci::services::DrawingService> createService(OtherBackendOrTest
45 // t);
46 ~DrawingServiceFactory() = default;
47};
48
49} // namespace nsbaci::factories
50
51#endif // NSBACI_DRAWINGSERVICEFACTORY_H
DrawingService class declaration for nsbaci.
Factories namespace for nsbaci.
Definition compilerServiceFactory.cpp:12
Definition drawingServiceFactory.h:26