MCPcopy Create free account
hub / github.com/PDAL/PDAL / link

Method link

pdal/PluginManager.cpp:141–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139*/
140template <typename T>
141std::string PluginManager<T>::link(const std::string& name)
142{
143 // Compute URLs for stage documents from the name instead
144 // of using the URLs that are in the PluginInfo struct
145 //
146 // For development builds, we always point to master
147 // https://pdal.dev/en/master/stages/filters.reprojection.html
148 //
149 // For versioned (Release) builds, we point to the version number
150 // https://pdal.dev/en/2.4.3/stages/filters.reprojection.html
151 //
152 std::string root("https://pdal.org/en/");
153
154 std::string version("master");
155 std::string sha = Config::sha1();
156 if (Utils::iequals(sha, "Release"))
157 version = Config::versionString();
158
159 std::string base = root + version +"/stages/";
160 return base + name + ".html";
161}
162
163
164template <typename T>

Callers 1

l_linkMethod · 0.45

Calls 3

sha1Function · 0.85
iequalsFunction · 0.85
versionStringFunction · 0.85

Tested by

no test coverage detected