A convenient and efficient implementation of dependency injection, consisting of IoC-container and macros for ease of use. It also contains a minimal template for organizing modules.
Requires C++17 and higher.
Used in at least two private commercial projects and one open source.
To use modularity
within your software project include the modularity
source into your project
See and include modularity/modularity.cmake
in the cmake project (see example/CMakeLists.txt)
Recommended add own aliases to use modularity
, see example/modularity
- Added Inject class (replacing a macro)
- Added internal interfaces support
- Ported from Qt implementation
- Added INJECT macros