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

Public Member Functions

 SourceDir (SourceDir *parent, const QString &name)
 
QList< SourceDir > & directories ()
 
SourceFilefile (const QString &fileName)
 
QList< SourceFile > & files ()
 
bool hasFile (const QString &fileName) const
 
bool hasSubDir (const QString &subDirName) const
 
const QString & name () const
 
QString path () const
 
QList< SourceFile * > recursiveFiles ()
 Recursively lists all files from this directory and its sub directories. More...
 
SourceDirsubDir (const QString &subDirName)
 

Private Member Functions

template<typename T >
T * find (const QString &name, QList< T > &container, bool createIfNotFound)
 
SourceDirfindDirectories (const QString &name, bool createIfNotFound)
 

Private Attributes

QList< SourceDirdirectories_
 
QList< SourceFilefiles_
 
QString name_
 
SourceDirparent_ {}
 

Constructor & Destructor Documentation

◆ SourceDir()

Export::SourceDir::SourceDir ( SourceDir parent,
const QString &  name 
)

Member Function Documentation

◆ directories()

QList< SourceDir > & Export::SourceDir::directories ( )
inline

◆ file()

SourceFile & Export::SourceDir::file ( const QString &  fileName)

◆ files()

QList< SourceFile > & Export::SourceDir::files ( )
inline

◆ find()

template<typename T >
T * Export::SourceDir::find ( const QString &  name,
QList< T > &  container,
bool  createIfNotFound 
)
private

◆ findDirectories()

SourceDir * Export::SourceDir::findDirectories ( const QString &  name,
bool  createIfNotFound 
)
private

◆ hasFile()

bool Export::SourceDir::hasFile ( const QString &  fileName) const

◆ hasSubDir()

bool Export::SourceDir::hasSubDir ( const QString &  subDirName) const

◆ name()

const QString & Export::SourceDir::name ( ) const
inline

◆ path()

QString Export::SourceDir::path ( ) const
inline

◆ recursiveFiles()

QList< SourceFile * > Export::SourceDir::recursiveFiles ( )

Recursively lists all files from this directory and its sub directories.

◆ subDir()

SourceDir & Export::SourceDir::subDir ( const QString &  subDirName)

Member Data Documentation

◆ directories_

QList<SourceDir> Export::SourceDir::directories_
private

◆ files_

QList<SourceFile> Export::SourceDir::files_
private

◆ name_

QString Export::SourceDir::name_
private

◆ parent_

SourceDir* Export::SourceDir::parent_ {}
private