[go: up one dir, main page]

Menu

[18dfac]: / drillbit / lib / LyWord.h  Maximize  Restore  History

Download this file

38 lines (27 with data), 714 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef LYWORD_H
#define LYWORD_H
#include <QtCore>
/**
* @brief
* Represents a word with its associated definition and part of speech.
* @author Gregory McQuillan
*/
class LyWord
{
public:
LyWord(void);
LyWord(const QString&, const QChar&, const QString&);
QString word(void) const;
QString definition(void) const;
QString partOfSpeech(void) const;
QChar pos(void) const;
QStringList data(bool fileOutput = true) const;
void setWord(const QString &);
void setDefinition(const QString &);
void setPos(const QChar&);
private:
QString _word;
QChar _pos;
QString _definition;
};
#endif