Bull DPX/20 Uživatelská příručka Strana 224

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 223
2-56
SOMobjects Base Toolkit: Programmers 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
Zobrazit stránku 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 423 424

Komentáře k této Příručce

Žádné komentáře