FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Types | Public Member Functions | Protected Member Functions | List of all members
frib::analysis::CMPIParametersToParametersWorker Class Referenceabstract
Inheritance diagram for frib::analysis::CMPIParametersToParametersWorker:
Inheritance graph
[legend]

Public Types

typedef std::pair< std::string, double > VariableInfo
 

Public Member Functions

 CMPIParametersToParametersWorker (int argc, char **argv, AbstractApplication *pApp)
 
virtual ~CMPIParametersToParametersWorker ()
 
virtual void operator() ()
 
virtual void process ()=0
 

Protected Member Functions

VariableInfo * getVariable (const char *pVarName)
 
void loadVariable (const char *pVarName)
 
std::vector< std::string > getVariableNames ()
 

Constructor & Destructor Documentation

◆ CMPIParametersToParametersWorker()

frib::analysis::CMPIParametersToParametersWorker::CMPIParametersToParametersWorker ( int  argc,
char **  argv,
AbstractApplication pApp 
)

constructor

Parameters
argc,argv- command line parameters after MPI_Init's strip.
pApp- pointer to the application object.

◆ ~CMPIParametersToParametersWorker()

frib::analysis::CMPIParametersToParametersWorker::~CMPIParametersToParametersWorker ( )
virtual

destructor - The tree parameters in the tree map were dynamically created by the receipt of the parameter definition record so They must be deleted.

Member Function Documentation

◆ getVariable()

CMPIParametersToParametersWorker::VariableInfo * frib::analysis::CMPIParametersToParametersWorker::getVariable ( const char *  pVarName)
protected

getVariable Return the information block that describes a variable received from the dealer.

Parameters
pVarName- name of the variable we want.
Returns
CMPIParametersToParametersWorker::VariableInfo*
Return values
nullptr- no matching variable definition.

◆ getVariableNames()

std::vector< std::string > frib::analysis::CMPIParametersToParametersWorker::getVariableNames ( )
protected

getVariableNames Return a vector of variable names received from the dealer.

Returns
std::vector<std::string>

◆ loadVariable()

void frib::analysis::CMPIParametersToParametersWorker::loadVariable ( const char *  pVarName)
protected

loadVariable Given a variable loads its information into the current set of tree variables.

Parameters
pVarName- name of the variable.
Exceptions
std::invalid_argument- if there's no matching variable.
Note
If there's no matching locally defined variable, we will create a new one but this new variable will not be known to the outputter.

◆ operator()()

void frib::analysis::CMPIParametersToParametersWorker::operator() ( )
virtual

operator() Entry point for the worker. The top level logic is simple: Receive the parameter definitions - those are first. Receive the variable definitions - those must be second. Recieve/process all of the events:


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