ldas-tools-al 2.6.4
|
Read the contents of a directory. More...
#include <Directory.hh>
Classes | |
class | Internals |
Public Types | |
enum | mode_type { MODE_BLOCKING , MODE_NON_BLOCKING } |
Enumerated type specifying the blocking mode. More... | |
typedef std::list< std::string > | block_read_type |
typedef boost::shared_ptr< Internals > | value_type |
Public Member Functions | |
Directory (const std::string &DirName, bool OpenDirectory=true) | |
Constructor. More... | |
~Directory () | |
Destructor. More... | |
void | Close () |
Close the directory. More... | |
const char * | EntryName () const |
int | Fd () const |
const std::string & | Name () const |
mode_type | Mode () const |
void | Mode (mode_type Mode) |
bool | Next () |
void | Next (block_read_type &Entries) |
void | Open () |
Static Public Member Functions | |
static int | Timeout () |
Retrieve the number of seconds any one of the calls should take. More... | |
static void | Timeout (int Value) |
Specify the number of seconds any one of the calls should take. More... | |
Private Member Functions | |
void | eval_request (const int Request) |
Private Attributes | |
value_type | m_internals |
mode_type | m_blocking_mode |
Read the contents of a directory.
This provides a system independent interface to reading the the contents of a directory. It can operate in a blocking or non-blocking mode. By default, it operates in non-blocking mode.
typedef std::list< std::string > LDASTools::AL::Directory::block_read_type |
typedef boost::shared_ptr< Internals > LDASTools::AL::Directory::value_type |
Enumerated type specifying the blocking mode.
This is used by the Mode method to specify the blocking mode the subsequent calls should operate in.
LDASTools::AL::Directory::Directory | ( | const std::string & | DirName, |
bool | OpenDirectory = true |
||
) |
Constructor.
Construct a new instance of this object.
LDASTools::AL::Directory::~Directory | ( | ) |
Destructor.
Release resources back to the system.
void LDASTools::AL::Directory::Close | ( | ) |
Close the directory.
const char * LDASTools::AL::Directory::EntryName | ( | ) | const |
|
inlineprivate |
int LDASTools::AL::Directory::Fd | ( | ) | const |
|
inline |
|
inline |
const std::string & LDASTools::AL::Directory::Name | ( | ) | const |
bool LDASTools::AL::Directory::Next | ( | ) |
Retrieve the next entry. returns true if a valid entry was found, false otherwise
void LDASTools::AL::Directory::Next | ( | block_read_type & | Entries | ) |
void LDASTools::AL::Directory::Open | ( | ) |
|
static |
Retrieve the number of seconds any one of the calls should take.
|
static |
Specify the number of seconds any one of the calls should take.
|
private |
|
private |