ArchivePlugin::Ptr CreateContainerPlugin(const String& id, uint_t caps, Formats::Archived::Decoder::Ptr decoder) { const Plugin::Ptr description = CreatePluginDescription(id, decoder->GetDescription(), caps); return ArchivePlugin::Ptr(new ArchivedContainerPlugin(description, decoder)); }
ArchivePlugin::Ptr CreateArchivePlugin(const String& id, uint_t caps, Formats::Packed::Decoder::Ptr decoder) { const Plugin::Ptr description = CreatePluginDescription(id, decoder->GetDescription(), caps | Capabilities::Category::CONTAINER); return MakePtr<CommonArchivePlugin>(description, decoder); }
RawScaner() : Description(CreatePluginDescription(ID, INFO, CAPS)) { }