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
15
16#include <string>
17#include <vector>
18#include <map>
19
20namespace Lima
21{
22namespace Common
23{
24namespace PropertyCode
25{
26
27class XmlPropertyReaderPrivate;
29{
30public:
31 // -----------------------------------------------------------------------
32 // Constructors
33 // -----------------------------------------------------------------------
36
38 {
39 std::string name;
40 std::vector<std::string> values;
41 };
42
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
57private:
58
60};
61
62} // closing namespace PropertyCode
63} // closing namespace Common
64} // closing namespace Lima
65
66#endif
#define LIMA_PROPERTYCODE_EXPORT
NAUTITIA.
std::vector< std::pair< std::string, std::vector< std::string > > > values