File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ target_sources(scratchcpp
4949 include /scratchcpp/itimer.h
5050 include /scratchcpp/keyevent.h
5151 include /scratchcpp/iimageformat.h
52+ include /scratchcpp/iimageformatfactory.h
5253)
5354
5455add_library (zip SHARED
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: Apache-2.0
2+
3+ #pragma once
4+
5+ #include < memory>
6+
7+ #include " global.h"
8+
9+ namespace libscratchcpp
10+ {
11+
12+ class IImageFormat ;
13+
14+ /* ! \brief The IImageFormatFactory class is an interface which is used to instantiate image formats. */
15+ class LIBSCRATCHCPP_EXPORT IImageFormatFactory
16+ {
17+ public:
18+ virtual ~IImageFormatFactory () { }
19+
20+ /* ! Creates an instance of the image format. */
21+ virtual std::shared_ptr<IImageFormat> createInstance () const = 0;
22+ };
23+
24+ } // namespace libscratchcpp
You can’t perform that action at this time.
0 commit comments