LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
chaine.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
21#ifndef LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_CHAINE_H
22#define LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_CHAINE_H
23
24#include <limits>
25#include <string>
26
27namespace Lima {
28namespace LinguisticProcessing {
29namespace AnalysisDumpers {
30namespace EasyXmlDumper {
31
32class Chaine
33{
34public:
35 Chaine() : type(""), id(std::numeric_limits<unsigned int>::max()) {};
36 Chaine(const Chaine& c) : type(c.type), id(c.id) {};
37 virtual ~Chaine() {};
38 Chaine& operator=(const Chaine& c) {type = c.type; id = c.id; return *this;};
39
40 std::string type;
41 unsigned int id;
42 bool operator<(const Chaine& ch) const
43 {
44 if (type==ch.type) return (id<ch.id);
45 return type<ch.type;
46 };
47};
48
49} // end namespace EasyXmlDumper
50} // end namespace AnalysisDumpers
51} // end namespace LinguisticProcessings
52} // end namespace Lima
53
54#endif // LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_CHAINE_H
Dumps all the content of the analysis on an XML stream.
NAUTITIA.
STL namespace.