Debian Codegraph @

src/requete.h

raw symbols SCIP
1 /* requete.h */
2 /*
3 * This file is part of PRAELECTOR.
4 *
5 * PRAELECTOR is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * COLLATINVS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with PRAELECTOR; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * © Yves Ouvrard, 2009 - 2017
20 */
21
22 #ifndef REQUETE_H
23 #define REQUETE_H
24
25 #include <phrase.h>
26 #include <mot.h>
27 #include <regle.h>
28
29 class Phrase;
30 class Mot;
31 class Regle;
32
33 class Requete : public QObject
34 {
35 private:
36 Requete* _coord1;
37 QStringList _hist;
38 int _itr;
39 Lemme* _lemme;
40 QString _morpho;
41 bool _multi;
42 int _num;
43 Requete* _origine;
44 Phrase* _phrase;
45 bool _rejetee;
46 Regle* _regle;
47 Mot* _requerant;
48 MotFlechi* _sub;
49 bool _subRequis;
50 MotFlechi* _super;
51 bool _valide;
52 public:
53 Requete(MotFlechi* sup, MotFlechi* sub, Regle* r);
54 ~Requete();
55 QString aff();
56 void ajHist(QString h);
57 void annuleRequis(QString cause);
58 Requete* clone();
59 bool clonee();
60 int cloneeDe();
61 bool close();
62 QString code();
63 bool contigue();
64 Requete* coord1();
65 bool croise(Requete* req);
66 int distance();
67 int distance(Mot* m);
68 QString doc();
69 bool egale(Requete* req);
70 bool egale(QString tr);
71 bool enConflit(QString id);
72 bool exclut(Requete* req);
73 QString fonction();
74 int freq();
75 QString gv(QString format="dot");
76 int handicap();
77 QString hist();
78 bool homonyme(Requete* req);
79 bool homoSuper(MotFlechi* mf);
80 QString html(bool enr=false);
81 bool homoSub(MotFlechi* mf);
82 QString humain(bool num=false);
83 QString id();
84 bool idConflit(QString id);
85 void incItr();
86 int largeur();
87 QString lemMorph();
88 bool multi();
89 int nbEx();
90 int nbPonct(QChar c);
91 int num();
92 QString numc();
93 Requete* origine();
94 int poids();
95 QList<Mot*> portee();
96 MotFlechi* prima();
97 bool reciproque(Requete* req);
98 Regle* regle();
99 bool rejetee();
100 Mot* requerant();
101 MotFlechi* requerantFl();
102 Mot* requis();
103 MotFlechi* requisFl();
104 QChar sens();
105 bool separeparVConj();
106 void setCoord1(Requete* req);
107 void setOrigine(Requete* req);
108 void setRejetee(bool r, QString cause="");
109 void setRequis(MotFlechi* m, QString cause="cause inconnue");
110 void setSub(MotFlechi *m);
111 void setSubRequis();
112 void setSuper(MotFlechi *m);
113 void setSuperRequis();
114 void setValide(bool v);
115 MotFlechi* sub();
116 bool subRequis();
117 bool subSup();
118 MotFlechi* super();
119 bool superRequis();
120 QString tr();
121 QString triple();
122 QString trSub(); // traduction
123 MotFlechi* ultima();
124 bool valide();
125 };
126
127 # endif