45 if (io.
name().empty())
61 if (originalPath != objPath)
64 if (io.
name().empty())
86 const word& stopInstance
109 <<
"Found exact match for \"" << name
124 for (instanceI = ts.
size()-1; instanceI >= 0; --instanceI)
133 for (; instanceI >= 0; --instanceI)
138 ts[instanceI].
name(),
148 <<
"Found instance match for \"" << name
149 <<
"\" in " << ts[instanceI].name()/dir
153 return ts[instanceI].name();
157 if (ts[instanceI].
name() == stopInstance)
162 Pout<<
"findInstance : " 163 <<
"Hit stopInstance " << stopInstance
176 <<
"Cannot find directory " 177 << dir <<
" in times " <<
timeName()
178 <<
" down to " << stopInstance
184 <<
"Cannot find file \"" << name <<
"\" in directory " 185 << dir <<
" in times " <<
timeName()
186 <<
" down to " << stopInstance
191 return ts[instanceI].name();
215 <<
"Found constant match for \"" << name
226 <<
"Cannot find file \"" << name <<
"\" in directory " 227 << dir <<
" in times " <<
timeName()
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const word & name() const
Return name.
bool typeHeaderOk(const bool checkType=true)
Read header (uses typeFilePath to find file) and check header.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
Return the location of "dir" containing the file "name".
readOption
Enumeration defining the read options.
virtual bool isFile(const fileName &, const bool checkGzip=true, const bool followLink=true) const =0
Does the name exist as a FILE in the file system?
virtual word timeName() const
Return current time name.
A class for handling words, derived from string.
static bool exists(IOobject &)
Find IOobject in the objectPath.
const word & constant() const
Return constant name.
const scalar & value() const
Return const reference to value.
static const word null
An empty word.
const fileOperation & fileHandler()
Get current file handler.
const word & name() const
Return const reference to name.
scalar timeOutputValue() const
Return current time value.
virtual bool isDir(const fileName &, const bool followLink=true) const =0
Does the name exist as a DIRECTORY in the file system?
prefixOSstream Pout(cout, "Pout")
instantList times() const
Search the case for valid time directories.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
fileName objectPath() const
Return complete path + object name.
#define InfoInFunction
Report an information message using Foam::Info.