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

LDAPQuery Class Reference

Queries a Database. More...

List of all members.

Public Types

enum  search_scope_t { SCOPE_BASE, SCOPE_ONELEVEL, SCOPE_SUBTREE }

Public Member Functions

 LDAPQuery (LDAPConnection *, const std::string &, const std::vector< std::string > &, int s=SCOPE_SUBTREE)
 Constructor.

 ~LDAPQuery ()
 Destructor.

int scope () const
 Returns scope attribute value.

std::string filter () const
 Returns the applied filter.

const std::vector< std::string > & topics () const
 Returns the topic attribute.

generic_search_result_ttuples () const
 Result Tuples.

bool execute ()
 Execute the query.

std::string what () const


Detailed Description

Queries a Database.

This class uses LDAP Connection base class to query a database for info.

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


Member Enumeration Documentation

enum search_scope_t
 

Enumeration values:
SCOPE_BASE 
SCOPE_ONELEVEL 
SCOPE_SUBTREE 


Constructor & Destructor Documentation

LDAPQuery LDAPConnection ,
const std::string &  ,
const std::vector< std::string > &  ,
int  s = SCOPE_SUBTREE
 

Constructor.

This object queries a database through an LDAP Connection for record satisfing a filter, having a specified scope.

~LDAPQuery  ) 
 

Destructor.


Member Function Documentation

bool execute  ) 
 

Execute the query.

Returns:
whether the query has been correctly ececuted, or not.

std::string filter  )  const [inline]
 

Returns the applied filter.

Returns:
the filter.

int scope  )  const [inline]
 

Returns scope attribute value.

Returns:
the scope.

const std::vector<std::string>& topics  )  const [inline]
 

Returns the topic attribute.

Returns:
the topic.

generic_search_result_t* tuples  )  const
 

Result Tuples.

Returns:
the resulting tuples, NULL if no result is available.

std::string what  )  const
 


The documentation for this class was generated from the following file:
Generated on Wed Mar 1 00:37:56 2006 for COMMON API - configuration, jobid, ldif2classadi, logger, process, requestad, socket++i, task, utilities by doxygen 1.3.5