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

  • 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 196
2-29
DSOM Framework Reference
create_child Method
Purpose
Creates a child of a Context object.
IDL Syntax
ORBStatus create_child (
in Identifier ctx_name,
out Context child_ctx);
Description
The create_child method creates a child Context object.
The returned Context object is chained to its parent. That is, searches on the child Context
object will look in the parent (and so on, up the Context tree), if necessary, for matching
property names.
Parameters
receiver A pointer to the Context object for which a child is to be created.
env A pointer to the Environment structure for the method caller.
ctx_name The name of the child Context to be created.
child_ctx The address where a pointer to the created child Context object is to be
stored.
Return Value
The create_child method returns an ORBStatus value representing the return code from
the operation.
Example
#include <somd.h>
Environment ev;
Context cxt, newcxt;
long rc;
...
/* get the process’ default Context */
rc = _get_default_context(SOMD_ORBObject, &ev, &cxt);
/* make newcxt a child Context of the default Context (cxt) */
rc = _create_child(cxt, &ev, ”myContext”, &newcxt);
Original Class
Context
Zobrazit stránku 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 423 424

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

Žádné komentáře