ddc
Consent.h
Go to the documentation of this file.
1 
2 //
3 // This file is part of DDC.
4 //
5 // DDC is free software: you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published by
7 // the Free Software Foundation, either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // DDC 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 Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
17 //
18 // ========== Dialing Graphematical Module (www.aot.ru)
19 // ========== Copyright by Alexey Sokirko (1996-2001), Bryan Jurish (2011)
20 
21 
22 // ============ Consent.H ==========================
23 // ==================================================================
24 // Этот файл заголовков - часть макросинтаксического анализа.
25 // Здесь определен тип (ConSent); переменные этого типа будут
26 // содержать макросинтаксические единицы. Макросинтаксические
27 // единицы входят в макросинтаксическую структуру (CSList.H).
28 //==================================================================
29 
30 
31 #ifndef consent_h
32 #define consent_h
33 
34 #include "StdGraph.h"
35 #include "graline.h"
36 
37 class CGraphmatFile;
38 
39 
42 };
43 
44 
45 const long UnGroundNo = 0;
46 
47 struct CConSent {
48 
49  // ссылка на графематическую таблицу const CGraphmatFile* m_GraFile; const CGraLine& GetUnit(size_t i) const; size_t m_StartNo; /* number of the first line of the CS in Graphematical Table*/ size_t m_EndNo; /* number of the last line of the CS in Graphematical Table */ size_t m_HardGraphEndNo; // Номер строки таблицы, в которой содержится последняя непробельная графема // Номер строки графематической таблицы, на которую будет поставлен дескриптор size_t m_GraLineNoToMark; // УП, ЗГЛ, УПВвод ... Descriptors m_Type; void SetEmpty () { m_GraFile = 0; m_Type = CS_Undef; }; CConSent () { SetEmpty(); }; CConSent (const CGraphmatFile* _GraFile) { SetEmpty(); m_GraFile = _GraFile; }; bool IsSoft() const; bool InitBasicInformation (); }; #endif /*--- emacs style variables --- * Local Variables: * mode: C++ * c-file-style: "ellemtel" * c-basic-offset: 4 * tab-width: 8 * indent-tabs-mode: nil * End: */
51 
52  const CGraLine& GetUnit(size_t i) const;
53 
54 
55  size_t m_StartNo; /* number of the first line of the CS in Graphematical Table*/
56  size_t m_EndNo; /* number of the last line of the CS in Graphematical Table */
57 
58  size_t m_HardGraphEndNo; // Номер строки таблицы, в которой содержится последняя непробельная графема // Номер строки графематической таблицы, на которую будет поставлен дескриптор size_t m_GraLineNoToMark; // УП, ЗГЛ, УПВвод ... Descriptors m_Type; void SetEmpty () { m_GraFile = 0; m_Type = CS_Undef; }; CConSent () { SetEmpty(); }; CConSent (const CGraphmatFile* _GraFile) { SetEmpty(); m_GraFile = _GraFile; }; bool IsSoft() const; bool InitBasicInformation (); }; #endif /*--- emacs style variables --- * Local Variables: * mode: C++ * c-file-style: "ellemtel" * c-basic-offset: 4 * tab-width: 8 * indent-tabs-mode: nil * End: */
59 
60  // Номер строки графематической таблицы, на которую будет поставлен дескриптор
62 
63 
64  // УП, ЗГЛ, УПВвод ...
66 
67 
68  void SetEmpty ()
69  {
70  m_GraFile = 0;
71  m_Type = CS_Undef;
72  };
73 
75  {
76  SetEmpty();
77 
78  };
79  CConSent (const CGraphmatFile* _GraFile)
80  {
81  SetEmpty();
82  m_GraFile = _GraFile;
83  };
84 
85 
86 
87  bool IsSoft() const;
88  bool InitBasicInformation ();
89 };
90 
91 
92 #endif
93 
94 /*--- emacs style variables ---
95  * Local Variables:
96  * mode: C++
97  * c-file-style: "ellemtel"
98  * c-basic-offset: 4
99  * tab-width: 8
100  * indent-tabs-mode: nil
101  * End:
102  */
size_t m_HardGraphEndNo
Definition: Consent.h:58
CConSent(const CGraphmatFile *_GraFile)
Definition: Consent.h:79
CConSent()
Definition: Consent.h:74
size_t m_StartNo
Definition: Consent.h:55
Definition: graline.h:66
bool IsSoft() const
Definition: Consent.cpp:29
Descriptors
Definition: gra_descr.h:26
const CGraphmatFile * m_GraFile
Definition: Consent.h:50
Definition: Consent.h:47
bool InitBasicInformation()
Definition: Consent.cpp:36
Descriptors m_Type
Definition: Consent.h:65
size_t m_GraLineNoToMark
Definition: Consent.h:61
const CGraLine & GetUnit(size_t i) const
size_t m_EndNo
Definition: Consent.h:56
Definition: GraphmatFile.h:28
Definition: gra_descr.h:56
void SetEmpty()
Definition: Consent.h:68