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

Method Validate

PathCopyCopy/src/PluginPipelineElements.cpp:400–411  ·  view source on GitHub ↗

Validates this pipeline element. In order to be valid, the plugin to apply must exist. @param p_pPluginProvider Plugin provider used to fetch plugins. @param p_rsSeenPluginIds Set used to store seen plugin IDs. Any collision means a loop is detected and pipeline element is invalid.

Source from the content-addressed store, hash-verified

398 // pipeline element is invalid.
399 //
400 void ApplyPluginPipelineElement::Validate(const PluginProvider* const p_pPluginProvider,
401 GUIDS& p_rsSeenPluginIds) const
402 {
403 PipelineElement::Validate(p_pPluginProvider, p_rsSeenPluginIds);
404
405 if (p_pPluginProvider == nullptr) {
406 throw InvalidPipelineException();
407 }
408 if (p_pPluginProvider->GetPlugin(m_PluginId) == nullptr) {
409 throw InvalidPipelineException(ATL::CStringA(MAKEINTRESOURCEA(IDS_INVALIDPIPELINE_BASE_COMMAND_NOT_FOUND)));
410 }
411 }
412
413 //
414 // Modifies the given path by fetching a reference to the plugin we need

Callers

nothing calls this directly

Calls 4

GetPluginMethod · 0.80
GetPipelineMethod · 0.80
GetPipelineErrorMethod · 0.80

Tested by

no test coverage detected