LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
MediaProcessors.h
Go to the documentation of this file.
1// Copyright 2002-2021 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-2021 by CEA LIST *
8 * *
9 ***************************************************************************/
10#ifndef LIMA_COMMON_MEDIAPROCESSORSMEDIAPROCESSORS_H
11#define LIMA_COMMON_MEDIAPROCESSORSMEDIAPROCESSORS_H
12
14
16#include "common/LimaCommon.h"
17
18#include <deque>
19#include <string>
20#include <set>
21
22namespace Lima{
23
24 namespace Common {
25 namespace XMLConfigurationFiles {
28 }
29 }
31
33class LIMA_MEDIAPROCESSORS_EXPORT MediaProcessors : public Singleton<MediaProcessors>
34{
35 friend class Singleton<MediaProcessors>;
36
37 public:
38
39 virtual ~MediaProcessors();
40
48 std::shared_ptr<MediaProcessUnitPipeline> getPipelineForId ( MediaId med,const std::string& id ) const;
49
57 std::shared_ptr<MediaAnalysisDumper> getAnalysisDumperForId ( MediaId med,const std::string& type ) const;
58
67 void initMedia (
68 MediaId,
70
71 void initPipelines (
73 const std::deque<std::string>& pipelines );
74
80 void releaseMedia ( MediaId med );
81
82 void getAvailableMedia ( std::set<MediaId>& ids ) const;
83 void getAvailablePipelinesForMedia ( MediaId id, std::set<std::string>& pipelines ) const;
84
85 const std::map<MediaId,MediaProcessUnit::Manager*>& managers() const;
86
87
88private:
89
90 MediaProcessors();
91 MediaProcessors(const MediaProcessors& mp);
92 MediaProcessors& operator=(const MediaProcessors& mp);
93
95};
96
97
98} // Lima
99
100#endif
#define LIMA_MEDIAPROCESSORS_EXPORT
Definition LimaCommon.h:131
void getAvailableMedia(std::set< MediaId > &ids) const
void initPipelines(Common::XMLConfigurationFiles::GroupConfigurationStructure &confModule, const std::deque< std::string > &pipelines)
void initMedia(MediaId, Common::XMLConfigurationFiles::ModuleConfigurationStructure &procConf)
(re)initialize the process units manager of a media.
void getAvailablePipelinesForMedia(MediaId id, std::set< std::string > &pipelines) const
std::shared_ptr< MediaAnalysisDumper > getAnalysisDumperForId(MediaId med, const std::string &type) const
get the dumper for the given id and media
const std::map< MediaId, MediaProcessUnit::Manager * > & managers() const
std::shared_ptr< MediaProcessUnitPipeline > getPipelineForId(MediaId med, const std::string &id) const
get the pipeline for the given id and media
void releaseMedia(MediaId med)
release the pipelines and the process units (and thus the models they loaded) of a media.
NAUTITIA.