#include <MPIParameterOutput.h>
CMPIParameterOutput This object can be used as is as an MPI Output process. It accepts data as pairs of messages:
- FRIB_MPI_Parameter_MessageHeader which describes the following parameters
- FRIB_MPI_Parameter_Value array which contain the parameters themselves. It uses a CDataWriter to output the data it receives. Pretty simple beast really. If run under something derived as an abstract application class, it will have access to the parameter definitions and the data writer will write those and the variable definitions to file.
◆ CMPIParameterOutput()
frib::analysis::CMPIParameterOutput::CMPIParameterOutput |
( |
| ) |
|
◆ ~CMPIParameterOutput()
frib::analysis::CMPIParameterOutput::~CMPIParameterOutput |
( |
| ) |
|
|
virtual |
destructor – leave the application alone but kill off the writer. that closes the output file.
◆ 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: