Introducting Dependency Injection
#2
(2015-11-05, 01:38)jfcarroll Wrote: Now there's a major interdependency problem between the command line parser, Application, g_advancedSettings, CSpecialProtocol, main and CLog that I'm trying to resolve. I need to set and get the location of the log file and the log level settings. There is an order-of-initialization problem I'm trying to resolve.

I'm going to move the command line parsing to a passive object. Right now it calls out to the various affected components (and is therefore "active") as the command line is parsed. I'm going to create a second class that parses the command line but simply retains the values. I will move the parsing of the values one at a time to this class so the two will exist until everything affected is moved over.

I started cleaning up the app parser for kodi server but didn't get any help on windows, I think the windows devs were swamped with other stuff Tongue

Anyways, perhaps there is something for you here.
https://github.com/topfs2/xbmc/tree/appparser
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply


Messages In This Thread
RE: Introducting Dependency Injection - by topfs2 - 2015-11-05, 10:38
Logout Mark Read Team Forum Stats Members Help
Introducting Dependency Injection0