cosmetic, rename functions
[scilab.git] / scilab / modules / history_manager / sci_gateway / cpp / history_manager_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 "history_manager_gw.hxx"
16
17 #define MODULE_NAME L"history_manager"
18
19 int HistoryManagerModule::Load()
20 {
21     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"loadhistory", &sci_loadhistory, MODULE_NAME));
22     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"addhistory",   &sci_addhistory, MODULE_NAME));
23     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"displayhistory",   &sci_displayhistory, MODULE_NAME));
24     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"gethistoryfile",   &sci_gethistoryfile, MODULE_NAME));
25     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"gethistory", &sci_gethistory, MODULE_NAME));
26     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"historymanager",   &sci_historymanager, MODULE_NAME));
27     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"historysize",   &sci_historysize, MODULE_NAME));
28     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"removelinehistory",   &sci_removelinehistory, MODULE_NAME));
29     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"resethistory", &sci_resethistory, MODULE_NAME));
30     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"saveafterncommands",   &sci_saveafterncommands, MODULE_NAME));
31     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"saveconsecutivecommands",   &sci_saveconsecutivecommands, MODULE_NAME));
32     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"savehistory", &sci_savehistory, MODULE_NAME));
33     symbol::Context::getInstance()->addFunction(types::Function::createFunction(L"sethistoryfile",   &sci_sethistoryfile, MODULE_NAME));
34
35     return true;
36 }