class ClientDir

A directory. More...

Full nameTelEngine::ClientDir
Definition#include <yatecbase.h>
InheritsTelEngine::ClientFileItem [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Members


Detailed Description

This class holds directory info

inline  ClientDir (const char* name)

ClientDir

Constructor

Parameters:
nameDirectory name

inline  ClientDir (const ClientDir& other)

ClientDir

Copy constructor. Copy known children types

Parameters:
otherSource object

inline ObjList&  children ()

children

Retrieve the children list

Returns: Children list

inline bool  updated ()

updated

[const]

Check if children were updated

Returns: True if children list was updated

inline void  updated (bool on)

updated

Set children updated flag

Returns: New value for children updated flag

bool  treeUpdated ()

treeUpdated

[const]

Recursively check if all (sub)directores were updated

Returns: True if all (sub)directores were updated

ClientDir*  addDir (const String& name)

addDir

Build and add a sub-directory if not have one already Replace an existing file with the same name

Parameters:
nameDirectory name

Returns: ClientDir pointer or 0 on failure

ClientDir*  addDirPath (const String& path, const char* sep = "/")

addDirPath

Build sub directories from path

Parameters:
pathDirectory path
sepPath separator

Returns: ClientDir pointer or 0 on failure

void  copyChildren (const ObjList& list)

copyChildren

Add a copy of known children types

Parameters:
listList of ClientFileItem objects to copy

void  addChildren (ObjList& list)

addChildren

Add a list of children, consume the objects

Parameters:
listList of ClientFileItem objects to add

bool  addChild (ClientFileItem* item)

addChild

Add an item. Remove another item with the same name if exists

Parameters:
itemItem to add

Returns: True on success

ClientFileItem*  findChild (const String& path, const char* sep = "/")

findChild

Find a child by path

Parameters:
pathItem path
sepPath separator

Returns: ClientFileItem pointer or 0

inline ClientFileItem*  findChildName (const String& name)

findChildName

Find a child by name

Parameters:
nameItem name

Returns: ClientFileItem pointer or 0

ClientDir*  directory ()

directory

[virtual]

Check if this item is a directory

Returns: ClientDir pointer

Reimplemented from ClientFileItem.

ObjList m_children

m_children

[protected]

bool m_updated

m_updated

[protected]


Generated by: paulc on bussard on Thu Feb 26 17:49:11 2015, using kdoc 2.0a54.