Bull DPX/20 Betriebsanweisung Seite 271

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 424
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 270
2-103
DSOM Framework Reference
is_constant Method
Purpose
Tests to see if the object reference is a constant (that is, its ReferenceData is a constant
value associated with the reference).
IDL Syntax
boolean is_constant ( );
Description
The is_constant method tests to see if the object reference was created using the
create_constant method in the SOMOA class.
Parameters
receiver A pointer to a SOMDObject object.
env A pointer to the Environment structure for the method caller.
Return Value
The is_constant method returns TRUE if the object reference was generated by the
method create_constant. Otherwise, is_constant returns FALSE.
Example
#include <somd.h>
Environment ev;
SOMDObject objref;
...
/* This code might be part of the code
* that overrides the somdSOMObjFromRef method, i.e.
* in an implementation of a subclass of SOMDServer called
* myServer
*/
if (_is_constant(objref, &ev))
id = _get_id(objref, &ev);
...
Related Information
Methods: create, create_constant, is_proxy, is_SOM_ref, is_nil
Seitenansicht 270
1 2 ... 266 267 268 269 270 271 272 273 274 275 276 ... 423 424

Kommentare zu diesen Handbüchern

Keine Kommentare