libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::IO::Directory Class Reference

A handler to the content of a directory. More...

#include <CRNIO.h>

Public Member Functions

 Directory (const Path &path)
 Constructor. More...
 
const std::vector< Path > & GetFiles () const
 Returns the list of files. More...
 
const std::vector< Path > & GetDirs () const
 Returns the list of directories. More...
 

Detailed Description

A handler to the content of a directory.

A Directory object contains a list of files and a list of subdirectories

Definition at line 116 of file CRNIO.h.

Constructor & Destructor Documentation

IO::Directory::Directory ( const Path path)

Constructor.

Reads the content of a directory

Exceptions
ExceptionIOcannot open directory
Parameters
[in]paththe path of the directory to read

Definition at line 311 of file CRNIO.cpp.

Member Function Documentation

const std::vector<Path>& crn::IO::Directory::GetDirs ( ) const
inline

Returns the list of directories.

Definition at line 124 of file CRNIO.h.

const std::vector<Path>& crn::IO::Directory::GetFiles ( ) const
inline

Returns the list of files.

Definition at line 122 of file CRNIO.h.


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