|
Yate
|
A directory. More...
#include <yatecbase.h>
Protected Attributes | |
| ObjList | m_children |
| bool | m_updated |
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 NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
A directory.
This class holds directory info
Copy constructor. Copy known children types
| other | Source object |
References ClientDir::copyChildren().
| bool addChild | ( | ClientFileItem * | item | ) |
Add an item. Remove another item with the same name if exists
| item | Item to add |
Add a list of children, consume the objects
| list | List of ClientFileItem objects to add |
Build and add a sub-directory if not have one already Replace an existing file with the same name
| name | Directory name |
Build sub directories from path
| path | Directory path |
| sep | Path separator |
|
inline |
Retrieve the children list
Add a copy of known children types
| list | List of ClientFileItem objects to copy |
Referenced by ClientDir::ClientDir().
| ClientFileItem * findChild | ( | const String & | path, |
| const char * | sep = "/" |
||
| ) |
|
inline |
Find a child by name
| name | Item name |
References ObjList::find(), ObjList::get(), and ClientFileItem::name().
| bool treeUpdated | ( | ) | const |
Recursively check if all (sub)directores were updated
|
inline |
Check if children were updated