MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / ShouldBeEnabledFor

Method ShouldBeEnabledFor

PathCopyCopy/src/PluginPipelineElements.cpp:241–247  ·  view source on GitHub ↗

Checks if a plugin using this pipeline element should be enabled or not. In our case, we see if our regex is valid. @param p_ParentPath Path of the parent folder for the file to check; unused. @param p_File Path of file to use for the check; unused. @param p_psspAllPlugins Optional set containing all plugins; unused. @return false if regular expression is invalid.

Source from the content-addressed store, hash-verified

239 // @return false if regular expression is invalid.
240 //
241 bool RegexPipelineElement::ShouldBeEnabledFor(const std::wstring& /*p_ParentPath*/,
242 const std::wstring& /*p_File*/,
243 const PluginProvider* const /*p_pPluginProvider*/) const
244 {
245 InitRegex();
246 return m_upRegex != nullptr;
247 }
248
249 //
250 // Initializes the m_apRegex member using the other members.

Callers

nothing calls this directly

Calls 2

GetPluginMethod · 0.80
EnabledMethod · 0.45

Tested by

no test coverage detected