#include <iostream>
#include <vector>
#include <list>
#include <sstream>
#include "clop.H"
#include "FC.h"
Go to the source code of this file.
Definition at line 64 of file utilities/rocflu/part/main.C.
70 cout << endl <<
"Usage: " << pn <<
" -c <casename> [-v 0-2]" << endl << endl
71 <<
" -c | --casename : Specifies the casename" << endl
72 <<
" -v | --verbosity : Verbosity level:" << endl
73 <<
" 0 - Quiet" << endl
74 <<
" 1 - Moderately verbose" << endl
75 <<
" 2 - Ridiculously verbose" << endl
76 <<
" 3 - Exteremly verbose" << endl
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 81 of file utilities/rocflu/part/main.C.
References AddOp(), FC_GLOBAL, GetOp(), rflupart(), RFLUPART, stripdir(), Usage(), and Vectize().
85 vector<string> args =
Vectize((
const char **)argv,argc);
89 string program_name(
stripdir(args[0]));
92 AddOp(
"casename",
'c');
93 AddOp(
"verbosity",
'v');
104 if(help =
GetOp(
"help",args)){
110 if(
GetOp(
"casename",casename,args)){
111 if(casename.empty()){
113 <<
": Expected casename after casename option."
114 <<
" Use -h for usage instructions."
121 <<
": Missing required casename option."
122 <<
" Use -h for usage instructions."
128 if(
GetOp(
"verbosity",sverb,args)){
131 <<
": Expected verbosity level. "
132 <<
"Use -h for usage instructions." << endl;
135 istringstream Istr(sverb);
137 if(verbosity < 0 || verbosity > 4){
139 <<
": Invalid verbosity value. Use -h for usage "
140 <<
"instructions." << endl;
const string stripdir(const string &)
bool GetOp(const string &ops, const vector< string > &args)
void AddOp(const string &lo, const char &so)
void Usage(const string &pn)
subroutine rflupart(caseString, verbLevel)
#define FC_GLOBAL(name, NAME)
vector< string > Vectize(const char **)