Bull DPX/20 Guida Utente Pagina 237

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 424
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 236
2-69
DSOM Framework Reference
create_operation_list Method
Purpose
Creates an NVList initialized with the argument descriptions for a given operation.
IDL Syntax
ORBStatus create_operation_list (
in OperationDef oper,
out NVList new_list);
Description
Creates an NVList list for the specified operation, for use in Requests invoking that
operation.
Parameters
receiver A pointer to the ORB object.
env A pointer to the Environment structure for the method caller.
oper A pointer to the OperationDef object representing the operation for which
the NVList is to be initialized.
new_list A pointer to where the method will store a pointer to the resulting argument
list.
Return Value
The create_operation_list method returns an ORBStatus value representing the return
code of the operation.
Ownership of the allocated new_list is transferred to the caller.
Example
#include <somd.h>
Environment ev;
OperationDef opdef;
NVList arglist;
long rc;
/* Get the OperationDef from the Interface Repository. */
opdef = _lookup_id(SOM_InterfaceRepository,
&ev, ”Foo:methodLong”);
/* Create a NamedValue list for the operation. */
rc= _create_operation_list(SOMD_ORBObject, &ev, opdef, &arglist);
Original Class
ORB
Related Information
Methods: create_list
Vedere la pagina 236
1 2 ... 232 233 234 235 236 237 238 239 240 241 242 ... 423 424

Commenti su questo manuale

Nessun commento