LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
documentReader.h
Go to the documentation of this file.
1// Copyright (C) 2003 by CEA LIST (LVIC)
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef DOCUMENTREADER_H
7#define DOCUMENTREADER_H
8
11
12#include <QMap>
13
14#include <string>
15#include <cstdint>
16
17namespace Lima {
18 namespace Common {
19 namespace XMLConfigurationFiles {
20 class ModuleConfigurationStructure;
21 }
22 }
23}
24
25namespace Lima {
26 class StructuredXmlDocumentHandler;
27namespace DocumentsReader {
28
29class DocumentReaderPrivate;
32{
33 public:
34 //DocumentReader(const std::string &configurationFileName);
35 //DocumentReader(Common::XMLConfigurationFiles::XMLConfigurationFileParser&);
40
41 virtual ~DocumentReader();
42
43 void setLinguisticXMLDocHandler ( StructuredXmlDocumentHandler* handler );
44
52 bool initFile ( const QString& filename );
53
54 bool initWithString (const QString & text);
55
62 bool readXMLDocument();
63
67 uint64_t getCurrentOffsetFromXmlReader();
68
69 void setShiftFrom(std::shared_ptr<const ShiftFrom> shiftFrom);
70
71 private:
73 DocumentReader& operator = ( const DocumentReader& );
74
76};
77
78} // end namespace
79} // end namespace
80
81#endif
Handler pour les elements de parsing de document structure.
#define DOCUMENTSREADER_EXPORT
NAUTITIA.