Go to the documentation of this file.
44 Info<<
"fileName = " << pathName <<
nl
45 <<
" path() = " << pathName.
path() <<
nl
46 <<
" name() = " << pathName.
name() <<
nl
47 <<
" joined = " << pathName.
path()/pathName.
name() <<
nl <<
nl;
51 Info<<
"cleaned = " << pathName <<
nl
52 <<
" path() = " << pathName.
path() <<
nl
53 <<
" name() = " << pathName.
name() <<
nl
54 <<
" joined = " << pathName.
path()/pathName.
name() <<
nl <<
nl;
63 int main(
int argc,
char *argv[])
85 <<
"FOAM_CASE=" <<
getEnv(
"FOAM_CASE") <<
nl
86 <<
"FOAM_CASENAME=" <<
getEnv(
"FOAM_CASENAME") <<
nl
94 pathName =
args[argI];
107 <<
"FOAM_CASE=" <<
getEnv(
"FOAM_CASE") <<
nl
108 <<
"FOAM_CASENAME=" <<
getEnv(
"FOAM_CASENAME") <<
nl
static SLList< string > validArgs
A list of valid (mandatory) arguments.
static void noBanner()
Disable emitting the banner information.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling file names.
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.
fileName path() const
Return directory path name (part before last /)
Extract command arguments and options from the supplied argc and argv parameters.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & rootPath() const
Return root path.
word name() const
Return file name (part beyond last /)
const Foam::HashTable< string > & options() const
Return options.
string getEnv(const word &)
Return environment variable of given name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
int main(int argc, char *argv[])
void printUsage() const
Print usage.
fileName path() const
Return the path to the caseName.
static Stream & writeDivider(Stream &os)
Write the standard file section divider.
bool optionFound(const word &opt) const
Return true if the named option is found.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
bool clean()
Cleanup file name.
static void noParallel()
Remove the parallel options.
Foam::argList args(argc, argv)
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
void printCleaning(fileName &pathName)
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.