ddc
TempArticle.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 _TEMPARTICLE_H_
22 #define _TEMPARTICLE_H_
23 
24 #include "Ross.h" // main symbols
25 #include "TextField.h" // main symbols
26 
27 
29 {
30  string m_ArticleStr;
31 public:
35  bool m_ReadOnly;
36  vector<CTextField> m_Fields;
38 
39  vector<TCortege10> m_Corteges;
40  string m_LastError;
42  CTempArticle();
43 
44 
45 
46  const TCortege10& GetRossCortege (size_t i) const;
47  size_t GetCortegesSize () const;
48  const TCortege10& GetCortege (size_t i) const;
49  string ConstructFldName (BYTE FieldNo, BYTE LeafId, BYTE BracketLeafId);
50  bool IsPartOf(const CTempArticle *Article, bool UseWildCards) const;
51  int IntersectByFields(const CTempArticle *Article) const;
52  bool AddArticle(const CTempArticle *Article);
53  bool ArticleToText ();
55  bool CheckCortegeVector ();
56  bool SetArticleStr(const char * s);
57  bool MarkUp();
58  bool BuildCortegeList();
59  bool WriteToDictionary();
60  void ReadFromDictionary(WORD UnitNo, bool ReadOnly);
61  const string& GetArticleStr();
62 
63 };
64 
65 #endif
66 
67 /*--- emacs style variables ---
68  * Local Variables:
69  * mode: C++
70  * c-file-style: "ellemtel"
71  * c-basic-offset: 4
72  * tab-width: 8
73  * indent-tabs-mode: nil
74  * End:
75  */
void ReadFromDictionary(WORD UnitNo, bool ReadOnly)
Definition: TempArticle.cpp:549
bool WriteToDictionary()
Definition: TempArticle.cpp:693
string m_LastError
Definition: TempArticle.h:40
CDictionary * m_pRoss
Definition: TempArticle.h:37
bool AddArticle(const CTempArticle *Article)
Definition: TempArticle.cpp:95
bool ArticleToText()
Definition: TempArticle.cpp:143
vector< CTextField > m_Fields
Definition: TempArticle.h:36
bool MarkUp()
Definition: TempArticle.cpp:579
bool BuildCortegeList()
Definition: TempArticle.cpp:659
Definition: cortege.h:194
bool AddCortegeToVector(CTextField &F)
Definition: TempArticle.cpp:247
WORD m_UnitNo
Definition: TempArticle.h:34
uint16_t WORD
Definition: utilit.h:106
bool CheckCortegeVector()
Definition: TempArticle.cpp:364
bool SetArticleStr(const char *s)
Definition: TempArticle.cpp:568
const string & GetArticleStr()
Definition: TempArticle.cpp:735
int m_ErrorLine
Definition: TempArticle.h:41
BYTE m_MeanNum
Definition: TempArticle.h:33
string m_ArticleStr
Definition: TempArticle.h:30
char m_EntryStr[EntryStrSize]
Definition: TempArticle.h:32
unsigned char BYTE
Definition: utilit.h:94
bool m_ReadOnly
Definition: TempArticle.h:35
const DWORD EntryStrSize
Definition: StructDictConsts.h:31
const TCortege10 & GetCortege(size_t i) const
Definition: TempArticle.cpp:53
const TCortege10 & GetRossCortege(size_t i) const
Definition: TempArticle.cpp:36
bool IsPartOf(const CTempArticle *Article, bool UseWildCards) const
Definition: TempArticle.cpp:116
Definition: TextField.h:26
string ConstructFldName(BYTE FieldNo, BYTE LeafId, BYTE BracketLeafId)
Definition: TempArticle.cpp:62
Definition: TempArticle.h:28
Definition: Ross.h:243
int IntersectByFields(const CTempArticle *Article) const
Definition: TempArticle.cpp:79
vector< TCortege10 > m_Corteges
Definition: TempArticle.h:39
CTempArticle()
Definition: TempArticle.cpp:27
size_t GetCortegesSize() const
Definition: TempArticle.cpp:42