AMDAPlugin.cc 1.8 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.
 */

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

#include "Jupiter_JRM09_CAN81_MagProcess.hh"
#include "Jupiter_JRM09_CAN81_CartProcess.hh"
#include "Jupiter_JRM09_CAN81_SphrProcess.hh"
#include "ServicesServer.hh"
#include "PluginManager.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 factJupiter_JRM09_CAN81_MagProcess = boost::factory<Jupiter_JRM09_CAN81_MagProcess*>();
    ServicesServer::getInstance()->addProcessFactory("jupiter_JRM09_CAN81_bmag", factJupiter_JRM09_CAN81_MagProcess); 
    ServicesServer::getInstance()->linkProcessWithPlugin("jupiter_JRM09_CAN81_bmag", pm.getCurrentPluginPath()); 
    
     ProcessFactory factJupiter_JRM09_CAN81_CartProcess = boost::factory<Jupiter_JRM09_CAN81_CartProcess*>();
    ServicesServer::getInstance()->addProcessFactory("jupiter_JRM09_CAN81_bcart", factJupiter_JRM09_CAN81_CartProcess); 
    ServicesServer::getInstance()->linkProcessWithPlugin("jupiter_JRM09_CAN81_bcart", pm.getCurrentPluginPath()); 
    
     ProcessFactory factJupiter_JRM09_CAN81_SphrProcess = boost::factory<Jupiter_JRM09_CAN81_SphrProcess*>();
    ServicesServer::getInstance()->addProcessFactory("jupiter_JRM09_CAN81_bsphr", factJupiter_JRM09_CAN81_SphrProcess); 
    ServicesServer::getInstance()->linkProcessWithPlugin("jupiter_JRM09_CAN81_bsphr", pm.getCurrentPluginPath()); 
   
}