/* modele.h * * This file is part of COLLATINUS. * * COLLATINUS is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * COLLATINVS is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with COLLATINUS; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * © Yves Ouvrard, 2009 - 2016 */ #ifndef MODELE_H #define MODELE_H #include #include #include #include #include class Lemmat; class Modele; class Desinence : public QObject { Q_OBJECT private: QString _gr; QString _grq; int _morpho; Modele *_modele; int _numR; int _rarete; public: Desinence(QString d, int morph, int nr, Modele *parent = 0); QString gr(); QString grq(); Modele *modele(); int morphoNum(); int numRad(); }; class Modele : public QObject { Q_OBJECT private: QList _absents; QStringList static const cles; QMultiMap _desinences; QMap _genRadicaux; QString _gr; QString _grq; Lemmat *_lemmatiseur; Modele *_pere; public: Modele(QStringList ll, Lemmat *parent = 0); QList absents(); QList clesR(); Desinence *clone(Desinence *d); bool deja(int m); QList desinences(int d); QList desinences(); bool estUn(QString m); QString genRadical(int r); QString gr(); QString grq(); static QList listeI(QString l); QList morphos(); QChar pos(); }; #endif