Kyoto Cabinet
Public Member Functions
kyotocabinet::DirStream Class Reference

Directory stream abstraction. More...

#include <kcfile.h>

List of all members.

Public Member Functions

 DirStream ()
 Default constructor.
 ~DirStream ()
 Destructor.
bool open (const std::string &path)
 Open a directory.
bool close ()
 Close the file.
bool read (std::string *path)
 Read the next file in the directory.

Detailed Description

Directory stream abstraction.


Constructor & Destructor Documentation

Default constructor.

Destructor.

Note:
If the file is not closed, it is closed implicitly.

Member Function Documentation

bool kyotocabinet::DirStream::open ( const std::string &  path)

Open a directory.

Parameters:
paththe path of a directory.
Returns:
true on success, or false on failure.

Close the file.

Returns:
true on success, or false on failure.
bool kyotocabinet::DirStream::read ( std::string *  path)

Read the next file in the directory.

Parameters:
patha string to store the file path.
Returns:
true on success, or false on failure.