CmdContextCCAMPI Class Reference

#include <CmdContextCCAMPI.h>

Inheritance diagram for CmdContextCCAMPI:

Inheritance graph
[legend]
Collaboration diagram for CmdContextCCAMPI:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CmdContextCCAMPI (CmdLineBuilderView *bv_, DefaultBuilderModel *bm, bool batch_=true)
 CmdContextCCAMPI (FILE *out, CmdLineBuilderView *bv_, DefaultBuilderModel *bm, bool batch_=true)

Public Attributes

CmdLineBuilderViewbv

Protected Member Functions

int initRC ()
virtual CFREE char * _readLine (int &readerr)

Protected Attributes

bool batch


Detailed Description

The CCA demo command-line interpreter has some messy data, which is as it should be in useful programs. We are constructed with a builderview and we in turn create the buildermodel. To bootstrap ourselves further, we parse an rcFile once.

Constructor & Destructor Documentation

CmdContextCCAMPI::CmdContextCCAMPI ( CmdLineBuilderView bv_,
DefaultBuilderModel bm,
bool  batch_ = true 
)

instantiation of interpreters has specific details. In this cca parser, we need a builderview.

CmdContextCCAMPI::CmdContextCCAMPI ( FILE *  out,
CmdLineBuilderView bv_,
DefaultBuilderModel bm,
bool  batch_ = true 
)

instantiation of interpreters has specific details. In this cca parser, we need a builderview and an output channel.


Member Function Documentation

int CmdContextCCAMPI::initRC (  )  [protected, virtual]

Returns 1 if rcfile apparently found and 0 if not. rcFile is set up for reading if 1 returned.

Reimplemented from CmdContextCCA.

virtual CFREE char* CmdContextCCAMPI::_readLine ( int &  readerr  )  [protected, virtual]

In our version of _readLine, we have overloaded to handle an rc file. We look for lines in files env(CCAFE_RC_FILE), env(HOME)/.ccaferc, and a compiled in path /cxx/dc/user_iface/CcaffeineRC to return before we start parsing the regular input obtained from bv. The advisability of this on a global file system is not investigated here. GFS Hint: if it's a problem, have each node run with a different env(CCAFE_RC_FILE) value.

Reimplemented from CmdContextCCA.


Member Data Documentation

Where we send stuff and get stuff. We extract bm from it.

Reimplemented from CmdContextCCA.


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

Generated on Tue Apr 28 03:12:52 2009 for CCAFFEINE by  doxygen 1.5.5