Blame view

src/ExternLib/Cain/AMDAPlugin.cc 934 Bytes
a1ab0552   Hacene SI HADJ MOHAND   plugin added
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * 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.
 */

/* 
 * File:   AMDAPlugin.cc
 * Author: hacene
 * 
 * Created on June 5, 2020, 2:31 PM
 */
#include <iostream>


#include "ServicesServer.hh"
#include "PluginManager.hh"
#include "cainProcess.hh"

using namespace AMDA::Parameters;

/**
   Retrieve the Plugin version we're going to expect
*/
extern "C" const char* getPluginVersion()
{
	return "(Version)";
}

/**
   Tells us to register our functionality to an engine kernel
*/
extern "C" void registerPlugin(AMDA::Plugins::PluginManager & pm)
{
    ProcessFactory fact_cainProcess = boost::factory<cainProcess*>();
a3f0658d   Hacene SI HADJ MOHAND   lib ok validation ko
36
37
    ServicesServer::getInstance()->addProcessFactory("bcain", fact_cainProcess); 
    ServicesServer::getInstance()->linkProcessWithPlugin("bcain", pm.getCurrentPluginPath()); 
a1ab0552   Hacene SI HADJ MOHAND   plugin added
38
}