ULAPI  8.0
Public Member Functions | List of all members
ULDictionaryDescriptor Class Reference

A ULDictionaryDescriptor describes a particular type of dictionary data source without uniquely specifying the file or database from which it comes. For example, if there are two English-French Ultralingua dictionary data source modules, either or both of them could be identified by specifying the same ULDictionaryDescriptor. More...

#include <uldictionarydescriptor.h>

Public Member Functions

 ULDictionaryDescriptor ()
 
 ULDictionaryDescriptor (const ULLanguage &first, const ULLanguage &second)
 
 ULDictionaryDescriptor (const ULDictionaryDescriptor &other)
 
virtual ~ULDictionaryDescriptor ()
 
void clear ()
 
ULDictionaryDescriptoroperator= (const ULDictionaryDescriptor &other)
 
bool operator== (const ULDictionaryDescriptor &other) const
 
bool operator< (const ULDictionaryDescriptor &other) const
 
void setLanguages (const ULLanguage &first, const ULLanguage &second)
 
void getLanguages (ULLanguage &first, ULLanguage &second) const
 
const ULLanguagegetFirstLanguage () const
 
const ULLanguagegetSecondLanguage () const
 

Detailed Description

A ULDictionaryDescriptor describes a particular type of dictionary data source without uniquely specifying the file or database from which it comes. For example, if there are two English-French Ultralingua dictionary data source modules, either or both of them could be identified by specifying the same ULDictionaryDescriptor.

TODO: Decide what this is other than a language pair.

Constructor & Destructor Documentation

ULDictionaryDescriptor::ULDictionaryDescriptor ( )

Default constructor.

ULDictionaryDescriptor::ULDictionaryDescriptor ( const ULLanguage first,
const ULLanguage second 
)

Constructor.

ULDictionaryDescriptor::ULDictionaryDescriptor ( const ULDictionaryDescriptor other)

Copy constructor.

ULDictionaryDescriptor::~ULDictionaryDescriptor ( )
virtual

Destructor.

Member Function Documentation

void ULDictionaryDescriptor::clear ( )

Sets this descriptor to its default state.

const ULLanguage & ULDictionaryDescriptor::getFirstLanguage ( ) const
Returns
this descriptor's first language.
void ULDictionaryDescriptor::getLanguages ( ULLanguage first,
ULLanguage second 
) const

Gets the languages stored in this descriptor.

const ULLanguage & ULDictionaryDescriptor::getSecondLanguage ( ) const
Returns
this descriptor's second language.
bool ULDictionaryDescriptor::operator< ( const ULDictionaryDescriptor other) const

Less than operator.

ULDictionaryDescriptor & ULDictionaryDescriptor::operator= ( const ULDictionaryDescriptor other)

Assignment operator.

bool ULDictionaryDescriptor::operator== ( const ULDictionaryDescriptor other) const

Equality operator.

void ULDictionaryDescriptor::setLanguages ( const ULLanguage first,
const ULLanguage second 
)

Assigns new values to this descriptor's languages.


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