36 const entry* entryPtr =
dict.lookupEntryPtr(typeName_(),
false,
false);
39 if (entryPtr && !entryPtr->
isDict())
46 if (css.PtrDictionary<coordinateSystem>::found(
name))
51 <<
"Using global coordinate system: " <<
name <<
endl;
59 <<
"could not find coordinate system: " <<
name <<
nl
60 <<
"available coordinate systems: " << css.
toc() <<
nl <<
nl
69 const word coordType = coordDict.
lookup(
"type");
71 dictionaryConstructorTable::iterator cstrIter =
72 dictionaryConstructorTablePtr_->find(coordType);
74 if (cstrIter == dictionaryConstructorTablePtr_->end())
79 ) <<
"Unknown coordinateSystem type "
80 << coordType <<
nl <<
nl
81 <<
"Valid coordinateSystem types are :" <<
nl
82 << dictionaryConstructorTablePtr_->sortedToc()
99 dictionaryConstructorTable::iterator cstrIter =
100 dictionaryConstructorTablePtr_->find(coordType);
102 if (cstrIter == dictionaryConstructorTablePtr_->end())
107 ) <<
"Unknown coordinateSystem type "
108 << coordType <<
nl <<
nl
109 <<
"Valid coordinateSystem types are :" <<
nl
110 << dictionaryConstructorTablePtr_->sortedToc()
static coordinateSystems & New(const word &name, const objectRegistry &mesh)
Construct and return the named DemandDrivenMeshObject.
wordList toc() const
Return the table of contents.
autoPtr< IOobject > clone() const
Clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< coordinateSystem > New(const objectRegistry &obr, const dictionary &dict)
Select constructed from dictionary and objectRegistry.
const word & name() const
Return name.
Provides a centralised coordinateSystem collection.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A keyword and a list of tokens is an 'entry'.
virtual bool isDict() const
Return true if this entry is a dictionary.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
Registry of regIOobjects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define InfoInFunction
Report an information message using Foam::Info.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.