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

  • 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 299
2-132
SOMobjects Base Toolkit: Programmers Reference Manual
create_constant Method
Purpose
Creates a “constant” object reference.
IDL Syntax
SOMDObject create_constant (
in ReferenceData id,
in InterfaceDef intf,
in ImplementationDef impl);
Description
The create_constant method is a variant of the create method. Like create, it creates an
object reference for an object with the specified interface and associates the supplied
ReferenceData with the object reference. The ReferenceData can later be retrieved using
the get_id method. Unlike create, this method creates a “constant” reference whose ID
value cannot be changed. (See the change_id Method on page 2-131.) This is because the
ID is maintained as a constant part of the object reference state, versus stored in the
reference data table for the server.
This method would be used whenever the application prefers not to maintain an object’s
ReferenceData in the servers reference data table.
Parameters
receiver A pointer to the SOMOA object managing the implementation.
env A pointer to the Environment structure for the method caller.
id A pointer to the ReferenceData structure containing application-specific
information describing the target object.
intf A pointer to the InterfaceDef object which describes the interface of the
target object.
impl A pointer to the ImplementationDef object which describes the application
(server) process which implements the target object.
Return Value
The create_constant method returns a pointer to a SOMDObject. Ownership of the new
object reference is transferred to the caller.
Zobrazit stránku 299
1 2 ... 295 296 297 298 299 300 301 302 303 304 305 ... 423 424

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

Žádné komentáře