Blame view

src/ExternLib/Shue/AMDAPlugin.cc 748 Bytes
5d3b0cd0   Hacene SI HADJ MOHAND   shue98 ok
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
/*
 * 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 <iostream>
#include "ServicesServer.hh"
#include "PluginManager.hh"
#include "ProcessShue.hh"

using namespace AMDA::Parameters;

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

extern "C" void registerPlugin(AMDA::Plugins::PluginManager & pm){
    ProcessFactory factShue = boost::factory<ProcessShue*>();
    ServicesServer::getInstance()->addProcessFactory("shue", factShue);
    ServicesServer::getInstance()->linkProcessWithPlugin("shue", pm.getCurrentPluginPath());
}