Debian Codegraph @

src/mot.h

raw symbols SCIP
1 /* mot.h */
2 /* Copyright (C) 2015 Yves Ouvrard
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
16
17 #ifndef MOT_H
18 #define MOT_H
19
20 #include <QObject>
21 #include <QList>
22 #include <QString>
23
24 #include <lemmatiseur.h>
25 //#include <libflexfr.h>
26 #include <motflechi.h>
27 #include <phrase.h>
28
29 class MotFlechi;
30 class Phrase;
31 class Requete;
32
33 class Mot : public QObject
34 {
35 private:
36 QString _gr;
37 MapLem _morphos;
38 int _dm;
39 QList<MotFlechi*> _flechis;
40 int _fm;
41 bool _reqLancees;
42 Phrase* _phrase;
43 int _rang;
44 int _que;
45 QString _tr;
46
47 public:
48 Mot(QString g, int d=-1, int f=-1, int r=-1, QObject *parent=0);
49 ~Mot();
50 void ajFlechi(MotFlechi* mf);
51 void annuleFlechi(int f);
52 void annuleFlechi(MotFlechi* mf);
53 void annuleLemme(Lemme* lem);
54 void choixFlechi(MotFlechi* mf);
55 void choixLemme(Lemme* lem);
56 void choixReq(Requete* req);
57 void choixSuper(Requete* req);
58 void choixSub(Requete* req);
59 int debut();
60 bool estAu(QString t);
61 Lemme* estLemDe(QStringList lr);
62 bool estLie();
63 Lemme* estPosDe(QString pr);
64 bool estPrep();
65 bool estRelatif();
66 bool estSommet();
67 bool estSubParAff(QString aff);
68 bool estSubParId(QString id);
69 bool estSuperParAff(QString aff);
70 bool estSuperParId(QString id);
71 int fin();
72 MotFlechi* flechi(int i);
73 QList<MotFlechi*> flValides(Requete* rtest);
74 QString gr();
75 QString html();
76 int indexOf(MotFlechi* mf);
77 void lance();
78 bool lemmeUnique();
79 QList<Requete*> lReqSupCloses();
80 QList<MotFlechi*> mfLies();
81 bool monomorphe();
82 MapLem morphos();
83 int nbFlechis();
84 int nbSupers();
85 bool nomAdj();
86 Phrase* phrase();
87 bool polyLemme();
88 QString pos();
89 MotFlechi* princeps();
90 bool que();
91 int rang();
92 void reinit();
93 bool reqLancees();
94 Requete* reqSub(QString id);
95 QList<Requete*> reqSuper();
96 void rmFlechi(MotFlechi* mf);
97 void setFlechis(MapLem m);
98 void setReqLancees(bool r);
99 void setPSup(int p);
100 void setTr(QString t);
101 bool static sortF(MotFlechi* mfa, MotFlechi* mfb);
102 MotFlechi* super();
103 QString trGroupe(Requete* rtest=0);
104 QString trs();
105 };
106
107 #endif