LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ExternalProcessUnit.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
* @author besancon (besanconr@zoe.cea.fr)
8
* @date Mon Jan 17 2011
9
* @brief this class contains a generic process unit that use a system call
10
* to let an external process do the job.
11
***********************************************************************/
12
#ifndef LIMA_LINGUISTICPROCESSING_EXTERNALPROCESSUNIT_H
13
#define LIMA_LINGUISTICPROCESSING_EXTERNALPROCESSUNIT_H
14
15
#include "
LinguisticProcessorsExport.h
"
16
#include "
common/MediaProcessors/MediaProcessUnit.h
"
17
#include "
linguisticProcessing/client/AnalysisHandlers/AbstractTextualAnalysisHandler.h
"
18
19
namespace
Lima
{
20
namespace
LinguisticProcessing {
21
22
#define EXTERNALPROCESSUNIT_CLASSID "ExternalProcessUnit"
23
24
/*
25
* @brief this class contains a generic process unit that use a system
26
* call to let an external process do the job. The input for this
27
* external program is produced by a dumper given as a parameter,
28
* and the output is read by a Loader also given as a parameter
29
*/
30
class
LIMA_LINGUISTICPROCESSORS_EXPORT
ExternalProcessUnit
:
public
MediaProcessUnit
31
{
32
public
:
33
ExternalProcessUnit
();
34
35
virtual
~ExternalProcessUnit
();
36
37
void
init(
Common::XMLConfigurationFiles::GroupConfigurationStructure
& unitConfiguration,
38
Manager
* manager)
override
39
;
40
41
LimaStatusCode
process(
AnalysisContent
& analysis)
const override
;
42
43
private
:
44
std::shared_ptr<MediaProcessUnit> m_dumper;
45
std::shared_ptr<MediaProcessUnit> m_loader;
46
QString m_commandLine;
47
QString m_inputSuffix;
48
QString m_outputSuffix;
49
};
50
51
}
// end namespace
52
}
// end namespace
53
54
#endif
AbstractTextualAnalysisHandler.h
LinguisticProcessorsExport.h
LIMA_LINGUISTICPROCESSORS_EXPORT
#define LIMA_LINGUISTICPROCESSORS_EXPORT
Definition
LinguisticProcessorsExport.h:27
MediaProcessUnit.h
Lima::AnalysisContent
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Definition
AnalysisContent.h:37
Lima::Common::XMLConfigurationFiles::GroupConfigurationStructure
Definition
groupConfigurationStructure.h:32
Lima::InitializableObjectManager
Manage initialization of InitializableObjects using configuration module and parameters.
Definition
InitializableObjectManager.h:32
Lima::LinguisticProcessing::ExternalProcessUnit
Definition
ExternalProcessUnit.h:31
Lima::MediaProcessUnit
Definition
MediaProcessUnit.h:33
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LimaStatusCode
LimaStatusCode
Definition
LimaCommon.h:236
lima_linguisticprocessing
src
linguisticProcessing
core
LinguisticProcessors
ExternalProcessUnit.h
Generated by
1.9.8