Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
split gigantic generator.cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavblazek committed Nov 27, 2019
1 parent 1ccc0e5 commit 48c5a52
Show file tree
Hide file tree
Showing 7 changed files with 1,021 additions and 879 deletions.
2 changes: 1 addition & 1 deletion externals/vts-libs
2 changes: 2 additions & 0 deletions mapproxy/src/mapproxy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ set(mapproxy_SOURCES

generator.hpp
generator/generator.cpp
generator/generators.hpp generator/generators.cpp
generator/registry.hpp generator/registry.cpp
generator/factory.hpp
generator/metatile.hpp generator/metatile.cpp
generator/demregistry.hpp generator/demregistry.cpp
Expand Down
11 changes: 11 additions & 0 deletions mapproxy/src/mapproxy/generator/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ struct Generator::Factory {
* reference frame.
*/
virtual bool systemInstance() const { return false; }

/** Factory registry support
*/
typedef std::map<Resource::Generator, pointer> Registry;

static pointer findFactory(const Resource::Generator &type);

static void registerType(const Resource::Generator &type
, const pointer &factory);

static Registry &registry();
};

#endif // mapproxy_generator_factory_hpp_included_
Loading

0 comments on commit 48c5a52

Please sign in to comment.