#include <ConfigUpdaterManager.h>
Public Member Functions | |
void | update (const SctData::TestResult &t) const |
Convenience method calls getUpdater then update on the returned ConfigUpdater. | |
ConfigUpdater & | getUpdater (const string &className) const |
Get the ConfigUpdater for a given TestResult throws InvalidArgumentError if a ConfigUpdater can't be found. | |
bool | setUpdater (const string &testName, shared_ptr< ConfigUpdater > updater) |
Sets the ConfigUpdater for a Test name. | |
Static Public Member Functions | |
ConfigUpdaterManager & | instance () |
Get the instance of the ConfigUpdaterManager nothrow. | |
Private Types | |
typedef map< string, shared_ptr< ConfigUpdater > > | ConfigUpdaterMap |
Map between strings and ConfigUpdaters. | |
Private Member Functions | |
ConfigUpdaterManager () | |
Only we can make them - this is a singleton. | |
Private Attributes | |
ConfigUpdaterMap | updaterMap |
And our instance of it. |
Definition at line 27 of file ConfigUpdaterManager.h.
|
Map between strings and ConfigUpdaters.
Definition at line 60 of file ConfigUpdaterManager.h. |
|
Only we can make them - this is a singleton.
Definition at line 11 of file ConfigUpdaterManager.cpp. |
|
Get the ConfigUpdater for a given TestResult throws InvalidArgumentError if a ConfigUpdater can't be found.
Definition at line 23 of file ConfigUpdaterManager.cpp. References updaterMap. Referenced by update(). |
|
Get the instance of the ConfigUpdaterManager nothrow.
Definition at line 14 of file ConfigUpdaterManager.cpp. |
|
Sets the ConfigUpdater for a Test name. If there is already a ConfigUpdater for the given name, then the map is not updated nothrow
Definition at line 37 of file ConfigUpdaterManager.cpp. References testName, and updaterMap. |
|
Convenience method calls getUpdater then update on the returned ConfigUpdater. throws InvalidArgumentError if a ConfigUpdater can't be found Definition at line 19 of file ConfigUpdaterManager.cpp. References Sct::Streamable::getClassName(), getUpdater(), and SctCalibrationController::ConfigUpdater::update(). |
|
And our instance of it.
Definition at line 61 of file ConfigUpdaterManager.h. Referenced by getUpdater(), and setUpdater(). |