LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LinguisticMetaData.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-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_LINGUISTICPROCESSINGLINGUISTICMETADATA_H
11#define LIMA_LINGUISTICPROCESSINGLINGUISTICMETADATA_H
12
17
18#include <QDate>
19namespace Lima
20{
21
22namespace LinguisticProcessing
23{
24
32{
33public:
35 virtual ~LinguisticMetaData();
36
37 bool hasMetaData(const std::string& id) const ;
38 const std::string& getMetaData(const std::string& id) const ;
39 const std::map<std::string,std::string>& getAllMetaData(void) const;
40 void setMetaData(const std::string& id,const std::string& value);
41 void setMetaData(const std::map<std::string,std::string>& metaDatas);
42
43 uint64_t getStartOffset() const;
44 void setStartOffset(uint64_t startOffset);
45
46 const QDate& getDate(const std::string& dateName) const;
47 const QTime& getTime(const std::string& timeName) const;
48 const std::string& getLocation(const std::string& locName) const;
49 void setDate(const std::string& dateName,const QDate&);
50 void setTime(const std::string& timeName,const QTime&);
51 void setLocation(const std::string& locName,const std::string&);
52
53private:
54
55 std::map<std::string,std::string> m_metaData;
56 uint64_t m_startOffset;
57 // add named information about dates, times and locations:
58 // corresponding to the document, or current
59 std::map<std::string,QDate> m_dates;
60 std::map<std::string,QTime> m_times;
61 std::map<std::string,std::string> m_locations;
62};
63
64} // LinguisticProcessing
65
66} // Lima
67
68#endif
#define LIMA_LINGUISTICPROCESSORS_EXPORT
just for semantics: base class for analysisData
contains metadata to be kept during the analysis: global generic metadata: file name,...
NAUTITIA.