本文整理汇总了C++中YarpPluginSettings::setLibraryMethodName方法的典型用法代码示例。如果您正苦于以下问题:C++ YarpPluginSettings::setLibraryMethodName方法的具体用法?C++ YarpPluginSettings::setLibraryMethodName怎么用?C++ YarpPluginSettings::setLibraryMethodName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类YarpPluginSettings
的用法示例。
在下文中一共展示了YarpPluginSettings::setLibraryMethodName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
void init() {
if (plugin.open(settings)) {
dev.open(*plugin.getFactory());
settings.setLibraryMethodName(plugin.getFactory()->getName(),
settings.getMethodName());
settings.setClassInfo(plugin.getFactory()->getClassName(),
plugin.getFactory()->getBaseClassName());
}
}
示例2: init
void init() {
YarpPluginSelector selector;
selector.scan();
settings.setSelector(selector);
if (plugin.open(settings)) {
car.open(*plugin.getFactory());
settings.setLibraryMethodName(plugin.getFactory()->getName(),
settings.getMethodName());
}
}
示例3: main
int main() {
YarpPluginSettings settings;
settings.setLibraryMethodName("hoopy","hoopy");
YarpPlugin<Handler> handler;
if (!handler.open(settings)) {
settings.reportFailure();
printf("Maybe set LD_LIBRARY_PATH or equivalent.\n");
return 1;
}
printf("Found handler!\n");
Handler *hoopy = handler.create();
if (!hoopy) {
printf("Failed to create handler\n");
return 1;
}
int result = hoopy->hello();
printf("Result is %d\n", result);
handler.destroy(hoopy);
return 0;
}
示例4: StubCarrier
StubCarrier(const char *dll_name, const char *fn_name) {
settings.setLibraryMethodName(dll_name,fn_name);
init();
}
示例5: StubDriver
StubDriver(const char *dll_name, const char *fn_name, bool verbose = true) {
settings.setLibraryMethodName(dll_name,fn_name);
settings.setVerboseMode(verbose);
init();
}