a folder in the namespace: contains other stream::Entry objects. More...
#include <nstream.h>
Public Types | |
enum | eType { eType_Folder = 1, eType_File = 2, eType_Invalid = 0 } |
Public Member Functions | |
virtual | ~Folder (void) throw () |
virtual smart_ptr< Entry > | getChildByName (IN const char *name)=0 |
get a child entry directly by its name relative to the parent (returns NULL if no such child exists) | |
virtual void | resetIteration (void)=0 |
reset the Folder iteration to point to the first Entry again. | |
virtual smart_ptr< Entry > | getNextChild (void)=0 |
get the next child Entry object. Returns null when done. | |
virtual eType | getType (void) const =0 throw () |
what type of entry is this? | |
virtual const char * | getName (void) const =0 throw () |
this Entry's name in the namespace (that is, relative to the root of the namespace). | |
virtual smart_ptr< Manager > | getManager (void)=0 |
the Manager of this namespace |
a folder in the namespace: contains other stream::Entry objects.
The iteration model for Folders is very primitive. That is intentional. If you want multiple iterators for a given Folder at the same time, create multiple Folder objects. Remember that you may be creating expensive iterators underneath (open directory handles, database cursors, etc.) so in general keeping multiple iterators open at the same time is discouraged anyway.
Notes to users and implementers:
Definition at line 197 of file nstream.h.
enum nstream::Entry::eType [inherited] |
nstream::Folder::~Folder | ( | void | ) | throw () [virtual] |
Definition at line 49 of file nstream.cpp.