| EventAnalysis
    1.3.1
    | 
Manager class for data providers. More...
#include <DataProviderManager.h>
| Public Member Functions | |
| bool | AddProvider (std::unique_ptr< DataProvider > provider) | 
| Add a data provider to the manager.  More... | |
| ProviderPtr | GetProvider (const std::string &name) | 
| Get a given provider.  More... | |
| std::vector< ProviderPtr > | GetProviders () const | 
| Get a list of providers.  More... | |
| bool | ConnectSource () | 
| Dispatches the call to ConnectSource to all the data providers.  More... | |
| bool | DisconnectSource () | 
| Dispatches the call to DisconnectSource to all the data providers.  More... | |
| bool | SetEvent (unsigned int event, std::vector< std::pair< ProviderPtr, std::vector< std::string >>> ¬ValidGlobalObjects) | 
| Set the current event for all the registered providers.  More... | |
| bool | IsEventAvailable (unsigned int event) | 
| Checks if the registered data provider can provide the given event.  More... | |
| bool | SetPass (unsigned int pass, unsigned int iter) | 
| Set the current pass and iteration for all the registered providers.  More... | |
| bool | SetDisabledProviders (const std::vector< std::string > &providerNames) | 
| Set the disabled providers.  More... | |
| Private Types | |
| typedef std::list< std::unique_ptr< DataProvider > > | ProvidersBook | 
| Private Attributes | |
| ProvidersBook | _providers | 
Manager class for data providers.
This class is a management interface for data providers. It owns the registered providers and can be used to fetch a provider and to set the current event and pass number to all the registered providers.
| 
 | private | 
| bool EA::DataProviderManager::AddProvider | ( | std::unique_ptr< DataProvider > | provider | ) | 
Add a data provider to the manager.
The given provider is added to the list of providers managed by the DataProviderManager no provider with the same name has already been added.
| provider | The provider to be added. | 
| bool EA::DataProviderManager::ConnectSource | ( | ) | 
Dispatches the call to ConnectSource to all the data providers.
| bool EA::DataProviderManager::DisconnectSource | ( | ) | 
Dispatches the call to DisconnectSource to all the data providers.
| ProviderPtr EA::DataProviderManager::GetProvider | ( | const std::string & | name | ) | 
Get a given provider.
| name | The name of the requested provider. | 
| std::vector< ProviderPtr > EA::DataProviderManager::GetProviders | ( | ) | const | 
Get a list of providers.
| bool EA::DataProviderManager::IsEventAvailable | ( | unsigned int | event | ) | 
Checks if the registered data provider can provide the given event.
| event | The number of the event. | 
| bool EA::DataProviderManager::SetDisabledProviders | ( | const std::vector< std::string > & | providerNames | ) | 
Set the disabled providers.
All the providers not included in the list of providers to be disabled will be enabled.
| providerNames | The list of providers to be disabled (others will be enabled). | 
| bool EA::DataProviderManager::SetEvent | ( | unsigned int | event, | 
| std::vector< std::pair< ProviderPtr, std::vector< std::string >>> & | notValidGlobalObjects | ||
| ) | 
Set the current event for all the registered providers.
| event | The event number to be set | 
| notValidGlobalObjects | A list of pair, each pair contains a data provider ptr and a list of global objects which are not valid, the latter will be removed from data stores. | 
| bool EA::DataProviderManager::SetPass | ( | unsigned int | pass, | 
| unsigned int | iter | ||
| ) | 
Set the current pass and iteration for all the registered providers.
| pass | The pass number to be set | 
| iter | The iteration number for current pass to be set | 
| 
 | private | 
 1.8.13
 1.8.13