AMDAPlugin.cc 772 Bytes
/*
 * 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 "SpectrumProcess.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 factSpectrum = boost::factory<SpectrumProcess*>();
    ServicesServer::getInstance()->addProcessFactory("spectrum", factSpectrum);
    ServicesServer::getInstance()->linkProcessWithPlugin("spectrum", pm.getCurrentPluginPath());
}