cppfs
1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
|
Representation of one change to a directory tree. More...
#include <cppfs/include/cppfs/Change.h>
Public Types | |
enum | Operation { None = 0, CopyFile, CopyDir, RemoveFile, RemoveDir } |
Type of operation on the file system. More... | |
Public Member Functions | |
Change () | |
Constructor. More... | |
Change (Operation operation, const std::string &path) | |
Constructor. More... | |
Change (Operation operation, std::string &&path) | |
Constructor. More... | |
Change (const Change &change) | |
Copy constructor. More... | |
Change (Change &&change) | |
Move constructor. More... | |
~Change () | |
Destructor. More... | |
Change & | operator= (const Change &change) |
Copy operator. More... | |
Change & | operator= (Change &&change) |
Move operator. More... | |
std::string | toString () const |
Get string representation of the change. More... | |
Operation | operation () const |
Get operation. More... | |
const std::string & | path () const |
Get path. More... | |
Protected Attributes | |
Operation | m_operation |
Operation type. More... | |
std::string | m_path |
Path on which the operation takes place. More... | |
Representation of one change to a directory tree.
cppfs::Change::Change | ( | ) |
Constructor.
cppfs::Change::Change | ( | Operation | operation, |
const std::string & | path | ||
) |
Constructor.
[in] | operation | Operation type |
[in] | path | Path on which the operation takes place |
cppfs::Change::Change | ( | Operation | operation, |
std::string && | path | ||
) |
Constructor.
[in] | operation | Operation type |
[in] | path | Path on which the operation takes place |
cppfs::Change::Change | ( | const Change & | change | ) |
Copy constructor.
[in] | change | Other change |
cppfs::Change::Change | ( | Change && | change | ) |
Move constructor.
[in] | change | Other change |
cppfs::Change::~Change | ( | ) |
Destructor.
Copy operator.
[in] | change | Other change |
Move operator.
[in] | change | Other change |
std::string cppfs::Change::toString | ( | ) | const |
Get string representation of the change.
Operation cppfs::Change::operation | ( | ) | const |
Get operation.
const std::string& cppfs::Change::path | ( | ) | const |
Get path.
|
protected |
Operation type.
|
protected |
Path on which the operation takes place.