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
18
19namespace Lima {
20namespace 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 */
31{
32public:
34
35 virtual ~ExternalProcessUnit();
36
38 Manager* manager) override
39 ;
40
41 LimaStatusCode process(AnalysisContent& analysis) const override;
42
43private:
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
#define LIMA_LINGUISTICPROCESSORS_EXPORT
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
Manage initialization of InitializableObjects using configuration module and parameters.
NAUTITIA.
LimaStatusCode
Definition LimaCommon.h:236