AMDAPlugin.cc
1.1 KB
/*
* 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 "KT17_CartProcess.hh"
#include "KT17_MagProcess.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 factKT17_CartProcess = boost::factory<KT17_CartProcess *>();
ServicesServer::getInstance()->addProcessFactory("KT17_cart", factKT17_CartProcess);
ServicesServer::getInstance()->linkProcessWithPlugin("KT17_cart", pm.getCurrentPluginPath());
ProcessFactory factKT17_MagProcess = boost::factory<KT17_MagProcess *>();
ServicesServer::getInstance()->addProcessFactory("KT17_mag", factKT17_MagProcess);
ServicesServer::getInstance()->linkProcessWithPlugin("KT17_mag", pm.getCurrentPluginPath());
}