CmdLineClient Class Reference

#include <CmdLineClient.h>

Collaboration diagram for CmdLineClient:

Collaboration graph
[legend]

List of all members.

Public Member Functions

int parse ()
void mapIOToFile (const char *outName, const char *errName)
void mapEverythingToTTY ()
void mapEverythingToFile (const char *outName, const char *errName)
void remapIO ()
void parseArgsX (int argc, char **argv)
void parseArgs (int argc, char **argv)
void dumpMachines ()
int main (int argc, char **argv, StaticFactory *sf=0)
void setName (char *name)
void setRank (int rank)
void setSize (int size)
void setComm (int64_t fComm)
void setInitRunType (runtype_ runType)
void setUseMPI (bool b)
bool getUseMPI ()

Private Attributes

CmdLineBuilderController2controller
char * procFile
MachWrapper * mWrap
int myProcIndex
char * myProcName
runtype runType
int rank
int size
int port
bool debug
bool stp_initialized
bool useMPI
int64_t fortranMPIComm
bool hasComm


Detailed Description

Client for handling remote gui or vice versa.

Member Function Documentation

void CmdLineClient::mapIOToFile ( const char *  outName,
const char *  errName 
)

Map the IO stream in static class IO to the given file. The file is open to a line-buffered FILE pointer.

void CmdLineClient::mapEverythingToTTY (  ) 

Map the IO to the controlling tty.

void CmdLineClient::mapEverythingToFile ( const char *  outName,
const char *  errName 
)

Map the IO stream in static class IO to the given file as well as stdout and stderr. The file is open to a line-buffered FILE pointer.

void CmdLineClient::remapIO (  ) 

Remap the IO to files named: procOut<rank> and procErr<rank>

void CmdLineClient::parseArgsX ( int  argc,
char **  argv 
)

Command line arg parser using Stovepipe.

void CmdLineClient::parseArgs ( int  argc,
char **  argv 
)

Command line arg parser.

void CmdLineClient::dumpMachines (  ) 

Writes out the current machine jcpn(Vector)*.

void CmdLineClient::setName ( char *  name  ) 

machine name

void CmdLineClient::setRank ( int  rank  ) 

parallel process enumerated id

void CmdLineClient::setSize ( int  size  ) 

number of parallel processes

void CmdLineClient::setComm ( int64_t  fComm  ) 

fortran comm, if mpi. needs to be called before main().


Member Data Documentation

char* CmdLineClient::procFile [private]

File to read that contain the participating processors

MachWrapper* CmdLineClient::mWrap [private]

holds a jcpn(Vector) of dc/distributed/ProcessorInfo* 's

The index of this processor into the machines vector.

char* CmdLineClient::myProcName [private]

Name or IP number of this processor.

runtype CmdLineClient::runType [private]

What kind of hookup we will be using.

int CmdLineClient::rank [private]

My proc rank: <= 1 is a single proc run.

int CmdLineClient::size [private]

Number of participating processors: <= 1 is a single processor run.

int CmdLineClient::port [private]

Port number to connect to the server from which we will receive parse-able commands.

bool CmdLineClient::debug [private]

True to print out sometimes helpful debugging information.

Have we initialized Stovepipe to the command line arguments yet?

int64_t CmdLineClient::fortranMPIComm [private]

If using mpi, this is the communicator the framework has. set as driver in CmdLineClientMain normally. Note it is in fortran cast up to 8 byte format, which requires conversions before use if MPI_Fint is not int64_t.


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

Generated on Thu Sep 17 08:21:22 2009 for CCAFFEINE by  doxygen 1.5.9