LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
SingleConcatenatedEntry.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6// NAUTITIA
7//
8// jys 1-OCT-2002
9//
10// SingleConcatenatedEntry is the way to access dictionary Concatenated word infos datas.
11// SingleConcatenatedEntry manages recurent calls to lists of linguistic infos.
12// Dictionaries in memory are specified in NA2002.r2128 JYS
13// Dictionaries iterators are specified in NA2002.r2129 JYS
14
15#ifndef SingleConcatenatedEntry_H
16#define SingleConcatenatedEntry_H
17
18#include "DictionaryExport.h"
21
22
23namespace Lima {
24namespace LinguisticProcessing {
25namespace Dictionary {
26
27
29
30public:
31
32 // Creates SingleConcatenatedEntry.
36 unsigned char *startAddr,
37 unsigned char *stringStartAddr);
38
39 // Destroys SingleConcatenatedEntry
41
42 // Assignment operator. Copies the specified SingleConcatenatedEntry
43 // into self. Returns a reference to self.
44 // After assignment, internal iteration pointers of self are reset
46
47 // Resets iteration pointers
49
50 // Returns true if self is empty
51 bool isEmpty() const;
52
53 // Returns component string
54 // If self is empty, EmptyEntryException is raised
55 Lima::LimaString component() const;
56
57 // Returns dictionary entry address attached to the component, if exists
58 // If there is no dictionary entry, NULL is returned
59 // (to solve recursivity datas definition)
60 unsigned char* dictionaryEntryAddress();
61
62protected:
63
64private:
65 unsigned char *m_stringStartAddr;
66 unsigned char *m_startAddr;
67 unsigned char *m_dictionaryEntry;
68
69};
70
71} // closing namespace Dictionary
72} // closing namespace LinguisticProcessing
73} // closing namespace Lima
74
75#endif
#define LIMA_DICTIONARY_EXPORT
NAUTITIA.
QString LimaString
Definition LimaString.h:33