Go to the documentation of this file.
41 int main(
int argc,
char *argv[])
45 "interrogates a case and prints information to stdout"
54 "report keywords for the specified dictionary"
61 "report the named entry for the specified dictionary"
108 const entry* entPtr = NULL;
110 if (entryName.find(
'.') != string::npos)
123 wordList entryNames(entryName.components(
':'));
133 for (
int i=1; i<entryNames.size(); ++i)
147 <<
"Cannot find sub-entry " << entryNames[i]
148 <<
" in entry " <<
args[
"entry"]
149 <<
" in dictionary " << dictFileName;
187 <<
"Cannot find entry "
189 <<
" in dictionary " << dictFileName;
208 <<
"Cannot open file " << dictFileName;
static void noBanner()
Disable emitting the banner information.
A keyword and a list of tokens is an 'entry'.
const entry & lookupEntry(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present otherwise error.
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.
static void addNote(const string &)
Add extra notes for the usage information.
#define forAll(list, i)
Loop across all elements in list.
static void addBoolOption(const word &opt, const string &usage="")
Add to a bool option to validOptions with usage information.
bool isAbsolute() const
Return true if file name is absolute.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & rootPath() const
Return root path.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
int main(int argc, char *argv[])
const string & option(const word &opt) const
Return the argument string associated with the named option.
const entry * lookupScopedEntryPtr(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream pointer if present.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
virtual const dictionary & dict() const =0
Return dictionary if this entry is a dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static instantList findTimes(const fileName &, const word &constantName="constant")
Search a given directory for valid time directories.
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)
Foam::argList args(argc, argv)