2-68
SOMobjects Base Toolkit: Programmer’s Reference Manual
create_list Method
Purpose
Creates an NVList of the specified size.
IDL Syntax
ORBStatus create_list (
in long count,
out NVList new_list);
Description
Creates an NVList list of the specified size, typically for use in Requests.
Ownership of the allocated new_list is transferred to the caller.
Parameters
receiver A pointer to the ORB object.
env A pointer to the Environment structure for the method caller.
count An integer representing the number of elements to allocate for the list.
new_list A pointer to the address where the method will store a pointer to the
allocated NVList object.
Return Value
The create_list method returns an ORBStatus value representing the return code of the
operation.
Example
#include <somd.h>
Environment ev;
long nargs = 5;
NVList arglist;
ORBStatus rc;
...
rc = _create_list(SOMD_ORBObject, &ev, nargs, &arglist);
Original Class
ORB
Related Information
Methods: create_operation_list
Komentarze do niniejszej Instrukcji