Bull DPX/20 Podręcznik Użytkownika Strona 302

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 301
2-134
SOMobjects Base Toolkit: Programmers Reference Manual
create_SOM_ref Method
Purpose
Creates a simple, transient DSOM reference to a SOM object.
IDL Syntax
SOMDObject create_SOM_ref (
in SOMObject somobj,
in ImplementationDef impl);
Description
The create_SOM_ref method creates a simple DSOM reference (SOMDObject) for a local
SOM object. The reference is “special” in that there is no explicit ReferenceData associated
with the object. Also, this object reference is only valid while the target SOM object exists.
The SOMObject associated with the SOM_ref can be retrieved via the get_SOM_object
method. The is_SOM_ref method of SOMDObject can be used to determine whether the
reference was created using create_SOM_ref or not.
Parameters
receiver A pointer to the SOMOA object managing the implementation.
env A pointer to the Environment structure for the method caller.
somobj A pointer to the local SOMObject to be referenced.
impl A pointer to the ImplementationDef of the calling server process.
Return Value
The create_SOM_ref method returns a pointer to a SOMDObject. Ownership of the new
object reference is transferred to the caller.
Example
#include <somd.h>
SOMDObject objref;
Environment ev;
SOMObject obj;
...
/* one might want to make this call as part of the code
* that overrides the somdRefFromSOMObj method, i.e.
* in an implementation of a subclass of SOMDServer.
*/
objref = _create_SOM_ref(SOMD_SOMOAObject, &ev, obj);
Original Class
SOMOA
Related Information
Methods: get_SOM_object, is_SOM_ref
Przeglądanie stron 301
1 2 ... 297 298 299 300 301 302 303 304 305 306 307 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag