#include "timeInterval.hpp" #include "dictionary.hpp" FUNCTION_H pFlow::timeInterval::timeInterval(const dictionary& dict) { if(!read(dict)) { fatalExit; } } FUNCTION_H bool pFlow::timeInterval::read(const dictionary& dict) { startTime_ = dict.getValOrSet("startTime", 0); endTime_ = dict.getValOrSet("endTime", largeValue); return true; } FUNCTION_H bool pFlow::timeInterval::write(dictionary& dict) const { if( !dict.add("startTime", startTime_) ) { fatalErrorInFunction<< " error in writing startTime to dictionary "<< dict.globalName()<> key >> val; if(key != "startTime") { ioErrorInFile(is.name(), is.lineNumber())<< " expected startTime but found "<< key <> key >> val; if(key != "endTime") { ioErrorInFile(is.name(), is.lineNumber())<< " expected endTime but found "<< key <