Blame view

src/ExternLib/Timestamp/AMDAPlugin.cc 1.14 KB
3b7530a6   Erdogan Furkan   # 6598- Creation ...
1
2
3
4
5
6
7
8
9
/*
 * 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 "Timestamp_Process.hh"
be29edb9   Erdogan Furkan   #6598 / #10557 / ...
10
#include "Timestamp_FromProcess.hh"
3b7530a6   Erdogan Furkan   # 6598- Creation ...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

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 factTimestamp_Process = boost::factory<Timestamp_Process *>();
  ServicesServer::getInstance()->addProcessFactory("timestamp", factTimestamp_Process);
  ServicesServer::getInstance()->linkProcessWithPlugin("timestamp", pm.getCurrentPluginPath());
be29edb9   Erdogan Furkan   #6598 / #10557 / ...
30
31
32
33

  ProcessFactory factTimestamp_FromProcess = boost::factory<Timestamp_FromProcess *>();
  ServicesServer::getInstance()->addProcessFactory("timestampfrom", factTimestamp_FromProcess);
  ServicesServer::getInstance()->linkProcessWithPlugin("timestampfrom", pm.getCurrentPluginPath());
3b7530a6   Erdogan Furkan   # 6598- Creation ...
34
}