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
9
#include "
documentsreader_export.h
"
10
#include "
common/Handler/shiftFrom.h
"
11
12
#include <QMap>
13
14
#include <string>
15
#include <cstdint>
16
17
namespace
Lima
{
18
namespace
Common {
19
namespace
XMLConfigurationFiles {
20
class
ModuleConfigurationStructure;
21
}
22
}
23
}
24
25
namespace
Lima
{
26
class
StructuredXmlDocumentHandler;
27
namespace
DocumentsReader {
28
29
class
DocumentReaderPrivate;
31
class
DOCUMENTSREADER_EXPORT
DocumentReader
32
{
33
public
:
34
//DocumentReader(const std::string &configurationFileName);
35
//DocumentReader(Common::XMLConfigurationFiles::XMLConfigurationFileParser&);
39
DocumentReader
(
Lima::Common::XMLConfigurationFiles::ModuleConfigurationStructure
& conf );
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
:
72
DocumentReader
(
const
DocumentReader
& );
73
DocumentReader
& operator = (
const
DocumentReader
& );
74
75
DocumentReaderPrivate
* m_d;
76
};
77
78
}
// end namespace
79
}
// end namespace
80
81
#endif
Lima::Common::XMLConfigurationFiles::ModuleConfigurationStructure
Definition
moduleConfigurationStructure.h:39
Lima::DocumentsReader::DocumentReaderPrivate
Definition
documentReader.cpp:35
Lima::DocumentsReader::DocumentReader
read a XML document
Definition
documentReader.h:32
Lima::StructuredXmlDocumentHandler
Handler pour les elements de parsing de document structure.
Definition
StructuredXmlDocumentHandler.h:23
documentsreader_export.h
DOCUMENTSREADER_EXPORT
#define DOCUMENTSREADER_EXPORT
Definition
documentsreader_export.h:33
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
shiftFrom.h
lima_linguisticprocessing
src
linguisticProcessing
core
DocumentsReader
documentReader.h
Generated by
1.9.8