<div class="gmail_quote">On Fri, Jul 16, 2010 at 9:09 AM, Troy A. Griffitts <span dir="ltr"><<a href="mailto:scribe@crosswire.org">scribe@crosswire.org</a>></span> wrote:<br><div>...<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 07/15/2010 03:31 PM, Jaak Ristioja wrote:<br>
> * which books/chapters/verses or parts are present in a module<br>
<br>
</div>This does not exist. You can query the versification that a module<br>
implements, but there is no interface for asking what 'coverage' of that<br>
versification is present in a module. Do you have a suggested interface?<br></blockquote><div> <br>If the question is "Is there any way to find all parts of the versification that do not have entries?", the answer is no. However, it is possible to find out if a module has a particular key with mod::hasEntry(key), and you could work from there if you felt inclined. From memory, this method only works with the internal index rather than retrieving the complete content of the module, and so is comparatively fast (I can iterate through the entire ESV and check whether the verses are present in a couple of seconds using Python, while the equivalent code using setKey() and getRawEntry() takes a lot longer).<br>
<br>Jon<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
> * how do I read a specific verse/part of a module<br>
<br>
</div>module->setKey("jn.3.16");<br>
cout << module->RenderText();<br></blockquote><div><br>... <br></div></div>