40 const word& constantName
45 Info<<
"Time::findTimes(const fileName&): finding times in directory " 57 bool haveConstant =
false;
60 if (dirEntries[i] == constantName)
62 Times[nTimes].value() = 0;
63 Times[nTimes].name() = dirEntries[i];
74 token timeToken(timeStream);
78 Times[nTimes].value() = timeToken.
number();
79 Times[nTimes].name() = dirEntries[i];
Input from memory buffer stream.
static bool less(const vector &x, const vector &y)
To compare normals.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
bool eof() const
Return true if end of input seen.
void setSize(const label)
Reset size of List.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileNameList readDir(const fileName &, const fileName::Type=fileName::FILE, const bool filtergz=true)
Read a directory and return the entries as a string list.
A token holds items read from Istream.
A class for handling file names.
static instantList findTimes(const fileName &, const word &constantName="constant")
Search a given directory for valid time directories.