cppfs  1.2.0.5b71c2c98fb9
Cross-platform C++ file system library supporting multiple backends (Local-FS, SSH)
Public Types | Public Member Functions | Protected Attributes | List of all members
cppfs::Change Class Reference

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...
 
Changeoperator= (const Change &change)
 Copy operator. More...
 
Changeoperator= (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...
 

Detailed Description

Representation of one change to a directory tree.

Member Enumeration Documentation

Type of operation on the file system.

Enumerator
None 

No operation.

CopyFile 

A file has been added or modified.

CopyDir 

A directory tree has been added.

RemoveFile 

A file has been removed.

RemoveDir 

A directory tree has been removed.

Constructor & Destructor Documentation

cppfs::Change::Change ( )

Constructor.

cppfs::Change::Change ( Operation  operation,
const std::string &  path 
)

Constructor.

Parameters
[in]operationOperation type
[in]pathPath on which the operation takes place
cppfs::Change::Change ( Operation  operation,
std::string &&  path 
)

Constructor.

Parameters
[in]operationOperation type
[in]pathPath on which the operation takes place
cppfs::Change::Change ( const Change change)

Copy constructor.

Parameters
[in]changeOther change
cppfs::Change::Change ( Change &&  change)

Move constructor.

Parameters
[in]changeOther change
cppfs::Change::~Change ( )

Destructor.

Member Function Documentation

Change& cppfs::Change::operator= ( const Change change)

Copy operator.

Parameters
[in]changeOther change
Change& cppfs::Change::operator= ( Change &&  change)

Move operator.

Parameters
[in]changeOther change
std::string cppfs::Change::toString ( ) const

Get string representation of the change.

Returns
String representation of the change
Operation cppfs::Change::operation ( ) const

Get operation.

Returns
Operation type
const std::string& cppfs::Change::path ( ) const

Get path.

Returns
Path on which the operation takes place

Member Data Documentation

Operation cppfs::Change::m_operation
protected

Operation type.

std::string cppfs::Change::m_path
protected

Path on which the operation takes place.


The documentation for this class was generated from the following file: