cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
File visitor that calls a function. More...
#include <cppfs/include/cppfs/FunctionalFileVisitor.h>
Public Types | |
using | VisitFunc = std::function< bool(FileHandle &)> |
Public Member Functions | |
FunctionalFileVisitor () | |
Constructor. More... | |
FunctionalFileVisitor (VisitFunc funcFileEntry) | |
Constructor. More... | |
FunctionalFileVisitor (VisitFunc funcFile, VisitFunc funcDirectory) | |
Constructor. More... | |
virtual | ~FunctionalFileVisitor () |
Destructor. More... | |
Public Member Functions inherited from cppfs::FileVisitor | |
FileVisitor () | |
Constructor. More... | |
virtual | ~FileVisitor () |
Destructor. More... | |
Protected Member Functions | |
virtual bool | onFileEntry (FileHandle &fh) override |
Called on each file entry (files and directories) More... | |
virtual bool | onFile (FileHandle &fh) override |
Called on each file. More... | |
virtual bool | onDirectory (FileHandle &fh) override |
Called on each directory. More... | |
Protected Attributes | |
VisitFunc | m_funcFileEntry |
VisitFunc | m_funcFile |
VisitFunc | m_funcDirectory |
File visitor that calls a function.
using cppfs::FunctionalFileVisitor::VisitFunc = std::function<bool(FileHandle &)> |
cppfs::FunctionalFileVisitor::FunctionalFileVisitor | ( | ) |
Constructor.
cppfs::FunctionalFileVisitor::FunctionalFileVisitor | ( | VisitFunc | funcFileEntry | ) |
Constructor.
[in] | funcFileEntry | Function that is call on each file entry (files and directories) |
Constructor.
[in] | funcFile | Function that is call on each file |
[in] | funcDirectory | Function that is call on each directory |
|
virtual |
Destructor.
|
overrideprotectedvirtual |
Called on each file entry (files and directories)
[in] | fh | Handle to file or directory |
Reimplemented from cppfs::FileVisitor.
|
overrideprotectedvirtual |
Called on each file.
[in] | fh | Handle to file |
Reimplemented from cppfs::FileVisitor.
|
overrideprotectedvirtual |
Called on each directory.
[in] | fh | Handle to directory |
Reimplemented from cppfs::FileVisitor.
|
protected |
|
protected |
|
protected |