Bull DPX/20 Guida Utente Pagina 227

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 226
2-59
DSOM Framework Reference
set_item Method
Purpose
Sets the contents of an item in a list.
IDL Syntax
ORBStatus set_item (
in long item_number,
in Identifier item_name,
in TypeCode item_type,
in void* value,
in long value_len,
in Flags item_flags);
Description
The set_item method sets the contents of an item in the list.
Parameters
receiver A pointer to an NVList which contains the item to be set.
env A pointer to the Environment structure for the method caller.
item_number The position (index) of the item in the list. The item_number ranges from 0
to n–1, where n is the total number of items in the list.
item_name The name of the set item.
item_type The data type of the set item.
value A pointer to the value of the set item.
value_len The length of the set item value.
item_flags A Flags bitmask (unsigned long). The item_flags can be one of the
following values to indicate parameter direction:
ARG_IN The argument is input only.
ARG_OUT The argument is output only.
ARG_INOUT The argument is input/output.
In addition, item_flags may also contain the following values:
IN_COPY_VALUE
Indicates an internal copy of the argument is made and
used.
DEPENDENT_LIST
Indicates that a specified sublist must be freed when the
parent list is freed.
Return Value
The set_item method returns 0 on successful completion or a DSOM error code upon
failure (often because item_number+1 exceeds the number of items in the list).
Vedere la pagina 226
1 2 ... 222 223 224 225 226 227 228 229 230 231 232 ... 423 424

Commenti su questo manuale

Nessun commento