<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
El 06/23/2008 12:53 PM, Pau Arumí Albó escribió:
<blockquote cite="mid:1214236404.6177.1.camel@casa" type="cite">
<pre wrap="">El dl 23 de 06 de 2008 a les 12:39 -0300, en/na Natanael Olaiz va
escriure:
</pre>
<blockquote type="cite">
<pre wrap="">What do you think about these changes on RunTimeLibraryLoader?
Part of original RunTimeLibraryLoader::Load() now is
RunTimeLibraryLoader::GetPaths(), which gives you a full list of
possible paths.
And I added std::string RunTimeLibraryLoader::ExistsDirInPath(const
std::string & fileName), which search for a subpath on the possible
paths, and return it (or none if not exists).
</pre>
</blockquote>
<pre wrap=""><!---->
If I understand correctly its meaning, the name should be
ExistsDirInPaths(const std::string & path)
(note the 's' and argument name)
</pre>
</blockquote>
<br>
Yep.<br>
<br>
<blockquote cite="mid:1214236404.6177.1.camel@casa" type="cite">
<pre wrap="">Who will use that method?
</pre>
</blockquote>
<br>
RunTimeFaustLibraryLoader::SetupLibrary:<br>
<br>
<blockquote><tt>std::string pluginName =
pluginFullFilename.substr(pluginFullFilename.rfind("/")+1,pluginFullFilename.length());<br>
pluginName = pluginName.substr(0,pluginName.rfind(".")); // crop
name without extension<br>
<br>
std::string name =
RunTimeLibraryLoader::ExistsDirInPaths("examples/"+pluginName+".dsp-svg");<br>
if (name=="")<br>
factory.AddAttribute(oss.str(), "svg_diagram", name);<br>
</tt></blockquote>
Maybe I can replace it with (or add also) a more specific
ExistsFileInPath: <tt>ExistsFileInPaths("examples/"+pluginName+".dsp-svg/process.svg")</tt><br>
<br>
<blockquote cite="mid:1214236404.6177.1.camel@casa" type="cite">
<pre wrap="">
P
_______________________________________________
Clam-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Clam-devel@llistes.projectes.lafarga.org">Clam-devel@llistes.projectes.lafarga.org</a>
<a class="moz-txt-link-freetext" href="https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel">https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>