LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
PropertyAccessor.h
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
/***************************************************************************
7
* Copyright (C) 2004 by CEA LIST *
8
* *
9
***************************************************************************/
10
11
#ifndef LIMA_COMMON_PROPERTYCODE_PROPERTYACCESSOR_H
12
#define LIMA_COMMON_PROPERTYCODE_PROPERTYACCESSOR_H
13
14
#include "
common/LimaCommon.h
"
15
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
16
17
namespace
Lima
18
{
19
namespace
Common
20
{
21
namespace
PropertyCode
22
{
23
24
class
PropertyAccessorPrivate;
30
class
LIMA_PROPERTYCODE_EXPORT
PropertyAccessor
31
{
32
friend
class
PropertyAccessorPrivate
;
33
public
:
34
42
PropertyAccessor
(
const
std::string& name,
43
const
LinguisticCode
& mask,
44
const
LinguisticCode
& emptyNessMask);
45
46
~PropertyAccessor
();
47
48
PropertyAccessor
(
const
PropertyAccessor
&);
49
PropertyAccessor
& operator=(
const
PropertyAccessor
&);
50
55
const
std::string& getPropertyName()
const
;
56
64
LinguisticCode
readValue(
const
LinguisticCode
& code)
const
;
65
73
void
writeValue(
const
LinguisticCode
& value,
LinguisticCode
& code)
const
;
74
81
bool
equal(
const
LinguisticCode
& l1,
const
LinguisticCode
& l2)
const
;
82
91
bool
empty(
const
LinguisticCode
& l)
const
;
92
93
private
:
94
PropertyAccessorPrivate
* m_d;
95
};
96
97
}
// PropertyCode
98
}
// Common
99
}
// Lima
100
101
102
#endif
LimaCommon.h
LinguisticProcessingCommon.h
LIMA_PROPERTYCODE_EXPORT
#define LIMA_PROPERTYCODE_EXPORT
Definition
LinguisticProcessingCommon.h:81
Lima::Common::PropertyCode::PropertyAccessorPrivate
Definition
PropertyAccessor.cpp:24
Lima::Common::PropertyCode::PropertyAccessor
Provide function to read write and check a property.
Definition
PropertyAccessor.h:31
Lima::LinguisticCode
Definition
StdBitset.h:23
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
lima_linguisticprocessing
src
linguisticProcessing
common
PropertyCode
PropertyAccessor.h
Generated by
1.9.8