Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members  

PLMFileProvider::iterator Class Reference

File provider iterator. More...

#include <PLMFileProvider.hpp>

Inheritance diagram for PLMFileProvider::iterator:

Inheritance graph
[legend]
List of all members.

Public Methods

void First ()
void Last ()
int operator++ ()
void Next ()
int operator-- ()
void Prev ()
int operator!= (const iterator &it)
bool IsNotEnd () const
bool IsAtEnd () const
const char * Name () const
u32 Size () const
time_t Date () const
bool Access (u32 perm_flags) const
bool IsHidden () const
bool IsFile () const
bool IsLink () const
bool IsDir () const

Protected Methods

virtual u32 Index () const

Detailed Description

File provider iterator.

To run through the list of files in the normal order (not sorted). Call PLMFileProvider::Begin() and End() to get an iterator.


Member Function Documentation

void PLMFileProvider::iterator::First   [inline]
 

Move the iterator on the first element of the vector.

void PLMFileProvider::iterator::Last   [inline]
 

Move the iterator on the last element of the vector (one step before the End()).

int PLMFileProvider::iterator::operator++   [inline]
 

Move the iterator on the next element of the vector.

void PLMFileProvider::iterator::Next   [inline]
 

Move the iterator on the next element of the vector.

int PLMFileProvider::iterator::operator--   [inline]
 

Move the iterator on the previous element of the vector.

void PLMFileProvider::iterator::Prev   [inline]
 

Move the iterator on the previous element of the vector.

int PLMFileProvider::iterator::operator!= const iterator &    it [inline]
 

Check if the current iterator and it do not point to the same entry.

bool PLMFileProvider::iterator::IsNotEnd   const [inline]
 

Check if the current position is inside the vector's boundaries.

bool PLMFileProvider::iterator::IsAtEnd   const [inline]
 

Check if the current position is at the end (or beyond).

const char* PLMFileProvider::iterator::Name   const [inline]
 

Get the name of the pointed entry.

u32 PLMFileProvider::iterator::Size   const [inline]
 

Get the file size of the pointed entry.

time_t PLMFileProvider::iterator::Date   const [inline]
 

Get the date and time of the pointed entry.

bool PLMFileProvider::iterator::Access u32    perm_flags const [inline]
 

Check access rights of the pointed entry (read, write, execution).

bool PLMFileProvider::iterator::IsHidden   const [inline]
 

Check if current entry is visible.

bool PLMFileProvider::iterator::IsFile   const [inline]
 

Check if current entry is a regular file (not a directory, not a link).

bool PLMFileProvider::iterator::IsLink   const [inline]
 

Check if current entry is a link (unix only).

bool PLMFileProvider::iterator::IsDir   const [inline]
 

Check if current entry is a directory.

virtual u32 PLMFileProvider::iterator::Index   const [inline, protected, virtual]
 

Get the real index of the element pointed to by the iterator (to reach its content).

Mainly usefull for sorted items.

Reimplemented in PLMFileProvider::siterator.


The documentation for this class was generated from the following file:
  • PLMFileProvider.hpp

Generated by Doxygen 1.2.18 on Tue Oct 26 12:07:38 2004.