MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / if

Function if

ASAP/worklist_interface/Data/SourceProxy.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48#ifdef BUILD_GRANDCHALLENGE_INTERFACE
49 else if (checkParameters(parameters, GrandChallengeSource::getRequiredParameterFields()))
50 {
51 web::http::client::http_client_config config;
52 config.set_validate_certificates(!static_cast<bool>(parameters.find("ignore_certificate")->second[0]));
53
54 GrandChallengeURLInfo uri_info = GrandChallengeSource::getStandardURI(core::stringToWideString(source_path));
55 DjangoConnection::Credentials credentials(DjangoConnection::CreateCredentials(core::stringToWideString(parameters.find("token")->second), L""));
56 m_source = std::unique_ptr<WorklistSourceInterface>(new GrandChallengeSource(uri_info, m_temporary_directory, credentials, config));
57 }
58#endif
59 // Adds the new source to the previous sources.
60 m_current_source = source;

Callers 2

ArgumentParserMethod · 0.85
runMethod · 0.85

Calls 1

stringToWideStringFunction · 0.85

Tested by

no test coverage detected