![]() |
cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
Representation of changes to a directory tree. More...
#include <cppfs/include/cppfs/Diff.h>
Public Member Functions | |
| Diff () | |
| Constructor. More... | |
| ~Diff () | |
| Destructor. More... | |
| void | clear () |
| Clear data. More... | |
| const std::vector< Change > & | changes () const |
| Get changes. More... | |
| void | add (const Change &change) |
| Add change. More... | |
| void | add (Change &&change) |
| Add change. More... | |
| void | add (Change::Operation operation, const std::string &path) |
| Add change. More... | |
| void | add (Change::Operation operation, std::string &&path) |
| Add change. More... | |
| void | print (std::ostream &stream) |
| Print changes to stream. More... | |
| void | print () |
| Print changes to console. More... | |
Protected Attributes | |
| std::vector< Change > | m_changes |
| List of changes. More... | |
Representation of changes to a directory tree.
| cppfs::Diff::Diff | ( | ) |
Constructor.
| cppfs::Diff::~Diff | ( | ) |
Destructor.
| void cppfs::Diff::clear | ( | ) |
Clear data.
| const std::vector<Change>& cppfs::Diff::changes | ( | ) | const |
Get changes.
| void cppfs::Diff::add | ( | Change::Operation | operation, |
| const std::string & | path | ||
| ) |
Add change.
| [in] | operation | Operation type |
| [in] | path | Path on which the operation takes place |
| void cppfs::Diff::add | ( | Change::Operation | operation, |
| std::string && | path | ||
| ) |
Add change.
| [in] | operation | Operation type |
| [in] | path | Path on which the operation takes place |
| void cppfs::Diff::print | ( | std::ostream & | stream | ) |
Print changes to stream.
| [in] | stream | The output stream |
| void cppfs::Diff::print | ( | ) |
Print changes to console.
|
protected |
List of changes.
1.8.11