Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想要利用 lua_processor 增加 processor component #513

Closed
shewer opened this issue Dec 2, 2021 · 0 comments
Closed

想要利用 lua_processor 增加 processor component #513

shewer opened this issue Dec 2, 2021 · 0 comments

Comments

@shewer
Copy link
Contributor

shewer commented Dec 2, 2021

lua_processor 可利用config在增加 segment translator filter
也可以在 component initialize前修改參數
唯獨無法再增加 engine/processors (ConfigList)
可否將 for (size_t i=0 ; i <n; ++i) 改成 for(iter ...

for (size_t i = 0; i < n; ++i) {

@@ -299,8 +299,8 @@ void ConcreteEngine::InitializeComponents() {
   // create processors
   if (auto processor_list = config->GetList("engine/processors")) {
     size_t n = processor_list->size();
-    for (size_t i = 0; i < n; ++i) {
-      auto prescription = As<ConfigValue>(processor_list->GetAt(i));
+    for (auto iter=processor_list->begin();iter != processor_list->end(); iter++){
+      auto prescription = As<ConfigValue>(*iter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant