|
CCAFFEINE
0.8.8
|
#include <CmdContextCCAMPI.h>


Public Member Functions | |
| CmdContextCCAMPI (CmdLineBuilderView *bv_, DefaultBuilderModel *bm, bool batch_=true) | |
| CmdContextCCAMPI (FILE *out, CmdLineBuilderView *bv_, DefaultBuilderModel *bm, bool batch_=true) | |
Public Attributes | |
| CmdLineBuilderView * | bv |
Protected Member Functions | |
| int | initRC () |
| virtual CFREE char * | _readLine (int &readerr) |
Protected Attributes | |
| bool | batch |
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.
| 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.
| 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.
Where we send stuff and get stuff. We extract bm from it.
Reimplemented from CmdContextCCA.
1.7.6.1