MCPcopy Create free account
hub / github.com/SNAS/openbmp / topicSubstitutions

Method topicSubstitutions

Server/src/Config.cpp:843–854  ·  view source on GitHub ↗

* Perform topic name substitutions based on topic variables */

Source from the content-addressed store, hash-verified

841 * Perform topic name substitutions based on topic variables
842 */
843void Config::topicSubstitutions() {
844 // not the fastest update, but this is fine since it's only done on startup
845 for (topic_vars_map_iter v_it = topic_vars_map.begin(); v_it != topic_vars_map.end(); ++v_it) {
846 std::string var = "{";
847 var += v_it->first;
848 var += "}";
849
850 for (topic_names_map_iter n_it = topic_names_map.begin(); n_it != topic_names_map.end(); ++n_it) {
851 boost::replace_all(n_it->second, var, v_it->second);
852 }
853 }
854}
855
856/**
857 * print warning message for parsing node

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected