signal_processing plugged.
[scilab.git] / scilab / modules / signal_processing / sci_gateway / cpp / signal_gw.cpp
1 /*
2  *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3  *  Copyright (C) 2011 - DIGITEO - Cedric DELAMARRE
4  *
5  *  This file must be used under the terms of the CeCILL.
6  *  This source file is licensed as described in the file COPYING, which
7  *  you should have received as part of this distribution.  The terms
8  *  are also available at
9  *  http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10  *
11  */
12
13 #include "context.hxx"
14 #include "function.hxx"
15 #include "signal_gw.hxx"
16
17 extern "C"
18 {
19     #include "gw_signal.h"
20 }
21
22 #define MODULE_NAME L"signal_processing"
23
24 int SignalProcessingModule::Load()
25 {
26     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"remez", &sci_remez, MODULE_NAME));
27     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"rpem", &sci_rpem, MODULE_NAME));
28     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"corr", &sci_corr, MODULE_NAME));
29    // symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"ffir", &sci_ffir, MODULE_NAME));
30     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"fft", &sci_fft, MODULE_NAME));
31    // symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"fiir", &sci_fiir, MODULE_NAME));
32     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"amell", &sci_amell, MODULE_NAME));
33     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"delip", &sci_delip, MODULE_NAME));
34     symbol::Context::getInstance()->AddFunction(types::Function::createFunction(L"syredi", &sci_syredi, MODULE_NAME));
35
36     return true;
37 }