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

edg::workload::common::ldif2classad::LDAPForwardIterator Class Reference

A forward iterator for LDAP Objects. More...

List of all members.

Public Methods

 LDAPForwardIterator (generic_search_result_t *results)
 Constructor. More...

generic_result_entry_tfirst ()
 Rewinds the LDAP forward iterator and returns the first entry. More...

generic_result_entry_tnext ()
 Moves the iterator to next result entry. More...

generic_result_entry_tcurrent () const
 Gets the current result entry. More...

std::string ldap_dn ()
 DN extractor. More...

const LDIFObjectoperator * ()
 LDIFObject extractor. More...

 ~LDAPForwardIterator ()
 Destructor.


Detailed Description

A forward iterator for LDAP Objects.

It applies to LDAP Query results a powerful means of reading.

Author:
Salvatore Monforte salvatore.monforte@ct.infn.it


Constructor & Destructor Documentation

LDAPForwardIterator generic_search_result_t   results
 

Constructor.

Parameters:
results  pointer to LDAP result to iterate.


Member Function Documentation

generic_result_entry_t* current   const
 

Gets the current result entry.

Returns:
a pointer to the current result entry the iterator points to.

generic_result_entry_t* first  
 

Rewinds the LDAP forward iterator and returns the first entry.

After use of this method, the forward iterator is addressed to the first query result record.

Returns:
a pointer to the first result entry, NULL is no entry is available.

std::string ldap_dn  
 

DN extractor.

Returns:
the distinguished name of the result entry the iterator points to.

generic_result_entry_t* next  
 

Moves the iterator to next result entry.

Returns:
a pointer to the next result entry, or NULL if no further entry is available.

const LDIFObject& operator *  
 

LDIFObject extractor.

Returns:
a reference to the LDIFObject the iterator points to.


The documentation for this class was generated from the following file:
Generated on Fri May 14 14:18:26 2004 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002