MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / CustomMapping_IsPresent

Method CustomMapping_IsPresent

Source/MediaInfo/MediaInfo_Config.cpp:3689–3699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3687}
3688
3689bool MediaInfo_Config::CustomMapping_IsPresent(const Ztring &Format, const Ztring &Field)
3690{
3691 CriticalSectionLocker CSL(CS);
3692 std::map<Ztring, std::map<Ztring, Ztring> >::iterator PerFormat=CustomMapping.find(Format);
3693 if (PerFormat==CustomMapping.end())
3694 return false;
3695 std::map<Ztring, Ztring>::iterator PerField=PerFormat->second.find(Field);
3696 if (PerField==PerFormat->second.end())
3697 return false;
3698 return true;
3699}
3700
3701//***************************************************************************
3702// Report changes

Callers 2

Metadata_GetMethod · 0.80
Fill_NameMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected