WSF
wizard::RevisionChange Struct Reference

#include <RevisionChange.hpp>

Public Types

enum  Type {
  cNO_CHANGE = 0 , cNEW_FILE = 1 , cREMOVED_FILE = 2 , cCHANGE_DELTA = 3 ,
  cCHANGE_FULL = 4
}

Public Member Functions

 RevisionChange ()
 RevisionChange (Type aKind, const std::string &aFilePath, const QByteArray &aChangeBytes)
 RevisionChange (Type aKind, const std::string &aFilePath, const QVector< TextSourceChange > &aChanges)
 RevisionChange (Type aKind, const std::string &aFilePath, const char *aDataPtr, int aDataSize=-1)
 RevisionChange (Type aKind, const std::string &aFilePath, const UtTextDocument &aDoc)
 RevisionChange (Type aKind, const std::string &aFilePath)
bool operator== (const RevisionChange &aRhs)

Public Attributes

Type kind
std::string filePath
QByteArray changeBytes

Detailed Description

A struct that represents the changes made to a file in a revision in the Change History database.

Member Enumeration Documentation

◆ Type

Enumerator
cNO_CHANGE 
cNEW_FILE 
cREMOVED_FILE 
cCHANGE_DELTA 
cCHANGE_FULL 

Constructor & Destructor Documentation

◆ RevisionChange() [1/6]

wizard::RevisionChange::RevisionChange ( )

References changeBytes, cNO_CHANGE, filePath, and kind.

Referenced by operator==().

◆ RevisionChange() [2/6]

wizard::RevisionChange::RevisionChange ( RevisionChange::Type aKind,
const std::string & aFilePath,
const QByteArray & aChangeBytes )

References changeBytes, filePath, and kind.

◆ RevisionChange() [3/6]

wizard::RevisionChange::RevisionChange ( RevisionChange::Type aKind,
const std::string & aFilePath,
const QVector< TextSourceChange > & aChanges )

References changeBytes, filePath, and kind.

◆ RevisionChange() [4/6]

wizard::RevisionChange::RevisionChange ( RevisionChange::Type aKind,
const std::string & aFilePath,
const char * aDataPtr,
int aDataSize = -1 )

References changeBytes, filePath, and kind.

◆ RevisionChange() [5/6]

wizard::RevisionChange::RevisionChange ( RevisionChange::Type aKind,
const std::string & aFilePath,
const UtTextDocument & aDoc )

References changeBytes, filePath, and kind.

◆ RevisionChange() [6/6]

wizard::RevisionChange::RevisionChange ( RevisionChange::Type aKind,
const std::string & aFilePath )

References changeBytes, filePath, and kind.

Member Function Documentation

◆ operator==()

bool wizard::RevisionChange::operator== ( const RevisionChange & aRhs)

Member Data Documentation

◆ changeBytes

◆ filePath

◆ kind


The documentation for this struct was generated from the following files:
Copyrights Multiple, All Rights Reserved