Skip to content
Discussion options

You must be logged in to vote

Okay, I believe the answer is in a variant of the registration macro that passes a config. Something like this example:

  PHLEX_REGISTER_ALGORITHMS(m, config)
  {
    auto input_query = config.get<product_query>("consumes");   // suffix comes from config
    auto output_suffix = config.get<std::string>("produces");   // suffix comes from config

    m.make<hit_finder>(config.get<double>("threshold"))
     .transform("find_hits", &hit_finder::operator(), concurrency::unlimited)
     .input_family(input_query)
     .output_product_suffixes(output_suffix);
  }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by knoepfel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants