EventAnalysis  1.3.0
Public Member Functions | Private Attributes | List of all members
EA::DataProviderConfigurationTokensHandler Class Reference

#include <DataProviderConfigurationTokensHandler.h>

Inheritance diagram for EA::DataProviderConfigurationTokensHandler:
EA::ConfigurationTokensHandler

Public Member Functions

 DataProviderConfigurationTokensHandler (AnalysisManager &manager, const CommandLineParameters &clParams)
 Constructor. More...
 
bool HandleTokens (const std::vector< std::string > &tokens)
 Handles data provider configuration tokens. More...
 
- Public Member Functions inherited from EA::ConfigurationTokensHandler
 ConfigurationTokensHandler (AnalysisManager &manager, const CommandLineParameters &clParams)
 Constructor. More...
 
virtual ~ConfigurationTokensHandler ()
 Destructor. More...
 

Private Attributes

observer_ptr< DataProvider_provider
 

Additional Inherited Members

- Protected Member Functions inherited from EA::ConfigurationTokensHandler
bool SetParameter (const std::string &name, const std::string &value, Configurable &obj)
 Set a parameter of a given Configurable object. More...
 
- Protected Attributes inherited from EA::ConfigurationTokensHandler
AnalysisManageranManager
 
const CommandLineParametersclParameters
 

Constructor & Destructor Documentation

◆ DataProviderConfigurationTokensHandler()

EA::DataProviderConfigurationTokensHandler::DataProviderConfigurationTokensHandler ( AnalysisManager manager,
const CommandLineParameters clParams 
)
inline

Constructor.

Parameters
managerThe analysis manager to configure.

Member Function Documentation

◆ HandleTokens()

bool EA::DataProviderConfigurationTokensHandler::HandleTokens ( const std::vector< std::string > &  tokens)
virtual

Handles data provider configuration tokens.

Commands handled:

DataProvider <className> <providerName> [dataSource] - main command: create a data provider AttachToStore <storeName> <storeCategory> - sub-command: attach the data provider to data store storeCategory can be: event pass global Set <parameterName> <parameterValue> - sub-command: sets the data provider parameters

The data source string for a given data provider will be obtained also from command line parameters; if present, it will override the data provider string given in configuration file.

Parameters
tokensThe configuration tokens.
Returns
false if the given token sequence is not understood and cannot be handled.
Exceptions
std::logic_errorif AttachToStore command is given before DataProvider.
std::runtime_errorif any other error occurs during the handling.

Implements EA::ConfigurationTokensHandler.

Member Data Documentation

◆ _provider

observer_ptr<DataProvider> EA::DataProviderConfigurationTokensHandler::_provider
private

The documentation for this class was generated from the following files: