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"
16
17namespace Lima
18{
19namespace Common
20{
21namespace PropertyCode
22{
23
24class PropertyAccessorPrivate;
31{
33public:
34
42 PropertyAccessor(const std::string& name,
43 const LinguisticCode& mask,
44 const LinguisticCode& emptyNessMask);
45
47
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
93private:
95};
96
97} // PropertyCode
98} // Common
99} // Lima
100
101
102#endif
#define LIMA_PROPERTYCODE_EXPORT
Provide function to read write and check a property.
NAUTITIA.