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

FileStreamConnection Class Reference

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

Inheritance diagram for FileStreamConnection:

LDAPConnection List of all members.

Public Types

typedef classad::ClassAd source_data_type_t
typedef std::list< source_data_type_t * > source_data_container_t

Public Member Functions

 FileStreamConnection (const std::string &)
 Constructor.

virtual ~FileStreamConnection ()
 Distructor.

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

bool close ()
 Closes the source data file.

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

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

void use_multi_attribute_list (std::vector< std::string > *multi_attributes)
void delete_source_data ()
bool load_source_data ()
bool read_data_object (std::string &s)
bool seek_data_object ()
bool to_requirements (const std::string &s, std::string &r)

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 Typedef Documentation

typedef std::list<source_data_type_t*> source_data_container_t
 

typedef classad::ClassAd source_data_type_t
 


Constructor & Destructor Documentation

FileStreamConnection const std::string &   ) 
 

Constructor.

virtual ~FileStreamConnection  )  [virtual]
 

Distructor.


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 LDAPConnection.

void delete_source_data  ) 
 

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 LDAPConnection.

bool is_established  )  const [virtual]
 

Conenction test wheter established or not.

Returns:
true if connection is established, false otherwise.

Implements LDAPConnection.

bool load_source_data  ) 
 

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 LDAPConnection.

bool read_data_object std::string &  s  ) 
 

bool seek_data_object  ) 
 

bool to_requirements const std::string &  s,
std::string &  r
 

void use_multi_attribute_list std::vector< std::string > *  multi_attributes  )  [inline]
 


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