ddc
ConcordLib/GramInfo.h
Go to the documentation of this file.
1 // DDC originally by Alexey Sokirko
2 // Changes and modifications 2011-2015 by Bryan Jurish
3 //
4 // This file is part of DDC.
5 //
6 // DDC is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU Lesser General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // DDC is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
18 //
19 #ifndef GramInfo_h
20 #define GramInfo_h
21 
22 
24 struct CGramInfo
25 {
32 
33  CGramInfo () {
34  m_PartOfSpeechMask = 0;
35  m_Grammems = 0;;
36  m_Language = morphUnknown;
37 
38  };
39  CGramInfo (MorphLanguageEnum Language, DWORD PartOfSpeechMask, QWORD Grammems)
40  {
41  m_PartOfSpeechMask = PartOfSpeechMask;
42  m_Grammems = Grammems;
43  m_Language = Language;
44 
45  };
46 
47 
48 };
49 
50 #endif
51 
52 /*--- emacs style variables ---
53  * Local Variables:
54  * mode: C++
55  * c-file-style: "ellemtel"
56  * c-basic-offset: 4
57  * tab-width: 8
58  * indent-tabs-mode: nil
59  * End:
60  */
const char Grammems[GrammemsCount][10]
Definition: RusGramTab.h:60
uint64_t QWORD
Definition: utilit.h:107
MorphLanguageEnum m_Language
the language of the pattern
Definition: CommonLib/GramInfo.h:27
DWORD m_PartOfSpeechMask
the part of speech mask (SUB, ART,ADJ...)
Definition: CommonLib/GramInfo.h:29
QWORD m_Grammems
morphological features (plu, sig, nom...)
Definition: CommonLib/GramInfo.h:31
CGramInfo(MorphLanguageEnum Language, DWORD PartOfSpeechMask, QWORD Grammems)
Definition: ConcordLib/GramInfo.h:39
CGramInfo represents one morphological pattern, for example "[SUB pl, sg]".
Definition: CommonLib/GramInfo.h:24
MorphLanguageEnum
Definition: utilit.h:162
uint32_t DWORD
Definition: utilit.h:105
CGramInfo()
Definition: ConcordLib/GramInfo.h:33
Definition: utilit.h:163