Dependency concept for C ++

Is there a DI structure comparable to Google Guice? And what does Google use?

+62
c ++ dependency-injection
Dec 17 '10 at 9:49
source share
4 answers

There is nothing mature or standard like Guice in the C ++ world. However, some people have combined simplified implementations on their own. Here is a couple.

You are unlikely to be satisfied with any of them.

If you really wanted to make an effort to rally the world around the DI framework for C ++, perhaps the way for this is to make an offer for the Boost guys.

+28
Dec 17 '10 at 10:40
source share

I am the author of wallaroo . It is actively developing and has the following functions:

  • it is light but powerful
  • its interface supports both C ++ 11 and C ++ 98 with boost
  • safe type
  • he does not need custom preprocessors / code generators
  • you can load classes defined in shared libraries.
  • you can use DSL syntax to create an object and post or
  • you can get the creation and posting of objects by parsing one or more xml / json files.

Any comments, suggestions or requests are welcome.

+26
Aug 6 2018-12-12T00:
source share

There is a recent one that looks very interesting, called Hypodermic , I have not tested it, but it looks quite active

+21
Aug 02 2018-12-12T00:
source share

I am currently creating one of the named sauce , whose design (and name) is directly inspired by guice. I still find it alpha, but you may find it useful.

+10
Oct 21 2018-11-11T00:
source share



All Articles