LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
TStatus.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 4-JUL-2002
9//
10// The status of a token found by Tokenizer for the use of
11// Morphologic Analysis modules
12
13#ifndef LIMA_LINGUISTICPROCESSING_LINGUISTICANALYSISSTRUCTURE_TSTATUS_H
14#define LIMA_LINGUISTICPROCESSING_LINGUISTICANALYSISSTRUCTURE_TSTATUS_H
15
17#include <iostream>
19
20namespace Lima {
21namespace LinguisticProcessing {
22namespace LinguisticAnalysisStructure {
23
24
51
63
64class TStatusPrivate;
66{
67 friend class TStatusPrivate;
68
69public:
70 TStatus();
71 TStatus(const TStatus&);
72 TStatus(
73 AlphaCapitalType capital,
74 AlphaRomanType roman,
75 bool isHyphen,
76 bool isPossessive,
77 bool isConcatAbbrev,
78 bool isTwitter,
79 NumericType numeric,
80 StatusType status);
81 virtual ~TStatus();
82
83 // Assignment operator. Copies the specified TStatus
84 // into self. Returns a reference to self.
85 TStatus& operator=(const TStatus&);
86
87 // comparison operator (so that status can be sorted)
88 bool operator<(const TStatus& s) const;
89 bool operator==(const TStatus& s) const;
90
91 // reset Status values
92 void reset();
93
94 void setAlphaCapital(const AlphaCapitalType alphaCapital);
95 void setAlphaRoman(const AlphaRomanType alphaRoman);
96 void setAlphaHyphen(bool isAlphaHyphen);
97 void setAlphaPossessive(bool isAlphaPossessive);
98 void setAlphaConcatAbbrev(bool concatAbbrev);
99 void setTwitter(bool isTwitter);
100 void setNumeric(const NumericType numeric);
101 void setStatus(const StatusType other);
102 void setDefaultKey(const Lima::LimaString& defaultKey);
103 AlphaCapitalType getAlphaCapital() const;
104 AlphaRomanType getAlphaRoman() const;
105 bool isAlphaHyphen() const;
106 bool isAlphaPossessive() const;
107 bool isAlphaConcatAbbrev() const;
108 bool isTwitter() const;
109 NumericType getNumeric() const;
110 StatusType getStatus() const;
111 const Lima::LimaString& defaultKey() const;
112 void outputXML(std::ostream& XmlStream) const;
113 std::string toString() const;
114
115protected:
117
118};
119
120
121} // closing namespace LinguisticAnalysisStructure
122} // closing namespace LinguisticProcessing
123} // closing namespace Lima
124
125#endif // LIMA_LINGUISTICPROCESSING_DATA_TSTATUS_H
#define LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
NAUTITIA.
QString LimaString
Definition LimaString.h:33
static bool operator<(const QStringView &entityStr, const TextHtmlEntity &entity)