ddc
TextField.h
Go to the documentation of this file.
1 //
2 // This file is part of DDC.
3 //
4 // DDC is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Lesser 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 // DDC 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 Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public License
15 // along with DDC. If not, see <http://www.gnu.org/licenses/>.
16 //
17 // ========== Dialing Structural Dictionary (www.aot.ru)
18 // ========== Copyright by Alexey Sokirko (1998-2002), Bryan Jurish (2011)
19 
20 
21 #ifndef __TEXTFIELD_H_
22 #define __TEXTFIELD_H_
23 
24 
25 
26 struct CTextField
27 {
33 
34  CTextField() {};
35  CTextField (BYTE _FieldNo, BYTE _LeafId, BYTE _BracketLeafId)
36  {
37  LeafId = _LeafId;
38  FieldNo = _FieldNo;
39  BracketLeafId = _BracketLeafId;
40  };
41 
42  bool operator==(const CTextField& X) const
43  {
44  return (FieldNo == X.FieldNo)
45  && (LeafId == X.LeafId)
46  && (BracketLeafId == X.BracketLeafId);
47  }
48 
49 };
50 
51 
52 #endif //__TEXTFIELD_H_
53 
54 /*--- emacs style variables ---
55  * Local Variables:
56  * mode: C++
57  * c-file-style: "ellemtel"
58  * c-basic-offset: 4
59  * tab-width: 8
60  * indent-tabs-mode: nil
61  * End:
62  */
CTextField(BYTE _FieldNo, BYTE _LeafId, BYTE _BracketLeafId)
Definition: TextField.h:35
BYTE LeafId
Definition: TextField.h:29
bool operator==(const CTextField &X) const
Definition: TextField.h:42
CTextField()
Definition: TextField.h:34
unsigned char BYTE
Definition: utilit.h:94
DWORD EndLine
Definition: TextField.h:32
Definition: TextField.h:26
BYTE FieldNo
Definition: TextField.h:28
uint32_t DWORD
Definition: utilit.h:105
DWORD StartLine
Definition: TextField.h:31
BYTE BracketLeafId
Definition: TextField.h:30