MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / TaskFactory

Method TaskFactory

app/actions.cpp:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155TaskFactory::TaskFactory() {
156 registry_.emplace(adjust, std::make_unique<Adjust>());
157 registry_.emplace(print, std::make_unique<Print>());
158 registry_.emplace(rename, std::make_unique<Rename>());
159 registry_.emplace(erase, std::make_unique<Erase>());
160 registry_.emplace(extract, std::make_unique<Extract>());
161 registry_.emplace(insert, std::make_unique<Insert>());
162 registry_.emplace(modify, std::make_unique<Modify>());
163 registry_.emplace(fixiso, std::make_unique<FixIso>());
164 registry_.emplace(fixcom, std::make_unique<FixCom>());
165}
166
167Task::UniquePtr TaskFactory::create(TaskType type) {
168 auto i = registry_.find(type);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected