LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
contentHandler.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 CONTENTHANDLER_H
11#define CONTENTHANDLER_H
12
13#include <map>
14#include <vector>
16#include "common/LimaCommon.h"
17
18namespace Lima {
19
21template <typename Content> class ContentHandler
22{
23public:
25 virtual ~ContentHandler() {
27 }
28
30 void addContent ( CONTENT_ID ContentId, Content datas);
31
32 void setContents ( const std::map < CONTENT_ID , Content > contents);
33
36 Content* getContent ( CONTENT_ID ContentId ) ;
37
39 const std::map < CONTENT_ID , Content >& getContents() const ;
40
43
44private:
45 std::map < CONTENT_ID , Content > m_contents;
46
47};
48}
49#include "common/Handler/contentHandler.tcc"
50
51
52#endif
Common Types.
manipulateur de contenu
const std::map< CONTENT_ID, Content > & getContents() const
Récupérer tous les contenus du handler.
void resetHandler()
Effacer les contenus du handler.
void addContent(CONTENT_ID ContentId, Content datas)
Ajouter un contenu au handler.
Content * getContent(CONTENT_ID ContentId)
Récupérer un contenu du handler.
void setContents(const std::map< CONTENT_ID, Content > contents)
NAUTITIA.
uint64_t CONTENT_ID
Identifier of an feature content.
Definition DataTypes.h:45