LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
XmlPropertyReader.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
* Copyright (C) 2004 by CEA LIST *
8
* *
9
***************************************************************************/
10
11
#ifndef LIMA_COMMON_PROPERTYCODE_XMLPROPERTYHANDLER_H
12
#define LIMA_COMMON_PROPERTYCODE_XMLPROPERTYHANDLER_H
13
14
#include "
linguisticProcessing/LinguisticProcessingCommon.h
"
15
16
#include <string>
17
#include <vector>
18
#include <map>
19
20
namespace
Lima
21
{
22
namespace
Common
23
{
24
namespace
PropertyCode
25
{
26
27
class
XmlPropertyReaderPrivate;
28
class
LIMA_PROPERTYCODE_EXPORT
XmlPropertyReader
29
{
30
public
:
31
// -----------------------------------------------------------------------
32
// Constructors
33
// -----------------------------------------------------------------------
34
XmlPropertyReader
();
35
~XmlPropertyReader
();
36
37
struct
PropertyDescription
38
{
39
std::string
name
;
40
std::vector<std::string>
values
;
41
};
42
43
struct
SubPropertyDescription
44
{
45
std::string
name
;
46
std::string
parentName
;
47
std::vector<std::pair<std::string,std::vector<std::string> > >
values
;
48
};
49
50
bool
parse(QIODevice *device);
51
52
QString errorString()
const
;
53
54
const
std::vector<PropertyDescription>& getProperties();
55
const
std::vector<SubPropertyDescription>& getSubProperties();
56
57
private
:
58
59
XmlPropertyReaderPrivate
* m_d;
60
};
61
62
}
// closing namespace PropertyCode
63
}
// closing namespace Common
64
}
// closing namespace Lima
65
66
#endif
LinguisticProcessingCommon.h
LIMA_PROPERTYCODE_EXPORT
#define LIMA_PROPERTYCODE_EXPORT
Definition
LinguisticProcessingCommon.h:81
Lima::Common::PropertyCode::XmlPropertyReaderPrivate
Definition
XmlPropertyReader.cpp:19
Lima::Common::PropertyCode::XmlPropertyReader
Definition
XmlPropertyReader.h:29
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::Common::PropertyCode::XmlPropertyReader::PropertyDescription
Definition
XmlPropertyReader.h:38
Lima::Common::PropertyCode::XmlPropertyReader::PropertyDescription::name
std::string name
Definition
XmlPropertyReader.h:39
Lima::Common::PropertyCode::XmlPropertyReader::PropertyDescription::values
std::vector< std::string > values
Definition
XmlPropertyReader.h:40
Lima::Common::PropertyCode::XmlPropertyReader::SubPropertyDescription
Definition
XmlPropertyReader.h:44
Lima::Common::PropertyCode::XmlPropertyReader::SubPropertyDescription::parentName
std::string parentName
Definition
XmlPropertyReader.h:46
Lima::Common::PropertyCode::XmlPropertyReader::SubPropertyDescription::name
std::string name
Definition
XmlPropertyReader.h:45
Lima::Common::PropertyCode::XmlPropertyReader::SubPropertyDescription::values
std::vector< std::pair< std::string, std::vector< std::string > > > values
Definition
XmlPropertyReader.h:47
lima_linguisticprocessing
src
linguisticProcessing
common
PropertyCode
XmlPropertyReader.h
Generated by
1.9.8