52 while ((
line.empty() ||
line[0] == comment) && is.
good());
59 Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::localMeshFileName
69 /
name +
"." + nativeExt
74 Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::findMeshInstance
80 fileName localName = localMeshFileName(meshName);
88 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
90 if (ts[instanceI].value() <= t.timeOutputValue())
101 for (label i = instanceI; i >= 0; --i)
103 if (
isFile(t.path()/ts[i].name()/localName))
114 Foam::fileName Foam::fileFormats::edgeMeshFormatsCore::findMeshFile
120 fileName localName = localMeshFileName(meshName);
128 for (instanceI = ts.size()-1; instanceI >= 0; --instanceI)
130 if (ts[instanceI].value() <= t.timeOutputValue())
141 for (label i = instanceI; i >= 0; --i)
143 fileName testName(t.path()/ts[i].name()/localName);
153 return t.path()/t.constant()/localName;
161 const word& fileType,
163 const char* functionName
166 if (available.
found(fileType))
172 Info<<
"Unknown file type";
176 Info<<
" for " << functionName;
179 Info<<
" : " << fileType <<
nl static const word prefix
The prefix to local: surfaces.
A class for handling file names.
bool found(const Key &key) const
Same as contains()
constexpr char nl
The newline '\n' character (0x0a)
Various functions to operate on Lists.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
A class for handling words, derived from Foam::string.
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
bool isFile(const fileName &name, const bool checkGzip=true, const bool followLink=true)
Does the name exist as a FILE in the file system?
Generic input stream using a standard (STL) stream.
bool good() const noexcept
True if next operation might succeed.
List< Key > sortedToc() const
The table of contents (the keys) in sorted order.
static word defaultName
The default surface name: default.
messageStream Info
Information stream (stdout output on master, null elsewhere)
List< instant > instantList
List of instants.
A class for handling character strings derived from std::string.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.