FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
Public Member Functions | Protected Member Functions | List of all members
MyApp Class Reference
Inheritance diagram for MyApp:
Inheritance graph
[legend]
Collaboration diagram for MyApp:
Collaboration graph
[legend]

Public Member Functions

 MyApp (int argc, char **argv)
 
virtual void dealer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void farmer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void outputter (int argc, char **argv, AbstractApplication *pApp)
 
virtual void worker (int argc, char **argv, AbstractApplication *pApp)
 
 MyApp (int argc, char **argv)
 
virtual void dealer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void farmer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void outputter (int argc, char **argv, AbstractApplication *pApp)
 
virtual void worker (int argc, char **argv, AbstractApplication *pApp)
 
std::string getOutputFile (int argc, char **argv)
 
std::string getParameterOutputFile (int argc, char **argv)
 
std::string getInputFile (int argc, char **argv)
 
 MyApp (int argc, char **argv)
 
virtual void dealer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void farmer (int argc, char **argv, AbstractApplication *pApp)
 
virtual void outputter (int argc, char **argv, AbstractApplication *pApp)
 
virtual void worker (int argc, char **argv, AbstractApplication *pApp)
 
std::string getOutputFile (int argc, char **argv)
 
std::string getInputFile (int argc, char **argv)
 
virtual int operator() ()
 
- Public Member Functions inherited from CTCLApplication
 CTCLApplication ()
 
 CTCLApplication (const CTCLApplication &aCTCLApplication)
 
CTCLApplicationoperator= (const CTCLApplication &aCTCLApplication)
 
int operator== (const CTCLApplication &aCTCLApplication)
 
void getProgramArguments (int &argc, char **&argv)
 
Tcl_ThreadId getThread () const
 
- Public Member Functions inherited from CTCLInterpreterObject
 CTCLInterpreterObject (CTCLInterpreter *pInterp)
 
 CTCLInterpreterObject (const CTCLInterpreterObject &aCTCLInterpreterObject)
 
CTCLInterpreterObjectoperator= (const CTCLInterpreterObject &aCTCLInterpreterObject)
 
int operator== (const CTCLInterpreterObject &aCTCLInterpreterObject) const
 
CTCLInterpretergetInterpreter () const
 
CTCLInterpreterBind (CTCLInterpreter &rBinding)
 
CTCLInterpreterBind (CTCLInterpreter *pBinding)
 

Protected Member Functions

void RegisterCommands ()
 
- Protected Member Functions inherited from CTCLInterpreterObject
CTCLInterpreterAssertIfNotBound ()
 

Member Function Documentation

◆ dealer()

void MyApp::dealer ( int  argc,
char **  argv,
AbstractApplication pApp 
)
virtual

The dealer First we create a raw event file - then we can distribute it to the worker(s) – run this so there's only one worker so that the output file is faithful.

Parameters
argc,argv- command line parameters
pApp- the application.

◆ worker()

void MyApp::worker ( int  argc,
char **  argv,
AbstractApplication pApp 
)
virtual

the worker - it's just going to get data from the dealer and write it to file - note that the headers in the response are written as well as the ring items so tests can look at those and be sure they're right.

Parameters
argc,argv- command line parameters
pApp- the application.

worker We open an output file and just put the data we get from the dealer into it for later examination. Note that both the header and contents will be written.


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