2-56
SOMobjects Base Toolkit: Programmer’s Reference Manual
get_count Method
Purpose
Returns the total number of items allocated for a list.
IDL Syntax
ORBStatus get_count (
out long count);
Description
The get_count method returns the total number of allocated items in the specified list.
Parameters
receiver A pointer to the NVList object on which count is desired.
env A pointer to the Environment structure for the method caller.
count A pointer to where the method will store the long integer count value.
Return Value
The get_count method returns an ORBStatus value representing the return code from the
operation.
Example
#include <somd.h>
Environment ev;
long nargs, list_size;
NVList arglist;
ORBStatus rc;
...
rc = _create_list(SOMD_ORBObject, &ev, nargs, &arglist);
...
rc = _get_count(arglist,&ev,&list_size);
Original Class
NVList
Related Information
Methods: add_item, get_item, set_item, create_list
Kommentare zu diesen Handbüchern