[sword-devel] Feature request: SWModule::isEmpty()

Troy A. Griffitts sword-devel@crosswire.org
Sun, 28 Jul 2002 00:48:56 -0700


So I guess the initial ghost entry fix worked for you? :)

Actually, any of the positioners should return an out of bounds error if 
the module is empty.  Do they not?  eg.

module = TOP;
if (module.Error())
	cout << "Module is empty\n";


porton@narod.ru wrote:
> Please add SWModule::isEmpty() to check whether a module is empty, i.e. 
> containing zero entries (useful after opening module and after deleting an 
> entry).
> 
> It is possible to do it with current interface, but in a silly mean.