Blame view

src/ExternLib/StatisticFunctions/AMDAPlugin.cc 3.51 KB
74a11471   Benjamin Renard   Add min, max, var...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Standard libraries include files
//-----------------------------------------------------------------------------
#include <iostream>

// Include oriented definitions 
//-----------------------------------------------------------------------------

// Module Kernel include files
//-----------------------------------------------------------------------------

#include "ProcessStatisticFunctions.hh"
#include "ServicesServer.hh"
#include "PluginManager.hh"

using namespace AMDA::Parameters;

// Other modules include files
//-----------------------------------------------------------------------------

/**
   Retrieve the Plugin version we're going to expect
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
22
23
24
 */
extern "C" const char* getPluginVersion() {
    return "(Version)";
74a11471   Benjamin Renard   Add min, max, var...
25
26
27
28
}

/**
   Tells us to register our functionality to an engine kernel
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
29
 */
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
30
31
extern "C" void registerPlugin(AMDA::Plugins::PluginManager & pm) {
    std::string pluginPath=pm.getCurrentPluginPath();
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
32
33
    ProcessFactory factProcessMinFunc = boost::factory<ProcessMinFunc*>();
    ServicesServer::getInstance()->addProcessFactory("min", factProcessMinFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
34
    ServicesServer::getInstance()->linkProcessWithPlugin("min", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
35
36
37

    ProcessFactory factProcessMinSmFunc = boost::factory<ProcessMinSmFunc*>();
    ServicesServer::getInstance()->addProcessFactory("min_sm", factProcessMinSmFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
38
    ServicesServer::getInstance()->linkProcessWithPlugin("min_sm", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
39
40
41

    ProcessFactory factProcessMaxFunc = boost::factory<ProcessMaxFunc*>();
    ServicesServer::getInstance()->addProcessFactory("max", factProcessMaxFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
42
    ServicesServer::getInstance()->linkProcessWithPlugin("max", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
43
44
45

    ProcessFactory factProcessMaxSmFunc = boost::factory<ProcessMaxSmFunc*>();
    ServicesServer::getInstance()->addProcessFactory("max_sm", factProcessMaxSmFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
46
    ServicesServer::getInstance()->linkProcessWithPlugin("max_sm", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
47
48
49

    ProcessFactory factProcessVarFunc = boost::factory<ProcessVarFunc*>();
    ServicesServer::getInstance()->addProcessFactory("var", factProcessVarFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
50
    ServicesServer::getInstance()->linkProcessWithPlugin("var", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
51
52
53

    ProcessFactory factProcessVarSmFunc = boost::factory<ProcessVarSmFunc*>();
    ServicesServer::getInstance()->addProcessFactory("var_sm", factProcessVarSmFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
54
    ServicesServer::getInstance()->linkProcessWithPlugin("var_sm", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
55
56
57

    ProcessFactory factProcessRmsFunc = boost::factory<ProcessRmsFunc*>();
    ServicesServer::getInstance()->addProcessFactory("rms", factProcessRmsFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
58
    ServicesServer::getInstance()->linkProcessWithPlugin("rms", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
59
60
61

    ProcessFactory factProcessRmsSmFunc = boost::factory<ProcessRmsSmFunc*>();
    ServicesServer::getInstance()->addProcessFactory("rms_sm", factProcessRmsSmFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
62
    ServicesServer::getInstance()->linkProcessWithPlugin("rms_sm", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
63
64
65

    ProcessFactory factProcessSkewFunc = boost::factory<ProcessSkewFunc*>();
    ServicesServer::getInstance()->addProcessFactory("skew", factProcessSkewFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
66
    ServicesServer::getInstance()->linkProcessWithPlugin("skew", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
67
68
69

    ProcessFactory factProcessSkewSmFunc = boost::factory<ProcessSkewSmFunc*>();
    ServicesServer::getInstance()->addProcessFactory("skew_sm", factProcessSkewSmFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
70
    ServicesServer::getInstance()->linkProcessWithPlugin("skew_sm", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
71
72
73

    ProcessFactory factProcessMedianFunc = boost::factory<ProcessMedianFunc*>();
    ServicesServer::getInstance()->addProcessFactory("median", factProcessMedianFunc);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
74
    ServicesServer::getInstance()->linkProcessWithPlugin("median", pluginPath);
74a11471   Benjamin Renard   Add min, max, var...
75
}