Implementation of the basic parts of the serial program example. More...
#include <ExampleProgram.H>


Public Member Functions | |
| SerialProgram () | |
| Default constructor. More... | |
| SerialProgram (int nargs, char **args) | |
| Constructor designed to take the commandline args. More... | |
| virtual int | Initialize () |
| Initializes native data structures from commandline args. More... | |
| int | VerbLevel () const |
| Returns verbosity level. More... | |
| virtual | ~SerialProgram () |
| Destructor. More... | |
| virtual int | Run () |
| This function implements the main function executed by the program. More... | |
Protected Attributes | |
| std::string | output_name |
| Name of file for output. More... | |
| std::string | input_name |
| Name of input file. More... | |
| int | verblevel |
| Verbosity level. More... | |
| std::ofstream | Ouf |
| Outfile stream for output. More... | |
| std::ifstream | Inf |
| Infile stream for input. More... | |
Implementation of the basic parts of the serial program example.
This object encapsulates the example serial program. It inherits from the IRAD::Global::Program type.
The program itself just copies a specified input file to the specified output file (or stdout if no file is given). The command line usage goes:
sep Usage:
sep [-h] [-v [arg] -o <filename> ] <input>
-h,--help
Prints this long version of help.
-v,--verbosity [arg]
-o,--output <filename>
Specifies the name of the output file.
<input>
Mode-dependent input: input <filename> for serial example
program, or <number of divisions> for parallel example.
Definition at line 158 of file ExampleProgram.H.
|
inline |
Default constructor.
Definition at line 175 of file ExampleProgram.H.
|
inline |
Constructor designed to take the commandline args.
Definition at line 181 of file ExampleProgram.H.
|
inlinevirtual |
Destructor.
Definition at line 243 of file ExampleProgram.H.
References SerialProgram::Ouf.
|
inlinevirtual |
Initializes native data structures from commandline args.
Definition at line 187 of file ExampleProgram.H.
References SerialProgram::input_name, SerialProgram::output_name, and SerialProgram::verblevel.
|
virtual |
This function implements the main function executed by the program.
Definition at line 16 of file ExampleSerialProgram.C.
References SerialProgram::Inf, SerialProgram::input_name, SerialProgram::Ouf, and SerialProgram::output_name.
|
inline |
Returns verbosity level.
Definition at line 239 of file ExampleProgram.H.
References SerialProgram::verblevel.
|
protected |
Infile stream for input.
Definition at line 170 of file ExampleProgram.H.
Referenced by SerialProgram::Run().
|
protected |
Name of input file.
Definition at line 164 of file ExampleProgram.H.
Referenced by SerialProgram::Initialize(), and SerialProgram::Run().
|
protected |
Outfile stream for output.
Definition at line 168 of file ExampleProgram.H.
Referenced by SerialProgram::Run(), and SerialProgram::~SerialProgram().
|
protected |
Name of file for output.
Definition at line 162 of file ExampleProgram.H.
Referenced by SerialProgram::Initialize(), and SerialProgram::Run().
|
protected |
Verbosity level.
Definition at line 166 of file ExampleProgram.H.
Referenced by SerialProgram::Initialize(), and SerialProgram::VerbLevel().