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

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< Changem_changes
 List of changes. More...
 

Detailed Description

Representation of changes to a directory tree.

Constructor & Destructor Documentation

cppfs::Diff::Diff ( )

Constructor.

cppfs::Diff::~Diff ( )

Destructor.

Member Function Documentation

void cppfs::Diff::clear ( )

Clear data.

const std::vector<Change>& cppfs::Diff::changes ( ) const

Get changes.

Returns
List of changes
void cppfs::Diff::add ( const Change change)

Add change.

Parameters
[in]changeChange
void cppfs::Diff::add ( Change &&  change)

Add change.

Parameters
[in]changeChange
void cppfs::Diff::add ( Change::Operation  operation,
const std::string &  path 
)

Add change.

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

Add change.

Parameters
[in]operationOperation type
[in]pathPath on which the operation takes place
void cppfs::Diff::print ( std::ostream &  stream)

Print changes to stream.

Parameters
[in]streamThe output stream
void cppfs::Diff::print ( )

Print changes to console.

Member Data Documentation

std::vector<Change> cppfs::Diff::m_changes
protected

List of changes.


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