EMANE  1.0.1
EMANE::Application::EventGeneratorBuilder Class Reference

Provides methods for constructing event generators and a manager to contain and control them as a group. More...

#include <eventgeneratorbuilder.h>

Public Member Functions

 EventGeneratorBuilder ()
 
 ~EventGeneratorBuilder ()
 
std::unique_ptr< EventGeneratorManagerbuildEventGeneratorManager (const uuid_t &uuid, EventGenerators &generators, const ConfigurationUpdateRequest &request)
 
std::unique_ptr< EventGeneratorbuildEventGenerator (const std::string &sLibraryFile, const ConfigurationUpdateRequest &request, bool bSkipConfigure=false)
 

Detailed Description

Provides methods for constructing event generators and a manager to contain and control them as a group.

Definition at line 56 of file eventgeneratorbuilder.h.

Constructor & Destructor Documentation

◆ EventGeneratorBuilder()

EMANE::Application::EventGeneratorBuilder::EventGeneratorBuilder ( )

Creates an EventGeneratorBuilder instance

Definition at line 47 of file eventgeneratorbuilder.cc.

◆ ~EventGeneratorBuilder()

EMANE::Application::EventGeneratorBuilder::~EventGeneratorBuilder ( )

Destroys an instance

Definition at line 49 of file eventgeneratorbuilder.cc.

Member Function Documentation

◆ buildEventGenerator()

std::unique_ptr< EMANE::EventGenerator > EMANE::Application::EventGeneratorBuilder::buildEventGenerator ( const std::string &  sLibraryFile,
const ConfigurationUpdateRequest request,
bool  bSkipConfigure = false 
)

Builds an EventGenerator

Parameters
sLibraryFileName of the dll containing the generator
requestconfiguration update
bSkipConfigureFlag indicating whether to skip calling Component::configure
Returns
Unique pointer an initialized and configure EventGenerator
Exceptions
Utils::FactoryExceptionwhen a DLL load error occurs.
InitializeExceptionwhen an error occurs during initialization.
ConfigureExceptionwhen an error occurs during configure.

Definition at line 83 of file eventgeneratorbuilder.cc.

◆ buildEventGeneratorManager()

std::unique_ptr< EMANE::Application::EventGeneratorManager > EMANE::Application::EventGeneratorBuilder::buildEventGeneratorManager ( const uuid_t &  uuid,
EventGenerators generators,
const ConfigurationUpdateRequest request 
)

Builds an EventGeneratorManager

Parameters
uuidInstance UUID
generatorsthe generators to manage
requestconfiguration update
Returns
Unique pointer to an initialized and configured EventGeneratorManager
Exceptions
InitializeExceptionwhen an error occurs during initialization.
BuildExceptionwhen an error occurs building an NEM from the specified layers.
ConfigureExceptionwhen an error occurs during configure.

Definition at line 52 of file eventgeneratorbuilder.cc.


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