ddc
Signat.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 __SIGNAT_H_
22 #define __SIGNAT_H_
23 
24 
25 #include "../CommonLib/utilit.h"
26 
27 struct TSignatItem {
29  bool m_IsMult;
30  TSignatItem (BYTE DomNo, bool IsMult)
31  {
32  m_DomNo = DomNo;
33  m_IsMult = IsMult;
34  };
36  {
37  m_IsMult = false;
38  m_DomNo = 0;
39  };
40 };
41 const size_t MaxFormatNameLen = 254;
42 const size_t MaxFormatStrLen = 254;
43 struct CSignat
44 {
45  char sFrmt[512];
46  char sFrmtWithotSpaces[512];
47  vector<TSignatItem> DomsWithDelims;
48  vector<BYTE> Doms;
49 
50  char FormatStr[255];
51  char FormatName[255];
52  int SignatId;
53  int OrderNo;
54 
55  bool operator==(const CSignat& X) const
56  {return OrderNo == X.OrderNo; }
57 
58  bool operator<(const CSignat& X) const
59  { return (OrderNo < X.OrderNo); }
60 
61 };
62 
63 
64 
65 
66 #endif //__SIGNAT_H_
67 
68 /*--- emacs style variables ---
69  * Local Variables:
70  * mode: C++
71  * c-file-style: "ellemtel"
72  * c-basic-offset: 4
73  * tab-width: 8
74  * indent-tabs-mode: nil
75  * End:
76  */
Definition: Signat.h:43
int SignatId
Definition: Signat.h:52
vector< BYTE > Doms
Definition: Signat.h:48
const size_t MaxFormatStrLen
Definition: Signat.h:42
BYTE m_DomNo
Definition: Signat.h:28
Definition: Signat.h:27
vector< TSignatItem > DomsWithDelims
Definition: Signat.h:47
const size_t MaxFormatNameLen
Definition: Signat.h:41
bool operator<(const CSignat &X) const
Definition: Signat.h:58
TSignatItem()
Definition: Signat.h:35
unsigned char BYTE
Definition: utilit.h:94
TSignatItem(BYTE DomNo, bool IsMult)
Definition: Signat.h:30
bool m_IsMult
Definition: Signat.h:29
int OrderNo
Definition: Signat.h:53
bool operator==(const CSignat &X) const
Definition: Signat.h:55