Go to the documentation of this file.
42 int main(
int argc,
char *argv[])
54 for (
label count = 0; count < repeat; ++count)
58 const string& rawArg =
args[argI];
61 Info<<
"input string: " << rawArg <<
nl;
72 int lookahead = is.
peek();
77 Info<<
" lookahead: '" << char(lookahead) <<
"'" <<
endl;
89 Info<<
"tokenized args " << repeat <<
" times in "
90 <<
timer.cpuTimeIncrement() <<
" s\n\n";
94 for (
label count = 0; count < repeat; ++count)
100 Info<<
"tokenizing file: " <<
args[
"file"] <<
nl;
119 Info<<
"tokenized file " << repeat <<
" times in "
120 <<
timer.cpuTimeIncrement() <<
" s\n\n";
static SLList< string > validArgs
A list of valid (mandatory) arguments.
Starts timing CPU usage and return elapsed time from start.
int peek()
Raw, low-level peek function.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static void addOption(const word &opt, const string ¶m="", const string &usage="")
Add to an option to validOptions with usage information.
label size() const
Return the number of arguments.
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
int main(int argc, char *argv[])
A token holds items read from Istream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InfoProxy< token > info() const
Return info proxy.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
Input from memory buffer stream.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
Implements a timeout mechanism via sigalarm.
bool optionFound(const word &opt) const
Return true if the named option is found.
static void noParallel()
Remove the parallel options.
bool good() const
Return true if next operation might succeed.
Foam::argList args(argc, argv)