LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
groupe.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
21#ifndef LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_GROUPE_H
22#define LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_GROUPE_H
23
24
25#include <limits>
26#include <string>
27#include <map>
28#include <cstdint>
29
30namespace Lima {
31namespace LinguisticProcessing {
32namespace AnalysisDumpers {
33namespace EasyXmlDumper {
34
40class Groupe : public std::map< uint64_t, uint64_t >
41{
42
43public:
44
45 Groupe() :
46 std::map< uint64_t, uint64_t >(),
47 m_id(std::numeric_limits<uint64_t>::max()),
48 m_type() {};
49
50 Groupe(const Groupe& group) :
51 std::map< uint64_t, uint64_t >(group),
52 m_id(group.m_id),
53 m_type(group.m_type) {};
54
55 virtual ~Groupe() {};
56
57 inline uint64_t id() { return m_id; };
58 inline void id(uint64_t anId) { m_id = anId; };
59
60 inline const std::string& type() const { return m_type; };
61 inline void type(const std::string& aType) { m_type = aType; };
62
63private:
64
65 uint64_t m_id;
66 std::string m_type;
67
68};
69
70} // end namespace EasyXmlDumper
71} // end namespace AnalysisDumpers
72} // end namespace LinguisticProcessings
73} // end namespace Lima
74
75#endif // LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_GROUPE_H
NAUTITIA.
STL namespace.