Public Types | Public Member Functions | Protected Attributes | Private Attributes | List of all members
DirEntry Class Reference

#include <filedef.h>

Inheritance diagram for DirEntry:
Directory

Public Types

enum  EntryKind { Dir, File }
 

Public Member Functions

 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
 

Protected Attributes

DirEntrym_parent
 
QCString m_name
 

Private Attributes

EntryKind m_kind
 
FileDefm_fd
 
bool m_isLast
 

Detailed Description

Class representing an entry (file or sub directory) in a directory

Definition at line 276 of file filedef.h.

Member Enumeration Documentation

Enumerator
Dir 
File 

Definition at line 279 of file filedef.h.

Constructor & Destructor Documentation

DirEntry::DirEntry ( DirEntry parent,
FileDef fd 
)
inline

Definition at line 280 of file filedef.h.

281  : m_parent(parent), m_name(fd->name()), m_kind(File), m_fd(fd),
282  m_isLast(FALSE) { }
EntryKind m_kind
Definition: filedef.h:300
const bool FALSE
Definition: qglobal.h:370
QCString name() const
Definition: filedef.cpp:1193
bool m_isLast
Definition: filedef.h:302
QCString m_name
Definition: filedef.h:297
FileDef * m_fd
Definition: filedef.h:301
DirEntry * m_parent
Definition: filedef.h:296
DirEntry::DirEntry ( DirEntry parent,
QCString  name 
)
inline

Definition at line 283 of file filedef.h.

284  : m_parent(parent), m_name(name), m_kind(Dir),
285  m_fd(0), m_isLast(FALSE) { }
EntryKind m_kind
Definition: filedef.h:300
const bool FALSE
Definition: qglobal.h:370
bool m_isLast
Definition: filedef.h:302
QCString m_name
Definition: filedef.h:297
FileDef * m_fd
Definition: filedef.h:301
DirEntry * m_parent
Definition: filedef.h:296
virtual DirEntry::~DirEntry ( )
inlinevirtual

Definition at line 286 of file filedef.h.

286 { }

Member Function Documentation

FileDef* DirEntry::file ( ) const
inline

Definition at line 288 of file filedef.h.

288 { return m_fd; }
FileDef * m_fd
Definition: filedef.h:301
bool DirEntry::isLast ( ) const
inline

Definition at line 289 of file filedef.h.

289 { return m_isLast; }
bool m_isLast
Definition: filedef.h:302
EntryKind DirEntry::kind ( ) const
inline

Definition at line 287 of file filedef.h.

287 { return m_kind; }
EntryKind m_kind
Definition: filedef.h:300
QCString DirEntry::name ( ) const
inline

Definition at line 292 of file filedef.h.

292 { return m_name; }
QCString m_name
Definition: filedef.h:297
DirEntry* DirEntry::parent ( ) const
inline

Definition at line 291 of file filedef.h.

291 { return m_parent; }
DirEntry * m_parent
Definition: filedef.h:296
QCString DirEntry::path ( ) const
inline

Definition at line 293 of file filedef.h.

293 { return parent() ? parent()->path()+"/"+name() : name(); }
DirEntry * parent() const
Definition: filedef.h:291
QCString name() const
Definition: filedef.h:292
QCString path() const
Definition: filedef.h:293
void DirEntry::setLast ( bool  b)
inline

Definition at line 290 of file filedef.h.

290 { m_isLast=b; }
bool m_isLast
Definition: filedef.h:302
static bool * b
Definition: config.cpp:1043

Member Data Documentation

FileDef* DirEntry::m_fd
private

Definition at line 301 of file filedef.h.

bool DirEntry::m_isLast
private

Definition at line 302 of file filedef.h.

EntryKind DirEntry::m_kind
private

Definition at line 300 of file filedef.h.

QCString DirEntry::m_name
protected

Definition at line 297 of file filedef.h.

DirEntry* DirEntry::m_parent
protected

Definition at line 296 of file filedef.h.


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