LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
tstatusTransition.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/************************************************************************
7 *
8 * @file tstatusTransition.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Mon Jan 13 2003
11 * copyright Copyright (C) 2002 by CEA LIST
12 * Project Automaton
13 *
14 * @brief transitions that are status of the tokenizer
15 *
16 ***********************************************************************/
17
18#ifndef TSTATUSTRANSITION_H
19#define TSTATUSTRANSITION_H
20
21#include "AutomatonExport.h"
22#include "automatonCommon.h"
23#include "transitionUnit.h"
25
26namespace Lima {
27namespace LinguisticProcessing {
28namespace Automaton {
29
31{
32 public:
35 // TStatusTransition(const LimaString& str);
37 virtual ~TStatusTransition();
38 TStatusTransition& operator = (const TStatusTransition&);
39
40 TStatusTransition* clone() const override;
41 TStatusTransition* create() const override;
42
43 std::string printValue() const override;
44 bool operator== (const TransitionUnit&) const override;
45
46 bool compare(const LinguisticAnalysisStructure::AnalysisGraph& graph,
47 const LinguisticGraphVertex& vertex,
48 AnalysisContent& analysis,
50 const LinguisticAnalysisStructure::MorphoSyntacticData* data) const override;
51
52 TypeTransition type() const override;
53
54 const LinguisticAnalysisStructure::TStatus& status() const;
56 void setStatus(const LinguisticAnalysisStructure::TStatus& s);
57
58 private:
60 bool compareTStatus(const LinguisticAnalysisStructure::TStatus& t) const;
61
62};
63
64
65/***********************************************************************/
66// inline access functions
67/***********************************************************************/
69TStatusTransition::status() const { return m_status; }
70
72TStatusTransition::status() { return m_status; }
73
75setStatus(const LinguisticAnalysisStructure::TStatus& s) { m_status = s; }
76
78
80 return new TStatusTransition(*this); }
83
84} // namespace end
85} // namespace end
86} // namespace end
87
88#endif
#define LIMA_AUTOMATON_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
const LinguisticAnalysisStructure::TStatus & status() const
void setStatus(const LinguisticAnalysisStructure::TStatus &s)
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.