Go to the documentation of this file.
100 static bool getKeyword
114 void raiseBadInput(
const ITstream& is)
const;
165 const int endChar = 0
190 virtual ~entry() =
default;
224 virtual bool isStream() const noexcept
234 virtual bool isDict() const noexcept
294 template<
class T,
class Predicate>
298 readCheck<T>(val, pred);
307 template<
class T,
class Predicate>
308 void readCheck(
T& val,
const Predicate& pred)
const
entry(const keyType &keyword)
Construct from keyword.
A keyword and a list of tokens is an 'entry'.
Keep initial entry. Warn about subsequent ones.
static bool New(dictionary &parentDict, Istream &is, const inputMode inpMode=inputMode::GLOBAL, const int endChar=0)
Construct from an Istream and insert into the dictionary.
FatalError for duplicate entries.
keyType & keyword() noexcept
Return non-const access to keyword.
A class for handling file names.
virtual ITstream & stream() const =0
Return token stream, if entry is a primitive entry.
virtual ~entry()=default
Destructor.
T getCheck(const Predicate &pred) const
virtual bool isStream() const noexcept
Return true if this entry is a stream.
static inputMode globalInputMode
The current global input-mode.
virtual bool isDict() const noexcept
Return true if this entry is a dictionary.
virtual const dictionary * dictPtr() const noexcept
Return pointer to dictionary, if entry is a dictionary.
An IOstream is an abstract base class for all input/output systems; be they streams,...
const keyType & keyword() const noexcept
Return keyword.
A token holds an item read from Istream.
inputMode
The input mode options.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
An input stream of tokens.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void operator=(const entry &e)
static void resetInputMode()
Reset the globalInputMode to merge.
static void reportReadWarning(const IOstream &, const std::string &)
Report a read warning (on std::cerr)
virtual label startLineNumber() const =0
Return line number of first token in dictionary.
Template class for intrusive linked lists.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static int disableFunctionEntries
Enable or disable use of function entries and variable expansions.
Use global value from globalInputMode variable.
virtual const dictionary & dict() const =0
Return dictionary, if entry is a dictionary.
virtual const fileName & name() const =0
Return the entry name.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Merge sub-dictionaries when possible.
virtual fileName relativeName() const =0
Return the entry name relative to the current case.
virtual autoPtr< entry > clone() const
Construct on freestore as copy.
bool operator!=(const entry &e) const
void readCheck(T &val, const Predicate &pred) const
const dimensionedScalar e
Elementary charge.
bool operator==(const entry &e) const
void readEntry(T &val) const
Keep initial entry. Silently ignore subsequent ones.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual label endLineNumber() const =0
Return line number of last token in dictionary.
void checkITstream(const ITstream &is) const
virtual void write(Ostream &os) const =0
Write.
Intrusive doubly-linked list.
Keep last entry. Silently remove previous ones.
friend Ostream & operator<<(Ostream &os, const entry &e)