Debugger: Refactor SettingsManager.
commit5c8ba745e5d6c3625db91d0cefa4783dcd7c134f
authorRene Gollent <rene@gollent.com>
Thu, 26 May 2016 03:16:59 +0000 (25 23:16 -0400)
committerRene Gollent <rene@gollent.com>
Sat, 4 Jun 2016 17:18:35 +0000 (4 13:18 -0400)
treee62153494df76b9924904685a6913479453275fd
parent0957c8215e22e1b4392b0f61a39caae09929e47e
Debugger: Refactor SettingsManager.

- SettingsManager is now a pure virtual interface. The debugger core provides
  a no-op implementation of it which is used by default if no explicit manager
  is provided by the client requesting a new TeamDebugger. This allows consumers
  of the debugger core that have no need for settings persistence such as the
  report generator to not have to care about that particular detail at all.
- Add subclass DebuggerSettingsManager which is essentially the previous
  existing implementation. This one will go with the application portion
  of the Debugger once the separation of app and lib has been completed.
  Adjust callers accordingly.
src/apps/debugger/Debugger.cpp
src/apps/debugger/Jamfile
src/apps/debugger/controllers/TeamDebugger.cpp
src/apps/debugger/settings/DebuggerSettingsManager.cpp [copied from src/apps/debugger/settings/SettingsManager.cpp with 85% similarity]
src/apps/debugger/settings/DebuggerSettingsManager.h [copied from src/apps/debugger/settings/SettingsManager.h with 61% similarity]
src/apps/debugger/settings/NoOpSettingsManager.cpp [new file with mode: 0644]
src/apps/debugger/settings/NoOpSettingsManager.h [new file with mode: 0644]
src/apps/debugger/settings/SettingsManager.cpp
src/apps/debugger/settings/SettingsManager.h