LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
shiftFrom.h
Go to the documentation of this file.
1// Copyright 2021 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/************************************************************************
7 * @author Gaël de Chalendar <gael.de-chalendar@cea.fr>
8 * @date Wed Dec 15 2021
9 ***********************************************************************/
10
11#ifndef SHIFTFROM_H
12#define SHIFTFROM_H
13
14#include "common/LimaCommon.h"
15
16#include <QMap>
17
18#include <memory>
19
20
21namespace Lima {
22
23class ShiftFromPrivate;
25 public QMap<int, std::tuple<int, QString, QString> >
26{
27 friend LIMA_DATAHANDLER_EXPORT QDebug& operator << (QDebug&, const ShiftFrom&)
28 ;
29public:
30 ShiftFrom(const QString& xml);
31 virtual ~ShiftFrom();
32 const QString& xml();
33 const QString& xml_noent();
34 int correct_offset(int offset, int indexOfToken) const;
35 QString rebuild_text(const QString& input, int offset) const;
36
37
38private:
39 ShiftFrom(const ShiftFrom&) = delete;
40 ShiftFrom& operator=(const ShiftFrom&) = delete;
41
43};
44
45LIMA_DATAHANDLER_EXPORT QDebug& operator<<(QDebug& os, const ShiftFrom& sf);
46
47} // end namespace
48
49#endif
QDebug & operator<<(QDebug &qd, const std::string &str)
Definition QsLog.cpp:39
#define LIMA_DATAHANDLER_EXPORT
Definition LimaCommon.h:129
NAUTITIA.
std::ostream & operator<<(ostream &os, const Node &node)