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

edg::workload::common::ldif2classad::LDAPQuery Class Reference

Queries a Database. More...

List of all members.

Public Methods

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

 ~LDAPQuery ()
 Destructor.

int scope () const
 Returns scope attribute value. More...

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

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

generic_search_result_ttuples () const
 Result Tuples. More...

bool execute ()
 Execute the query. More...


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


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.


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.


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