Blame view

src/ExternLib/Maglib/AMDAPlugin.cc 1.34 KB
afa22fae   Hacene SI HADJ MOHAND   presque
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
#include "ServicesServer.hh"
#include "PluginManager.hh"

#include "MLTProcess.hh"

using namespace AMDA::Parameters;

/**
   Retrieve the Plugin version we're going to expect
e88e22d1   Hacene SI HADJ MOHAND   in progress
15
16
17
 */
extern "C" const char* getPluginVersion() {
    return "(Version)";
afa22fae   Hacene SI HADJ MOHAND   presque
18
19
20
21
}

/**
   Tells us to register our functionality to an engine kernel
e88e22d1   Hacene SI HADJ MOHAND   in progress
22
23
 */
extern "C" void registerPlugin(AMDA::Plugins::PluginManager & pm) {
afa22fae   Hacene SI HADJ MOHAND   presque
24
    ProcessFactory factMLTProcess = boost::factory<MLTProcess*>();
e88e22d1   Hacene SI HADJ MOHAND   in progress
25
26
27
    ServicesServer::getInstance()->addProcessFactory("maglib_mlt", factMLTProcess);
    ServicesServer::getInstance()->linkProcessWithPlugin("maglib_mlt", pm.getCurrentPluginPath());

37b19066   Hacene SI HADJ MOHAND   integration magli...
28
  
e88e22d1   Hacene SI HADJ MOHAND   in progress
29
30
31
    ProcessFactory factInvLatProcess = boost::factory<InvLatProcess*>();
    ServicesServer::getInstance()->addProcessFactory("maglib_invlat", factInvLatProcess);
    ServicesServer::getInstance()->linkProcessWithPlugin("maglib_invlat", pm.getCurrentPluginPath());
37b19066   Hacene SI HADJ MOHAND   integration magli...
32
  
e88e22d1   Hacene SI HADJ MOHAND   in progress
33
34
35
    ProcessFactory factLparamProcess = boost::factory<LparamProcess*>();
    ServicesServer::getInstance()->addProcessFactory("maglib_lparam", factLparamProcess);
    ServicesServer::getInstance()->linkProcessWithPlugin("maglib_lparam", pm.getCurrentPluginPath());
37b19066   Hacene SI HADJ MOHAND   integration magli...
36
     
afa22fae   Hacene SI HADJ MOHAND   presque
37
}