Public Types | Public Member Functions
zorba::ThesaurusProvider Class Reference

A ThesaurusProvider is-a Resource for providing thesauri for a given language. More...

#include <zorba/thesaurus.h>

Inheritance diagram for zorba::ThesaurusProvider:
Inheritance graph
[legend]
Collaboration diagram for zorba::ThesaurusProvider:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::unique_ptr
< ThesaurusProvider const,
internal::ztd::destroy_delete
< ThesaurusProvider const > > 
ptr

Public Member Functions

virtual void destroy () const =0
 Destroy/clean up this Resource.
virtual bool getThesaurus (locale::iso639_1::type lang, Thesaurus::ptr *t=0) const =0
 Gets a Thesaurus for the given language.

Detailed Description

A ThesaurusProvider is-a Resource for providing thesauri for a given language.

Definition at line 114 of file thesaurus.h.


Member Typedef Documentation

Reimplemented from zorba::Resource.

Definition at line 120 of file thesaurus.h.


Member Function Documentation

virtual void zorba::Resource::destroy ( ) const
pure virtualinherited

Destroy/clean up this Resource.

Zorba will call this method when it no longer needs the Resource. It is the responsibility of subclasses to clean up appropriate when this method is called, including calling "delete this" if the Resource was allocated with "new".

virtual bool zorba::ThesaurusProvider::getThesaurus ( locale::iso639_1::type  lang,
Thesaurus::ptr t = 0 
) const
pure virtual

Gets a Thesaurus for the given language.

Parameters:
langThe desired language of the thesaurus.
tIf not null, set to point to a Thesaurus for lang.
Returns:
Returns true only if this provider can provide a thesaurus for lang.

The documentation for this class was generated from the following file:
blog comments powered by Disqus