Bull DPX/20 Betriebsanweisung Seite 219

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 218
2-51
DSOM Framework Reference
add_item Method
Purpose
Adds an item to the specified NVList.
IDL Syntax
ORBStatus add_item (
in Identifier item_name,
in TypeCode item_type,
in void* value,
in long value_len,
in Flags item_flags);
Description
The add_item method adds an item to the end of the specified list.
Parameters
receiver A pointer to the NVList object to which the item will be added.
env A pointer to the Environment structure for the method caller.
item_name The name of the item to be added.
item_type The data type of the item to be added.
value A pointer to the value of the item to be added.
value_len The length of the item value to be added.
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
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 add_item method returns an ORBStatus value representing the return code from the
operation.
Example
#include <somd.h>
Environment ev;
NVList plist;
ORBStatus rc;
...
rc = _create_list(SOMD_ORBObject, &ev, 0, &plist);
rc = _add_item(plist, &ev, ”firstname”, TC_string, ”Joe”, 3, 0);
rc = _add_item(plist, &ev, ”lastname”, TC_string, ”Schmoe”, 5, 0);
Seitenansicht 218
1 2 ... 214 215 216 217 218 219 220 221 222 223 224 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare