Yate
Public Member Functions | List of all members
ClientFileItem Class Reference

A file/directory item. More...

#include <yatecbase.h>

Inheritance diagram for ClientFileItem:
GenObject ClientDir ClientFile

Public Member Functions

 ClientFileItem (const char *name)
 
const Stringname () const
 
virtual ClientDirdirectory ()
 
virtual ClientFilefile ()
 
virtual const StringtoString () const
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

A file/directory item.

Base class for file/dir items

Constructor & Destructor Documentation

ClientFileItem ( const char *  name)
inline

Constructor

Parameters
nameItem name

Member Function Documentation

virtual ClientDir* directory ( )
inlinevirtual

Check if this item is a directory

Returns
ClientDir pointer or 0

Reimplemented in ClientDir.

virtual ClientFile* file ( )
inlinevirtual

Check if this item is a file

Returns
ClientDir pointer or 0

Reimplemented in ClientFile.

const String& name ( ) const
inline

Retrieve the item name

Returns
Item name

Referenced by ClientFileItem::toString().

virtual const String& toString ( ) const
inlinevirtual

Retrieve the item name

Returns
Item name

Reimplemented from GenObject.

References ClientFileItem::name().


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