PlasCom2  1.0
XPACC Multi-physics simluation application
TestPlasCom2.H
Go to the documentation of this file.
1 #ifndef __TEST_PC2_H__
7 #define __TEST_PC2_H__
8 
9 #include "PlasCom2Test.H"
10 
11 namespace plascom2 {
12 
17  {
18  public:
20  : ix::util::ComLineObject()
21  {};
22  TestComLine(const char *args[])
23  : ix::util::ComLineObject(args)
24  {};
25  void Initialize(){
26  AddOption('h',"help");
27  AddHelp("help","Print out long version of help and exit.");
28  AddOption('v',"verblevel",1,"level");
29  AddHelp("verblevel","Set the verbosity level. (default = 0)");
30  AddOption('o',"output",2,"filename");
31  AddHelp("output","Set the output file to <filename>. (default = stdout)");
32  AddOption('l',"list",2,"filename");
33  std::ostringstream Ostr;
34  Ostr << "Set the list file name to <filename>. (no default). "
35  << "The list file should be a text file with one test name per line.";
36  AddHelp("list",Ostr.str());
37  AddOption('n',"name",2,"TestName");
38  AddHelp("name","Run test by name. (no default)");
39  Ostr.str("");
40  Ostr << "Command-line interface for the test of the PlasCom2.";
41  _description.assign(Ostr.str());
42  };
43  };
44 };
45 #endif
Defines MPI-specific parallel global and program classes.
Definition: PC2IO.H:10
Testing object for PlasCom2.
std::string _description
application description.
Definition: ComLine.H:73
TestComLine(const char *args[])
Definition: TestPlasCom2.H:22
void AddOption(char s, const std::string &l, int=0)
User interface to describe simple option.
Definition: ComLine.C:295
void Initialize()
virtual function for program specific Initialization.
Definition: TestPlasCom2.H:25
ComLineObject for PlasCom2 testing command-line interface.
Definition: TestPlasCom2.H:16
Command line processing.
Definition: ComLine.H:62
ComLineObject()
Default constructor.
Definition: ComLine.H:102
void AddHelp(char s, const std::string &help)
Specify usage for an option.
Definition: ComLine.H:227