ddc
Public Member Functions | Protected Attributes | List of all members
CSourceFileHolder Class Reference

#include <Concordance.h>

Inheritance diagram for CSourceFileHolder:
Inheritance graph
[legend]

Public Member Functions

 CSourceFileHolder ()
 
bool SaveSourceFileList (string FileName)
 Saves the list of source files to file *.con. More...
 
void DeleteSourceFile (long ItemNo)
 Deletes a source file. More...
 
void AddSourceFile (const char *FileName)
 Adds a source file. More...
 
void DeleteAllSourceFiles ()
 deletes all Source File Definition source files More...
 
size_t GetSourceFilesCount () const
 
string GetSourceFile (size_t FileNo) const
 get the source file by the index More...
 
void AddSourceFilesFrom (const CSourceFileHolder &X)
 
void ReadSourceFileList (string FileName)
 
int FoundNotExistedFile () const
 finds a source file which does not exist, if there is no such file, returns -1 More...
 
bool IsModified () const
 

Protected Attributes

vector< string > m_SourceFiles
 Source files More...
 
bool m_bModifiedListOfFiles
 

Detailed Description

CSourceFileHolder holds the list of source files

Constructor & Destructor Documentation

◆ CSourceFileHolder()

CSourceFileHolder::CSourceFileHolder ( void  )

Member Function Documentation

◆ SaveSourceFileList()

bool CSourceFileHolder::SaveSourceFileList ( string  FileName)

Saves the list of source files to file *.con.

References m_bModifiedListOfFiles, and m_SourceFiles.

Referenced by CConcIndexator::CreateAsUnion(), and CConcIndexator::SplitProject().

Here is the caller graph for this function:

◆ DeleteSourceFile()

void CSourceFileHolder::DeleteSourceFile ( long  ItemNo)

Deletes a source file.

References m_bModifiedListOfFiles, and m_SourceFiles.

◆ AddSourceFile()

void CSourceFileHolder::AddSourceFile ( const char *  FileName)

◆ DeleteAllSourceFiles()

void CSourceFileHolder::DeleteAllSourceFiles ( )

deletes all Source File Definition source files

References m_bModifiedListOfFiles, and m_SourceFiles.

Referenced by CConcIndexator::CreateAsUnion().

Here is the caller graph for this function:

◆ GetSourceFilesCount()

size_t CSourceFileHolder::GetSourceFilesCount ( ) const

get the number of source files

Note
this may greater than the actual number of file-breaks as indexed by the HitBorder class, in particular if empty files were ignored during indexing.

References m_SourceFiles.

Referenced by ConcIndexatorInvoker::BuildIndexStart(), and CDDCLeafServer::handle__info().

Here is the caller graph for this function:

◆ GetSourceFile()

string CSourceFileHolder::GetSourceFile ( size_t  FileNo) const

get the source file by the index

References m_SourceFiles.

Referenced by ConcIndexatorInvoker::BuildIndexStart(), and ConcIndexatorInvoker::IndexFiles().

Here is the caller graph for this function:

◆ AddSourceFilesFrom()

void CSourceFileHolder::AddSourceFilesFrom ( const CSourceFileHolder X)

References m_bModifiedListOfFiles, and m_SourceFiles.

Referenced by CConcIndexator::CreateAsUnion().

Here is the caller graph for this function:

◆ ReadSourceFileList()

void CSourceFileHolder::ReadSourceFileList ( string  FileName)

References Format(), m_SourceFiles, RelativeFileName(), and Trim().

Referenced by CConcordance::LoadSourceFilesAndOptions().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FoundNotExistedFile()

int CSourceFileHolder::FoundNotExistedFile ( ) const

finds a source file which does not exist, if there is no such file, returns -1

References m_SourceFiles.

Referenced by ConcIndexatorInvoker::BuildIndexStart().

Here is the caller graph for this function:

◆ IsModified()

bool CSourceFileHolder::IsModified ( ) const

Member Data Documentation

◆ m_SourceFiles

vector<string> CSourceFileHolder::m_SourceFiles
protected

◆ m_bModifiedListOfFiles

bool CSourceFileHolder::m_bModifiedListOfFiles
protected

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