49void Foam::coordinateSystems::readFromStream(
const bool valid)
66 <<
"--> FOAM IOWarning :" <<
nl
68 <<
"' instead of '" << typeName <<
"'" <<
nl;
80 <<
" expected " << typeName
82 <<
" while reading object " <<
name()
89bool Foam::coordinateSystems::readContents()
241 if (coordinateSystem::debug)
244 <<
"Global coordinate system: "
253 return this->operator()(index);
265 <<
"Could not find coordinate system: " <<
name <<
nl
266 <<
"available coordinate systems: "
310 csys.writeEntry(csys.name(),
os);
Functions to operate on Pointer Lists.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & name() const noexcept
Return the object name.
const word & headerClassName() const noexcept
Return name of the class name read from header.
The IOstreamOption is a simple container for options an IOstream can normally have.
bool good() const noexcept
True if next operation might succeed.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
void readIstream(Istream &is, const INew &inew)
Read from Istream using Istream constructor class.
const labelUList & indices() const noexcept
Return the list of sorted indices (updated every sort).
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
Base class for coordinate system specification, the default coordinate system type is cartesian .
A centralized collection of named coordinate systems.
const coordinateSystem * cfind(const word &name) const
Return pointer to named coordinateSystem or nullptr on error.
bool writeData(Ostream &os) const
Write data.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid=true) const
Write using stream options.
wordList names() const
A list of the coordinate-system names.
label findIndex(const wordRe &key) const
Find and return index for the first match, return -1 if not found.
static bool warnAboutAge(const int version) noexcept
Test if an age warning should be emitted.
Registry of regIOobjects.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
constant condensation/saturation model.
Lookup type of boundary radiation properties.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
void close()
Close Istream.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.
splitCell * master() const
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define defineTypeName(Type)
Define the typeName.
static const char * headerTypeCompat
Header name for 1806 and earlier.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
#define InfoInFunction
Report an information message using Foam::Info.
labelList findMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Extract list indices for all items with 'name()' that matches.
label firstMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Find first list item with 'name()' that matches, -1 on failure.
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
List< word > wordList
A List of words.
label findIndex(const ListType &input, typename ListType::const_reference val, const label start=0)
Deprecated(2017-10) search for first occurrence of the given element.
List< label > labelList
A List of labels.
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)