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

PLMFileProvider::siterator Class Reference

File iterator (sorted version). More...

#include <PLMFileProvider.hpp>

Inheritance diagram for PLMFileProvider::siterator:

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

Friends

class PLMFileProvider

Detailed Description

File iterator (sorted version).

Used to parse the file list of PLMFileProvider objects, but in a specific order set by a call to Sort().


Member Function Documentation

virtual u32 PLMFileProvider::siterator::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 from PLMFileProvider::iterator.

void PLMFileProvider::iterator::First   [inline, inherited]
 

Move the iterator on the first element of the vector.

void PLMFileProvider::iterator::Last   [inline, inherited]
 

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

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

Move the iterator on the next element of the vector.

void PLMFileProvider::iterator::Next   [inline, inherited]
 

Move the iterator on the next element of the vector.

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

Move the iterator on the previous element of the vector.

void PLMFileProvider::iterator::Prev   [inline, inherited]
 

Move the iterator on the previous element of the vector.

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

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

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

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

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

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

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

Get the name of the pointed entry.

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

Get the file size of the pointed entry.

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

Get the date and time of the pointed entry.

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

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

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

Check if current entry is visible.

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

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

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

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

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

Check if current entry is a directory.


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:44 2004.