Go to the documentation of this file.
28 if( !dict.
add(
"startTime", startTime_) )
31 " error in writing startTime to dictionary "<< dict.
globalName()<<
endl;
35 if( !dict.
add(
"endTime", endTime_) )
38 " error in writing endTime to dictionary "<< dict.
globalName()<<
endl;
52 if(key !=
"startTime")
55 " expected startTime but found "<< key <<
endl;
67 " expected endTime but found "<< key <<
endl;
T getValOrSet(const word &keyword, const T &setVal) const
get the value of data entry or if not found, set the value to setVal
#define fatalExit
Fatal exit.
FUNCTION_H bool write(dictionary &dict) const
char readEndStatement(const char *funcName)
End statement character ;.
virtual word globalName() const
global name of entry, separated with dots
bool add(const word &keyword, const float &v)
add a float dataEntry
FUNCTION_H bool read(const dictionary &dict)
iOstream & endl(iOstream &os)
Add newline and flush stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Interface class for any input stream
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
INLINE_FUNCTION_HD timeInterval()
virtual const word & name() const
Return the name of the stream.
#define ioErrorInFile(fileName, lineNumber)
Report an error in file operation with supplied fileName and lineNumber.
int32 lineNumber() const
Const access to the current stream line number.
Interface class for any output stream.
iOstream & writeWordEntry(const word &key, const T &value)
Write a keyword/value entry.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...