Go to the documentation of this file.
49 void Foam::coordinateSystems::readFromStream(
const bool valid)
66 <<
"--> FOAM IOWarning :" <<
nl
68 <<
"' instead of '" << typeName <<
"'" <<
nl;
80 <<
" expected " << typeName
82 <<
" while reading object " <<
name()
89 bool Foam::coordinateSystems::readObject(
const IOobject& io)
111 Foam::coordinateSystems::coordinateSystems(
const IOobject& io)
120 Foam::coordinateSystems::coordinateSystems
136 Foam::coordinateSystems::coordinateSystems
242 <<
"Global coordinate system: "
251 return this->operator()(index);
263 <<
"Could not find coordinate system: " <<
name <<
nl
264 <<
"available coordinate systems: "
308 csys.writeEntry(csys.name(),
os);
int debug
Static debugging option.
List< label > labelList
A List of labels.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
#define InfoInFunction
Report an information message using Foam::Info.
bool found(const wordRe &key) const
Search if given key exists.
A class for handling words, derived from Foam::string.
labelList indices(const wordRe &key) const
Find and return indices for all matches.
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
labelList findMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Extract list indices for all items with 'name()' that matches.
Functions to operate on Pointer Lists.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word & headerClassName() const noexcept
Return name of the class name read from header.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
bool good() const noexcept
True if next operation might succeed.
const coordinateSystem & lookup(const word &name) const
Return reference to named coordinateSystem or FatalErrror.
List< word > wordList
A List of words.
Registry of regIOobjects.
static const char * headerTypeCompat
Header name for 1806 and earlier.
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.
defineTypeName(ensightPart)
The IOstreamOption is a simple container for options an IOstream can normally have.
void readIstream(Istream &is, const INew &inew)
Read from Istream using Istream constructor class.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
bool writeData(Ostream &os) const
Write data.
A centralized collection of named coordinate systems.
OBJstream os(runTime.globalPath()/outputName)
virtual bool writeObject(IOstreamOption streamOpt, const bool valid) const
Write using stream options.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
virtual bool writeObject(IOstreamOption streamOpt, const bool valid=true) const
Write using stream options.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const word & name() const noexcept
Return name.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
void close()
Close Istream.
static bool master(const label communicator=-1)
wordList names() const
A list of the coordinate-system names.
A List of wordRe with additional matching capabilities.
static const word null
An empty word.
label firstMatching(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
Find first list item with 'name()' that matches, -1 on failure.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const coordinateSystem * cfind(const word &name) const
Return pointer to named coordinateSystem or nullptr on error.
static bool warnAboutAge(const int version) noexcept
Test if an age warning should be emitted.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static const coordinateSystems & New(const objectRegistry &obr)
Return previously registered or read construct from "constant".
const word & constant() const
Return constant name.
Begin list [isseparator].
List< word > names(const UPtrList< T > &list, const UnaryMatchPredicate &matcher)
const Time & time() const noexcept
Return time registry.
Base class for coordinate system specification, the default coordinate system type is cartesian .
label findIndex(const wordRe &key) const
Find and return index for the first match, return -1 if not found.