# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLPACS::CRetrieverBank Class Reference

A bank of retrievers, shared by several global retrievers. More...

#include <retriever_bank.h>

Inheritance diagram for NLPACS::CRetrieverBank:

NLPACS::URetrieverBank List of all members.

Public Methods

const std::vector< CLocalRetriever > & getRetrievers () const
 Returns the vector of retrievers. More...

uint size () const
 Returns the number of retrievers in the bank. More...

const CLocalRetrievergetRetriever (uint n) const
 Gets nth retriever. More...

uint addRetriever (const CLocalRetriever &retriever)
 Adds the given retriever to the bank. More...

uint addRetriever (const std::string &filename)
 Loads the retriever named 'filename' (using defined search paths) and adds it to the bank. More...

void clean ()
 Cleans the bank up. More...

void serial (NLMISC::IStream &f)
 Serialises this CRetrieverBank. More...


Protected Attributes

std::vector< CLocalRetriever_Retrievers
 The retrievers stored in the retriever bank. More...


Detailed Description

A bank of retrievers, shared by several global retrievers.

Author:
Benjamin Legros , Nevrax France
Date:
2001

Definition at line 48 of file retriever_bank.h.


Member Function Documentation

uint NLPACS::CRetrieverBank::addRetriever const std::string &    filename [inline]
 

Loads the retriever named 'filename' (using defined search paths) and adds it to the bank.

Definition at line 68 of file retriever_bank.h.

References _Retrievers, NLMISC::CIFile::close, nldebug, and NLMISC::CIFile::open.

uint NLPACS::CRetrieverBank::addRetriever const CLocalRetriever   retriever [inline]
 

Adds the given retriever to the bank.

Definition at line 65 of file retriever_bank.h.

References _Retrievers.

void NLPACS::CRetrieverBank::clean  
 

Cleans the bank up.

Definition at line 65 of file retriever_bank.cpp.

References _Retrievers.

const CLocalRetriever& NLPACS::CRetrieverBank::getRetriever uint    n const [inline]
 

Gets nth retriever.

Definition at line 62 of file retriever_bank.h.

References _Retrievers.

const std::vector<CLocalRetriever>& NLPACS::CRetrieverBank::getRetrievers   const [inline]
 

Returns the vector of retrievers.

Definition at line 56 of file retriever_bank.h.

References _Retrievers.

void NLPACS::CRetrieverBank::serial NLMISC::IStream   f [inline]
 

Serialises this CRetrieverBank.

Definition at line 85 of file retriever_bank.h.

References _Retrievers, NLMISC::IStream::serialCont, and NLMISC::IStream::serialVersion.

uint NLPACS::CRetrieverBank::size   const [inline]
 

Returns the number of retrievers in the bank.

Definition at line 59 of file retriever_bank.h.

References _Retrievers.


Member Data Documentation

std::vector<CLocalRetriever> NLPACS::CRetrieverBank::_Retrievers [protected]
 

The retrievers stored in the retriever bank.

Definition at line 52 of file retriever_bank.h.

Referenced by addRetriever, clean, getRetriever, getRetrievers, serial, and size.


The documentation for this class was generated from the following files: