MCPcopy Create free account
hub / github.com/comaps/comaps / NewFeatureCategories

Method NewFeatureCategories

libs/editor/new_feature_categories.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace osm
24{
25NewFeatureCategories::NewFeatureCategories(editor::EditorConfig const & config)
26{
27 auto const & c = classif();
28 for (auto const & clType : config.GetTypesThatCanBeAdded())
29 {
30 uint32_t const type = c.GetTypeByReadableObjectName(clType);
31 if (type == 0)
32 {
33 LOG(LWARNING, ("Unknown type in Editor's config:", clType));
34 continue;
35 }
36 m_types.emplace_back(clType);
37 }
38}
39
40NewFeatureCategories::NewFeatureCategories(NewFeatureCategories && other) noexcept
41 : m_types(std::move(other.m_types))

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.45

Tested by

no test coverage detected