KEduVocDeclension

Search for usage in LXR

#include <keduvocdeclension.h>

Public Member Functions

 KEduVocDeclension ()
 
 KEduVocDeclension (const KEduVocDeclension &other)
 
KEduVocTextdeclension (KEduVocWordFlags flags)
 
bool isEmpty ()
 
KEduVocDeclensionoperator= (const KEduVocDeclension &other)
 
void setDeclension (const KEduVocText &declension, KEduVocWordFlags flags)
 
void toKVTML2 (QDomElement &parent)
 

Static Public Member Functions

static KEduVocDeclensionfromKVTML2 (QDomElement &parent)
 

Detailed Description

A declension contains all forms that a NOUN possibly can have.

@author Frederik Gladhorn <frederik.gladhorn@kdemail.net>

Definition at line 20 of file keduvocdeclension.h.

Constructor & Destructor Documentation

◆ KEduVocDeclension() [1/2]

KEduVocDeclension::KEduVocDeclension ( )
explicit

The constructor without arguments.

Definition at line 20 of file keduvocdeclension.cpp.

◆ KEduVocDeclension() [2/2]

KEduVocDeclension::KEduVocDeclension ( const KEduVocDeclension & other)

copy constructor

Parameters
othercomparison object to copy

Definition at line 25 of file keduvocdeclension.cpp.

◆ ~KEduVocDeclension()

KEduVocDeclension::~KEduVocDeclension ( )

Definition at line 37 of file keduvocdeclension.cpp.

Member Function Documentation

◆ declension()

KEduVocText & KEduVocDeclension::declension ( KEduVocWordFlags flags)

The grammatical number, there is singular and plural for english, some languages have dual for exactly two items.

Parameters
flags
Returns

Definition at line 42 of file keduvocdeclension.cpp.

◆ fromKVTML2()

KEduVocDeclension * KEduVocDeclension::fromKVTML2 ( QDomElement & parent)
static

Reads a declension from xml, returns 0 if it is empty.

Parameters
parent
Returns

Definition at line 109 of file keduvocdeclension.cpp.

◆ isEmpty()

bool KEduVocDeclension::isEmpty ( )

Definition at line 52 of file keduvocdeclension.cpp.

◆ operator=()

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

equality operator

Parameters
aobject to compare to
Returns
true if comparisons are the same, false otherwise assignment operator for d-pointer copying
Parameters
otherobject to copy from
Returns
reference to this object

Definition at line 31 of file keduvocdeclension.cpp.

◆ setDeclension()

void KEduVocDeclension::setDeclension ( const KEduVocText & declension,
KEduVocWordFlags flags )

Set a declension.

Parameters
declension
flags

Definition at line 47 of file keduvocdeclension.cpp.

◆ toKVTML2()

void KEduVocDeclension::toKVTML2 ( QDomElement & parent)

Create xml for this declension.

Parameters
parent

Definition at line 57 of file keduvocdeclension.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.