So boost is still compiling, I've been going over all the tutorials and the doxygen bit. It seems QxFactoryX may be a way to implment and dependency injection approach I was considering. I am new to this and I am not sure if I am on the wrong track.
I have to make a dependency injection chain that is swapped out with a completely different chain every few seconds.
- Code: Select all
0001(0002,0003)
0003(0004,0005)
ID Class Parent Param#
0005 Thimbal 0003 2
0004 Needle 0003 1
0003 SewingKit 0001 2
0002 Soap 0001 1
0001 SuitCase root 0
I'm trying to create a setup where I could create 0001 and have it automatically create 0002-0005 as in the above example.
I would probably have an A/B buffer for each object graph so that the second can be built while the first is still active, and then destory the first when the second graph is in use.
Is this approach sensible? I need all of my objects and parameters stored in a database so that I can quickly access any data from any of the graphs. I was going to try and manually create a factory to do this using a factory pattern tutorial, but it looks like QxFactoryX is more or less already doing that.
When the boost build finishes compiling I'm going to test all of the examples to make sure everything is working. The tutorials really helped open the scope of what this can do.
Thanks,
Casey