7bitdi/3.3.0

a simple C++ dependency injection library.
Recipe info
2024-05-12

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
7bitdi/3.3.0

Using 7bitdi

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
7bitdi/3.3.0
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("7bitdi/3.3.0")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): 7bitDI
  • CMake target name(s): 7bitDI::7bitDI
  • pkg-config file name(s): 7bitdi.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(7bitDI REQUIRED)
# ...
target_link_libraries(YOUR_TARGET 7bitDI::7bitDI)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the 7bitdi homepage listed above:

#include "SevenBit/DI.hpp"
#include "SevenBit/DI/CmakeDef.hpp"
#include "SevenBit/DI/CmakeDef.hpp.input"
#include "SevenBit/DI/Details/Containers/Impl/ServiceDescriptorList.hpp"
#include "SevenBit/DI/Details/Containers/Impl/ServiceDescriptorsMap.hpp"
#include "SevenBit/DI/Details/Containers/Impl/ServiceInstancesMap.hpp"
#include "SevenBit/DI/Details/Containers/ServiceDescriptorList.hpp"
#include "SevenBit/DI/Details/Containers/ServiceDescriptorsMap.hpp"
#include "SevenBit/DI/Details/Containers/ServiceInstanceList.hpp"
#include "SevenBit/DI/Details/Containers/ServiceInstancesMap.hpp"
#include "SevenBit/DI/Details/Core/IServiceInstanceProviderRoot.hpp"
#include "SevenBit/DI/Details/Core/Impl/ServiceAliasesCreator.hpp"
#include "SevenBit/DI/Details/Core/Impl/ServiceInstanceProvider.hpp"
#include "SevenBit/DI/Details/Core/Impl/ServiceInstanceProviderRoot.hpp"
#include "SevenBit/DI/Details/Core/Impl/ServiceInstancesCreator.hpp"
#include "SevenBit/DI/Details/Core/ServiceAliasesCreator.hpp"
#include "SevenBit/DI/Details/Core/ServiceInstanceProvider.hpp"
#include "SevenBit/DI/Details/Core/ServiceInstanceProviderRoot.hpp"
#include "SevenBit/DI/Details/Core/ServiceInstancesCreator.hpp"
#include "SevenBit/DI/Details/Factories/ExternalServiceFactory.hpp"
#include "SevenBit/DI/Details/Factories/ServiceFactory.hpp"
#include "SevenBit/DI/Details/Factories/ServiceFcnFactory.hpp"
#include "SevenBit/DI/Details/Helpers/CircularDependencyGuard.hpp"
#include "SevenBit/DI/Details/Helpers/CtorInjector.hpp"
#include "SevenBit/DI/Details/Helpers/FunctorInjector.hpp"
#include "SevenBit/DI/Details/Helpers/Impl/CircularDependencyGuard.hpp"
#include "SevenBit/DI/Details/Helpers/Impl/ScopedGuard.hpp"
#include "SevenBit/DI/Details/Helpers/ScopedGuard.hpp"
#include "SevenBit/DI/Details/Helpers/ServiceCtorArgExtractor.hpp"
#include "SevenBit/DI/Details/Helpers/ServiceGetter.hpp"
#include "SevenBit/DI/Details/Models/ServiceId.hpp"
#include "SevenBit/DI/Details/Services/AliasService.hpp"
#include "SevenBit/DI/Details/Services/ExternalService.hpp"
#include "SevenBit/DI/Details/Services/InPlaceService.hpp"
#include "SevenBit/DI/Details/Services/UniquePtrService.hpp"
#include "SevenBit/DI/Details/Utils/Assert.hpp"
#include "SevenBit/DI/Details/Utils/Cast.hpp"
#include "SevenBit/DI/Details/Utils/Check.hpp"
#include "SevenBit/DI/Details/Utils/Container.hpp"
#include "SevenBit/DI/Details/Utils/CtorParamsNumber.hpp"
#include "SevenBit/DI/Details/Utils/Impl/RequireDescriptor.hpp"
#include "SevenBit/DI/Details/Utils/Impl/RequireInstance.hpp"
#include "SevenBit/DI/Details/Utils/Meta.hpp"
#include "SevenBit/DI/Details/Utils/Require.hpp"
#include "SevenBit/DI/Details/Utils/RequireDescriptor.hpp"
#include "SevenBit/DI/Details/Utils/RequireInstance.hpp"
#include "SevenBit/DI/Exceptions.hpp"
#include "SevenBit/DI/Export.hpp"
#include "SevenBit/DI/IServiceFactory.hpp"
#include "SevenBit/DI/IServiceInstance.hpp"
#include "SevenBit/DI/IServiceInstanceProvider.hpp"
#include "SevenBit/DI/Impl/Exceptions.hpp"
#include "SevenBit/DI/Impl/ServiceCollection.hpp"
#include "SevenBit/DI/LibraryConfig.hpp"
#include "SevenBit/DI/OneOrList.hpp"
#include "SevenBit/DI/ServiceCollection.hpp"
#include "SevenBit/DI/ServiceDescriber.hpp"
#include "SevenBit/DI/ServiceDescriptor.hpp"
#include "SevenBit/DI/ServiceInstance.hpp"
#include "SevenBit/DI/ServiceLifeTime.hpp"
#include "SevenBit/DI/ServiceLifeTimes.hpp"
#include "SevenBit/DI/ServiceProvider.hpp"
#include "SevenBit/DI/ServiceProviderOptions.hpp"
#include "SevenBit/DI/TypeId.hpp"
#include "SevenBit/DI/Utils/GlobalServices.hpp"
#include "SevenBit/DI/Utils/Injected.hpp"
#include "SevenBit/DI/Utils/Register.hpp"
#include "SevenBit/DI/Utils/ServiceExtractor.hpp"