Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Attributes
FilePersistence::Commit Class Reference

Public Member Functions

 Commit ()
 
 ~Commit ()
 
void addFile (QString relativePath, qint64 size, std::unique_ptr< char[], CommitFileContentDeleter > content)
 
void addFile (QString relativePath, qint64 size, std::unique_ptr< char[]> content)
 
QList< CommitFile * > files () const
 
bool getFileContent (QString fileName, const char *&content, int &contentSize, bool exactFileNameMatching) const
 
bool isValidMatch (const char *content, qint64 size, const char *indexOfId, int &start, int &end, bool findChildrenByParentId) const
 
CommitMetaData metaData () const
 
QStringList nodeLinesFromId (Model::NodeIdType id, bool findChildrenByParentId=false) const
 
void setMetaData (CommitMetaData data)
 

Private Attributes

QHash< QString, CommitFile * > files_
 
CommitMetaData information_
 

Constructor & Destructor Documentation

◆ Commit()

FilePersistence::Commit::Commit ( )

◆ ~Commit()

FilePersistence::Commit::~Commit ( )

Member Function Documentation

◆ addFile() [1/2]

void FilePersistence::Commit::addFile ( QString  relativePath,
qint64  size,
std::unique_ptr< char[], CommitFileContentDeleter content 
)

◆ addFile() [2/2]

void FilePersistence::Commit::addFile ( QString  relativePath,
qint64  size,
std::unique_ptr< char[]>  content 
)

◆ files()

QList< CommitFile * > FilePersistence::Commit::files ( ) const
inline

◆ getFileContent()

bool FilePersistence::Commit::getFileContent ( QString  fileName,
const char *&  content,
int &  contentSize,
bool  exactFileNameMatching 
) const

◆ isValidMatch()

bool FilePersistence::Commit::isValidMatch ( const char *  content,
qint64  size,
const char *  indexOfId,
int &  start,
int &  end,
bool  findChildrenByParentId 
) const

◆ metaData()

CommitMetaData FilePersistence::Commit::metaData ( ) const
inline

◆ nodeLinesFromId()

QStringList FilePersistence::Commit::nodeLinesFromId ( Model::NodeIdType  id,
bool  findChildrenByParentId = false 
) const

◆ setMetaData()

void FilePersistence::Commit::setMetaData ( CommitMetaData  data)
inline

Member Data Documentation

◆ files_

QHash<QString, CommitFile*> FilePersistence::Commit::files_
private

◆ information_

CommitMetaData FilePersistence::Commit::information_
private