Public Member Functions | Private Attributes | List of all members
Directory Class Reference

#include <filedef.h>

Inheritance diagram for Directory:
DirEntry

Public Member Functions

 Directory (Directory *parent, const QCString &name)
 
virtual ~Directory ()
 
void addChild (DirEntry *d)
 
QList< DirEntry > & children ()
 
void rename (const QCString &name)
 
void reParent (Directory *parent)
 
- Public Member Functions inherited from DirEntry
 DirEntry (DirEntry *parent, FileDef *fd)
 
 DirEntry (DirEntry *parent, QCString name)
 
virtual ~DirEntry ()
 
EntryKind kind () const
 
FileDeffile () const
 
bool isLast () const
 
void setLast (bool b)
 
DirEntryparent () const
 
QCString name () const
 
QCString path () const
 

Private Attributes

QList< DirEntrym_children
 

Additional Inherited Members

- Public Types inherited from DirEntry
enum  EntryKind { Dir, File }
 
- Protected Attributes inherited from DirEntry
DirEntrym_parent
 
QCString m_name
 

Detailed Description

Class representing a directory tree of DirEntry objects.

Definition at line 306 of file filedef.h.

Constructor & Destructor Documentation

Directory::Directory ( Directory parent,
const QCString name 
)
inline

Definition at line 309 of file filedef.h.

310  : DirEntry(parent,name)
DirEntry(DirEntry *parent, FileDef *fd)
Definition: filedef.h:280
QList< DirEntry > m_children
Definition: filedef.h:319
void setAutoDelete(bool enable)
Definition: qlist.h:99
const bool TRUE
Definition: qglobal.h:371
virtual Directory::~Directory ( )
inlinevirtual

Definition at line 312 of file filedef.h.

312 {}

Member Function Documentation

void Directory::addChild ( DirEntry d)
inline

Definition at line 313 of file filedef.h.

313 { m_children.append(d); d->setLast(TRUE); }
void append(const type *d)
Definition: qlist.h:73
void setLast(bool b)
Definition: filedef.h:290
QList< DirEntry > m_children
Definition: filedef.h:319
const bool TRUE
Definition: qglobal.h:371
QList<DirEntry>& Directory::children ( )
inline

Definition at line 314 of file filedef.h.

314 { return m_children; }
QList< DirEntry > m_children
Definition: filedef.h:319
void Directory::rename ( const QCString name)
inline

Definition at line 315 of file filedef.h.

315 { m_name=name; }
QCString name() const
Definition: filedef.h:292
QCString m_name
Definition: filedef.h:297
void Directory::reParent ( Directory parent)
inline

Definition at line 316 of file filedef.h.

316 { m_parent=parent; }
DirEntry * parent() const
Definition: filedef.h:291
DirEntry * m_parent
Definition: filedef.h:296

Member Data Documentation

QList<DirEntry> Directory::m_children
private

Definition at line 319 of file filedef.h.


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