Go to the documentation of this file.
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];
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.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
bool eof() const
Return true if end of input seen.
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
Less function class used in sorting instants.
Input from memory buffer stream.
void setSize(const label)
Reset size of List.
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.
void size(const label)
Override size to be inconsistent with allocated storage.
fileNameList readDir(const fileName &, const fileName::Type=fileName::FILE, const bool filtergz=true)
Read a directory and return the entries as a string list.