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

edg::workload::common::ldif2classad::FileStreamConnection Class Reference

A Concrete connection to a file as information source. More...

Inheritance diagram for edg::workload::common::ldif2classad::FileStreamConnection:

edg::workload::common::ldif2classad::LDAPConnection List of all members.

Public Methods

 FileStreamConnection (const std::string &)
 Constructor.

virtual ~FileStreamConnection ()
 Distructor.

bool open ()
 Opens the source data file and creates a memory representation of its data. More...

bool close ()
 Closes the source data file. More...

generic_search_result_texecute (LDAPQuery *q)
 Performs search operations using ldap_search_st() allowing a timeout to be specified. More...

bool is_established () const
 Conenction test wheter established or not. More...


Detailed Description

A Concrete connection to a file as information source.

This class implements all virtual superclass methods in order to provide a fake concrete connection to a file containing published datas.

See also:
LDAPConnection
Author:
Salvatore Monforte salvatore.monforte@ct.infn.it


Member Function Documentation

bool close   [virtual]
 

Closes the source data file.

This function overrides virtual LDAP Connection one.

Returns:
true on success, false otherwise.

Implements edg::workload::common::ldif2classad::LDAPConnection.

generic_search_result_t* execute LDAPQuery   q [virtual]
 

Performs search operations using ldap_search_st() allowing a timeout to be specified.

Parameters:
q  the query which will be executed.
Returns:
a pointer to generic search result. This pointer should be explicitly freed.

Implements edg::workload::common::ldif2classad::LDAPConnection.

bool is_established   const [virtual]
 

Conenction test wheter established or not.

Returns:
true if connection is established, false otherwise.

Implements edg::workload::common::ldif2classad::LDAPConnection.

bool open   [virtual]
 

Opens the source data file and creates a memory representation of its data.

This function overrides virtual LDAP Connection one.

Returns:
true on success, false otherwise.

Implements edg::workload::common::ldif2classad::LDAPConnection.


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