LibPkg
Classes | Public Member Functions | List of all members
pkg::dirstream Class Reference

A class for reading directories. More...

#include <dirstream.h>

Classes

struct  object
 

Public Member Functions

 dirstream (const string &pathname, const string &pattern="*")
 Construct directory stream. More...
 
 ~dirstream ()
 Destroy directory stream. More...
 
 operator bool ()
 Test state of directory stream. More...
 
dirstreamoperator>> (object &obj)
 Read file information. More...
 

Detailed Description

A class for reading directories.

Constructor & Destructor Documentation

◆ dirstream()

pkg::dirstream::dirstream ( const string &  pathname,
const string &  pattern = "*" 
)

Construct directory stream.

Parameters
pathnamethe pathname of the directory
patternthe pattern to be matched

◆ ~dirstream()

pkg::dirstream::~dirstream ( )

Destroy directory stream.

Member Function Documentation

◆ operator bool()

pkg::dirstream::operator bool ( )

Test state of directory stream.

Returns
true if stream state is good, otherwise false

◆ operator>>()

dirstream & pkg::dirstream::operator>> ( object obj)

The documentation for this class was generated from the following files:

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)