LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LingPropertyEntry.cpp
Go to the documentation of this file.
1
// Copyright 2002-2020 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
// LingPropertyEntry is the way to access elementary linguistic properties
11
// Dictionaries in memory are specified in NA2002.r2128 JYS
12
// Dictionaries iterators are specified in NA2002.r2129 JYS
13
14
#include "
linguisticProcessing/core/Dictionary/LingPropertyEntry.h
"
15
16
#include "
common/Data/strwstrtools.h
"
17
#include <iostream>
18
using namespace
std
;
19
#include <wchar.h>
20
21
22
namespace
Lima
23
{
24
namespace
LinguisticProcessing
25
{
26
namespace
Dictionary
27
{
28
29
// Creates LingPropertyEntry as an empty structure.
30
LingPropertyEntry::LingPropertyEntry
() :
31
m_lingProperty()
32
{
33
}
34
35
LingPropertyEntry::LingPropertyEntry
(
const
LingPropertyEntry
& entry) :
36
m_lingProperty(entry.m_lingProperty)
37
{
38
}
39
40
LingPropertyEntry::LingPropertyEntry
(
const
LinguisticCode
& property) :
41
m_lingProperty(property)
42
{
43
}
44
45
// Destroys LingPropertyEntry
46
LingPropertyEntry::~LingPropertyEntry
() {}
47
48
// Assignment operator. Copies the specified LingPropertyEntry
49
// into self. Returns a reference to self.
50
LingPropertyEntry
&
LingPropertyEntry::operator=
(
const
LingPropertyEntry
& entry)
51
{
52
m_lingProperty = entry.m_lingProperty;
53
return
*
this
;
54
}
55
56
// Returns true if self is empty
57
bool
LingPropertyEntry::isEmpty
()
const
58
{
59
return
(m_lingProperty ==
L_NONE
);
60
}
61
62
// Returns LingPropery code
63
LinguisticCode
LingPropertyEntry::data
()
const
64
{
65
return
m_lingProperty;
66
}
67
68
}
// closing namespace Dictionary
69
}
// closing namespace LinguisticProcessing
70
}
// closing namespace Lima
LingPropertyEntry.h
L_NONE
#define L_NONE
Definition
StdBitset.h:338
Lima::LinguisticCode
Definition
StdBitset.h:23
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry
Definition
LingPropertyEntry.h:25
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry::~LingPropertyEntry
virtual ~LingPropertyEntry()
Definition
LingPropertyEntry.cpp:46
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry::operator=
LingPropertyEntry & operator=(const LingPropertyEntry &)
Definition
LingPropertyEntry.cpp:50
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry::data
LinguisticCode data() const
Definition
LingPropertyEntry.cpp:63
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry::isEmpty
bool isEmpty() const
Definition
LingPropertyEntry.cpp:57
Lima::LinguisticProcessing::Dictionary::LingPropertyEntry::LingPropertyEntry
LingPropertyEntry()
Definition
LingPropertyEntry.cpp:30
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
std
STL namespace.
strwstrtools.h
lima_linguisticprocessing
src
linguisticProcessing
core
Dictionary
LingPropertyEntry.cpp
Generated by
1.9.8