Jump to content

SomGetInstanceToken: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:somGetInstanceToken}} This method returns a data access token for the instance data introduced by a class. For backward compatibility, this method does not tak..."
 
Ak120 (talk | contribs)
mNo edit summary
 
Line 4: Line 4:
For backward compatibility, this method does not take an Environment parameter.
For backward compatibility, this method does not take an Environment parameter.


; Original Class : [[SOMClass]]
;Original Class : [[SOMClass]]


==Syntax==
==Syntax==
Line 10: Line 10:


==Parameters==
==Parameters==
; receiver (SOMClass) : A pointer to a SOMClass object.
;receiver (SOMClass) : A pointer to a SOMClass object.


==Return Code==
==Return Code==
; rc (somDToken) : Returns a data token for the beginning of the instance data introduced by the receiver.
;rc (somDToken) : Returns a data token for the beginning of the instance data introduced by the receiver.


==Remarks==
==Remarks==
This method returns a data token "pointing" to the beginning of the instance data introduced by the receiving class. This token can be passed to the function somDataResolve to locate this instance data within an an instance of the receiver class or any class derived from it. Also the instance data token for a class can be passed to the class method somGetMemberToken to get a data token for a specific instance variables introduced by the class (if the relative offset of this instance variable is known). This approach is used by C and C++ implementation bindings to support public instance data for OIDL classes (IDL classes currently have no public instance data).
This method returns a data token "pointing" to the beginning of the instance data introduced by the receiving class. This token can be passed to the function somDataResolve to locate this instance data within an instance of the receiver class or any class derived from it. Also the instance data token for a class can be passed to the class method somGetMemberToken to get a data token for a specific instance variables introduced by the class (if the relative offset of this instance variable is known). This approach is used by C and C++ implementation bindings to support public instance data for OIDL classes (IDL classes currently have no public instance data).


A data token for the instance data introduced by a class is required by method procedures that access data introduced by the method procedure's defining class. For classes declared using OIDL and IDL, the needed token is stored in the auxiliary class data structure, which is an external data structure made statically available by the C and C++ language bindings as <className>CClassData.instanceToken. Thus, this method call is not generally used by C and C++ class implementors of classes declared using OIDL or IDL.
A data token for the instance data introduced by a class is required by method procedures that access data introduced by the method procedure's defining class. For classes declared using OIDL and IDL, the needed token is stored in the auxiliary class data structure, which is an external data structure made statically available by the C and C++ language bindings as <className>CClassData.instanceToken. Thus, this method call is not generally used by C and C++ class implementors of classes declared using OIDL or IDL.
==Example Code==
<PRE>
</PRE>


==Related==
==Related==

Latest revision as of 16:43, 19 March 2018

This method returns a data access token for the instance data introduced by a class.

For backward compatibility, this method does not take an Environment parameter.

Original Class
SOMClass

Syntax

somDToken somGetInstanceToken (SOMClass receiver)

Parameters

receiver (SOMClass)
A pointer to a SOMClass object.

Return Code

rc (somDToken)
Returns a data token for the beginning of the instance data introduced by the receiver.

Remarks

This method returns a data token "pointing" to the beginning of the instance data introduced by the receiving class. This token can be passed to the function somDataResolve to locate this instance data within an instance of the receiver class or any class derived from it. Also the instance data token for a class can be passed to the class method somGetMemberToken to get a data token for a specific instance variables introduced by the class (if the relative offset of this instance variable is known). This approach is used by C and C++ implementation bindings to support public instance data for OIDL classes (IDL classes currently have no public instance data).

A data token for the instance data introduced by a class is required by method procedures that access data introduced by the method procedure's defining class. For classes declared using OIDL and IDL, the needed token is stored in the auxiliary class data structure, which is an external data structure made statically available by the C and C++ language bindings as <className>CClassData.instanceToken. Thus, this method call is not generally used by C and C++ class implementors of classes declared using OIDL or IDL.

Related

Functions

Methods