Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExampleProgramComLine Class Reference

The ComLineObject for the example programs. More...

#include <ExampleProgram.H>

Inheritance diagram for ExampleProgramComLine:
Collaboration diagram for ExampleProgramComLine:

Public Member Functions

 ExampleProgramComLine ()
 
 ExampleProgramComLine (const char *args[])
 
void Initialize ()
 This is where the actual options and arguments are described. More...
 

Detailed Description

The ComLineObject for the example programs.

This comline object implements a basic command-line interface handler for the example programs. These command-line objects handle all of the generation of help messages, command line argument validation, and encapsulation.

Definition at line 72 of file ExampleProgram.H.

Constructor & Destructor Documentation

Definition at line 75 of file ExampleProgram.H.

76  : IRAD::Util::ComLineObject()
77  {};
ExampleProgramComLine ( const char *  args[])
inline

Definition at line 78 of file ExampleProgram.H.

79  : IRAD::Util::ComLineObject(args)
80  {};

Member Function Documentation

void Initialize ( )
inline

This is where the actual options and arguments are described.

For details about what can be done in this function, see the documentation for the IRAD::Util::ComLineObject.

Definition at line 87 of file ExampleProgram.H.

87  {
88  AddOption('h',"help");
89  AddOption('v',"verbosity",1);
90  AddOption('o',"output",2,"filename");
91  AddArgument("input",1);
92  AddHelp("help","Prints this long version of help.");
93  AddHelp("output","Specifies the name of the output file.");
94  std::ostringstream Ostr;
95  Ostr << "Mode-dependent input: Input <filename> for serial example"
96  << "\n\t\tprogram, or <number of divisions> for parallel example.";
97  AddArgHelp("input",Ostr.str());
98  // The following commented string formation is kept around to
99  // illustrate the required tabs and newlines to make the output
100  // look proper:
101  //
102  // Ostr << "Use fixed problem size in scalability analysis. Only makes"
103  // << "\n\t\tsense when scalability mode is enabled.";
104  // Ostr.str("");
105  Ostr.str("");
106  Ostr << "Example GridConversion program.";
107  _description.assign(Ostr.str());
108  };

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