本文整理汇总了C++中PluginManager::loadParameterFile方法的典型用法代码示例。如果您正苦于以下问题:C++ PluginManager::loadParameterFile方法的具体用法?C++ PluginManager::loadParameterFile怎么用?C++ PluginManager::loadParameterFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PluginManager
的用法示例。
在下文中一共展示了PluginManager::loadParameterFile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: pluginManagerTest
void pluginManagerTest() {
sout << "### PluginManager Test ###" << std::endl << std::endl;
PluginManager* man = new PluginManager(MODULE_DIR);
ParameterFile file;
// setup a dummy module that gets data from dynamic dummy module
file.set("dynamic.type", "dynamicdummymodule");
file.set("dummy.type", "dummymodule");
file.set("dynamic.input", 0);
file.set("dynamic.output", 1);
file.set("dynamic.out1", "dummy.in");
file.set("dummy.in", "dynamic.out1");
man->loadParameterFile(file);
sout << std::endl;
man->runWorkflow();
sout << std::endl;
sout << "~~~~~~~" << std::endl;
// add dynamic dummy module and connect it to first dynamic module
file.set("dynamic2.type", "dynamicdummymodule");
file.set("dynamic.input", 2);
file.set("dynamic2.input", 0);
file.set("dynamic2.output", 2);
file.set("dynamic2.parameters", 5);
file.set("dynamic2.param4", 999);
file.set("dynamic.in1", "dynamic2.out1");
file.set("dynamic2.out1", "dynamic.in1");
file.set("dynamic.in2", "dynamic2.out2");
file.set("dynamic2.out2", "dynamic.in2");
man->loadParameterFile(file);
sout << std::endl;
man->runWorkflow();
sout << std::endl;
delete man;
sout << std::endl << "### End of Test ###" << std::endl << std::endl;
}