fruit

Dependency injection framework for C++ applications

brewmacoslinux
Try with needOr install directly
Source

About

Dependency injection framework for C++

Commands

fruit

Examples

Include Fruit headers in a C++ project for dependency injection setup$ g++ -I/usr/local/include myapp.cpp -o myapp
Create a component with bound dependencies using Fruit$ cat > component.cpp << 'EOF' #include "fruit/fruit.h" using namespace fruit; Component<MyService> getComponent() { return createComponent(); } EOF
Link against Fruit library when compiling C++ code$ g++ -L/usr/local/lib myapp.cpp -o myapp -lfruit