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.
| 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. |