FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | Protected Member Functions | List of all members
frib::analysis::CMPIParameterOutput Class Reference

#include <MPIParameterOutput.h>

Public Member Functions

 CMPIParameterOutput ()
 
virtual ~CMPIParameterOutput ()
 
virtual void operator() (int argc, char **argv, AbstractApplication *app)
 

Protected Member Functions

virtual std::string getOutputFile (int argc, char **argv)
 

Detailed Description

CMPIParameterOutput This object can be used as is as an MPI Output process. It accepts data as pairs of messages:

Constructor & Destructor Documentation

◆ CMPIParameterOutput()

frib::analysis::CMPIParameterOutput::CMPIParameterOutput ( )

constructor

◆ ~CMPIParameterOutput()

frib::analysis::CMPIParameterOutput::~CMPIParameterOutput ( )
virtual

destructor – leave the application alone but kill off the writer. that closes the output file.

Member Function Documentation

◆ getOutputFile()

std::string frib::analysis::CMPIParameterOutput::getOutputFile ( int  argc,
char **  argv 
)
protectedvirtual

getOutputFile This is virtual so it can be overriden. The naive assumption in this default implementation is that the program is invoked:

some-program input-file output-file.

◆ operator()()

void frib::analysis::CMPIParameterOutput::operator() ( int  argc,
char **  argv,
AbstractApplication app 
)
virtual

operator() Called to run the process:

  • Use the virtual getOutputFile to get the output filename.
  • Create the data writer object.
  • Until we get an end message from the sender (there is one), get data and write it to the m_pWriter.
    Parameters
    argc,argv- command line arguments, used by getOutputFile.
    app- The application. Used to get the synthetic MPI data types.

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