1-36 SOMobjects Base Toolkit: Programmer’s Reference Manual
somTotalRegIds Function
Purpose
Returns the total number of SOM IDs that have been registered.
Syntax
unsigned long somTotalRegIds ( );
Description
The somTotalRegIds function returns the total number of SOM IDs that have been
registered so far. This value can be used as a parameter to the somSetExpectedIds
function to advise SOM about expected ID usage in later executions of a client program.
Return Value
Returns the total number of SOM IDs that have been registered.
C Example
#include <som.h>
main()
{ int i;
somId id;
somEnvironmentNew();
id = somIdFromString(”abc”)
i = somTotalRegIds();
id = somIdFromString(”abc”);
SOM_Test(i == somTotalRegIds);
}
Related Information
Functions: somCheckId, somRegisterId, somIdFromString, somStringFromId,
somCompareIds, somSetExpectedIds, somUniqueKey, somBeginPersistentIds,
somEndPersistentIds
Commenti su questo manuale