Go to the documentation of this file.
35 #ifndef fileOperations_uncollatedFileOperation_H
36 #define fileOperations_uncollatedFileOperation_H
45 namespace fileOperations
65 const bool checkGlobal,
110 const bool followLink =
true
117 const bool followLink =
true
125 const bool checkGzip=
true,
126 const bool followLink =
true
133 const bool followLink =
true
141 const bool checkGzip=
true,
142 const bool followLink =
true
149 const bool followLink =
true
156 const bool followLink =
true
163 const bool followLink =
true
171 const bool filtergz=
true,
172 const bool followLink =
true
180 const bool followLink =
true
192 const bool followLink =
false
201 const std::string& ext =
"bak"
211 const bool silent =
false
228 const bool checkGlobal,
230 const word& typeName,
238 const bool checkGlobal,
266 const word& typeName,
267 const bool procValid =
true
274 const bool masterOnly,
287 const bool valid =
true
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
An encapsulation of filesystem-related operations.
A class for handling file names.
virtual bool mkDir(const fileName &, mode_t=0777) const
virtual bool rm(const fileName &) const
virtual mode_t mode(const fileName &, const bool followLink=true) const
fileName filePathInfo(const bool checkGlobal, const bool isFile, const IOobject &io, const bool search) const
virtual bool mvBak(const fileName &, const std::string &ext="bak") const
virtual fileName dirPath(const bool checkGlobal, const IOobject &io, const bool search) const
virtual refPtr< dirIndexList > lookupProcessorsPath(const fileName &) const
virtual bool chMod(const fileName &, const mode_t) const
virtual fileName filePath(const bool checkGlobal, const IOobject &io, const word &typeName, const bool search) const
Registry of regIOobjects.
virtual off_t fileSize(const fileName &, const bool followLink=true) const
word format(conversionProperties.get< word >("format"))
virtual bool readHeader(IOobject &, const fileName &, const word &typeName) const
virtual ~uncollatedFileOperation()=default
virtual double highResLastModified(const fileName &, const bool followLink=true) const
virtual bool mv(const fileName &src, const fileName &dst, const bool followLink=false) const
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual fileNameList readObjects(const objectRegistry &db, const fileName &instance, const fileName &local, word &newInstance) const
virtual autoPtr< ISstream > NewIFstream(const fileName &) const
virtual bool read(regIOobject &, const bool masterOnly, const IOstreamOption::streamFormat format, const word &typeName) const
virtual fileNameList readDir(const fileName &, const fileName::Type=fileName::FILE, const bool filtergz=true, const bool followLink=true) const
virtual bool isDir(const fileName &, const bool followLink=true) const
virtual bool rmDir(const fileName &dir, const bool silent=false) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
fileOperation that assumes file operations are local.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual bool ln(const fileName &src, const fileName &dst) const
uncollatedFileOperation(bool verbose)
fileName search(const word &file, const fileName &directory)
virtual bool exists(const fileName &, const bool checkGzip=true, const bool followLink=true) const
virtual autoPtr< ISstream > readStream(regIOobject &, const fileName &, const word &typeName, const bool procValid=true) const
virtual bool cp(const fileName &src, const fileName &dst, const bool followLink=true) const
virtual autoPtr< OSstream > NewOFstream(const fileName &pathname, IOstreamOption streamOpt=IOstreamOption(), const bool valid=true) const
virtual bool isFile(const fileName &, const bool checkGzip=true, const bool followLink=true) const
virtual fileName::Type type(const fileName &, const bool followLink=true) const
A class for managing references or pointers (no reference counting)
virtual time_t lastModified(const fileName &, const bool followLink=true) const