本文整理汇总了C++中ExecBlock类的典型用法代码示例。如果您正苦于以下问题:C++ ExecBlock类的具体用法?C++ ExecBlock怎么用?C++ ExecBlock使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ExecBlock类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: initialize
Error initialize()
{
using boost::bind;
using namespace module_context;
ExecBlock initBlock;
initBlock.addFunctions()
(bind(registerAsyncRpcMethod, "check_for_updates", checkForUpdates))
;
return initBlock.execute();
}
示例2: initData
core::Error initData()
{
RS_REGISTER_CALL_METHOD(rs_recordData, 2);
ExecBlock initBlock;
initBlock.addFunctions()
(boost::bind(module_context::sourceModuleRFile, "NotebookData.R"))
(boost::bind(module_context::registerUriHandler, kNotebookDataResourceLocation, handleNotebookDataResReq));
return initBlock.execute();
}
示例3: initialize
Error initialize()
{
using boost::bind;
using namespace session::module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(data::viewer::initialize)
(bind(sourceModuleRFile, "SessionDataImport.R"))
(bind(sourceModuleRFile, "SessionDataImportV2.R"));
return initBlock.execute();
}
示例4: initialize
Error initialize()
{
// install rpc methods
using boost::bind;
using namespace module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerUriHandler, "/view_pdf", handleViewPdf))
(bind(registerUriHandler, kPdfJsPath, handlePdfJs))
;
return initBlock.execute();
}
示例5: initialize
Error initialize()
{
using boost::bind;
using namespace module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "accept_agreement", handleAcceptAgreement))
(bind(registerUriHandler, "/agreement", handleAgreementRequest))
;
return initBlock.execute();
}
示例6: initialize
Error initialize()
{
RS_REGISTER_CALL_METHOD(rs_fromJSON, 1);
RS_REGISTER_CALL_METHOD(rs_isNullExternalPointer, 1);
using boost::bind;
using namespace module_context;
ExecBlock initBlock;
initBlock.addFunctions()
(bind(sourceModuleRFile, "SessionRUtil.R"));
return initBlock.execute();
}
示例7: initialize
Error initialize()
{
// install rpc methods
using boost::bind;
using namespace module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "process_prepare", procInit))
(bind(registerRpcMethod, "process_start", procStart))
(bind(registerRpcMethod, "process_interrupt", procInterrupt));
return initBlock.execute();
}
示例8: initialize
Error initialize()
{
// install rpc methods
using boost::bind;
using namespace module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(tex::compile_pdf::initialize)
(bind(registerRpcMethod, "is_tex_installed", isTexInstalled))
(bind(registerRpcMethod, "get_tex_capabilities", getTexCapabilities))
;
return initBlock.execute();
}
示例9: initialize
Error initialize()
{
ExecBlock initBlock ;
source_database::events().onDocPendingRemove.connect(onDocPendingRemove);
initBlock.addFunctions()
(boost::bind(module_context::sourceModuleRFile, "SessionProfiler.R"))
(boost::bind(module_context::registerUriHandler, "/" kProfilesUrlPath "/", handleProfilerResReq));
RS_REGISTER_CALL_METHOD(rs_profilesPath, 0);
return initBlock.execute();
}
示例10: initialize
Error initialize()
{
using namespace module_context;
module_context::events().onClientInit.connect(boost::bind(onClientInit));
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "start_posix_shell", startPosixShell))
(bind(registerRpcMethod, "interrupt_posix_shell", interruptPosixShell))
(bind(registerRpcMethod, "send_input_to_posix_shell", sendInputToPosixShell))
(bind(registerRpcMethod, "terminate_posix_shell", terminatePosixShell));
return initBlock.execute();
}
示例11: initialize
Error initialize()
{
// subscribe to events
using boost::bind;
using namespace module_context;
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "get_function_state", getFunctionState))
(bind(registerRpcMethod, "set_function_breakpoints", setBreakpoints))
(bind(sourceModuleRFile, "SessionBreakpoints.R"));
return initBlock.execute();
}
示例12: initialize
core::Error initialize()
{
using namespace module_context;
using boost::bind;
events().afterSessionInitHook.connect(afterSessionInitHook);
events().onClientInit.connect(onClientInit);
ExecBlock initBlock;
initBlock.addFunctions()
(bind(registerRpcMethod, "save_snippets", saveSnippets))
(bind(registerRpcMethod, "get_snippets", getSnippets));
return initBlock.execute();
}
示例13: initialize
Error initialize()
{
// subscribe to events
using boost::bind;
using namespace module_context;
events().onPackageLoaded.connect(onPackageLoaded);
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "get_function_sync_state", getFunctionSyncState))
(bind(sourceModuleRFile, "SessionBreakpoints.R"));
return initBlock.execute();
}
示例14: initialize
Error initialize()
{
// subscribe to events
using boost::bind;
using namespace session::module_context;
events().onDetectChanges.connect(bind(onDetectChanges, _1));
// source R functions
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "list_environment", listEnvironment))
(bind(sourceModuleRFile, "SessionEnvironment.R"));
return initBlock.execute();
}
示例15: initialize
core::Error initialize()
{
using namespace session::module_context;
// register suspend handler
addSuspendHandler(SuspendHandler(onSuspend, onResume));
// install handlers
using boost::bind;
ExecBlock initBlock ;
initBlock.addFunctions()
(bind(registerRpcMethod, "begin_find", beginFind))
(bind(registerRpcMethod, "stop_find", stopFind))
(bind(registerRpcMethod, "clear_find_results", clearFindResults));
return initBlock.execute();
}