Go to the documentation of this file.
72 const bool loadFromFiles
78 fileToUpdate_(
"unknown-fileToUpdate"),
99 log_.readIfPresent(
"log",
dict);
105 fileToUpdate_.expand();
108 <<
type() <<
" " << name_ <<
" output:" <<
nl
109 <<
" time vs file list:" <<
endl;
113 timeVsFile_[i].second() = timeVsFile_[i].second().expand();
114 if (!
isFile(timeVsFile_[i].second()))
117 <<
"File: " << timeVsFile_[i].second() <<
" not found"
122 <<
" " << timeVsFile_[i].first() <<
tab
123 << timeVsFile_[i].second() <<
endl;
A class for handling words, derived from string.
virtual ~timeActivatedFileUpdate()
Destructor.
timeActivatedFileUpdate(const timeActivatedFileUpdate &)
Disallow default bitwise copy construct.
virtual void execute()
Execute, currently does nothing.
#define forAll(list, i)
Loop across all elements in list.
List< Tuple2< scalar, fileName > > timeVsFile_
List of times vs filenames.
bool read(const char *, int32_t &)
const Time & time() const
Return time.
fileName fileToUpdate_
Name of file to update.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
virtual void write()
Calculate the timeActivatedFileUpdate and write.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
bool cp(const fileName &src, const fileName &dst)
Copy, recursively if necessary, the source to the destination.
const objectRegistry & obr_
Owner database.
Registry of regIOobjects.
void updateFile()
Update file.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void end()
Execute at the final time-loop, currently does nothing.
Switch log_
Switch to send output to Info as well as to file.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool isFile(const fileName &, const bool checkGzip=true)
Does the name exist as a FILE in the file system?
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
label lastIndex_
Index of last file copied.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(combustionModel, 0)
virtual void read(const dictionary &)
Read the timeActivatedFileUpdate data.
word name(const complex &)
Return a string representation of a complex.