Public Instance Methods : SstIdlRepository
type: typeId matches: className
"ACTION
Set an association between @typeId (which identifies some IDL type in the receiver)
and @className (which identifies some Smalltalk class).
When certain kinds of IDL objects (eg. structs, Anys) are encountered on marshaling or
unmarshaling, this information is checked to see how to encode or decode the information.
For example, if an object of class Foo is passed to an Any argument for request marshaling,
if there is a mapping from #'IDL:Bar/Foo:1.0' to #Foo, the typecode associated with
#'IDL:Bar/Foo:1.0' in the repository is dumped together with the Foo object itself.
Another example is on receiving an object whose typecode matches #'IDL:Bar/Foo:1.0'. Then
an object of class Foo is created, and its fields set to the information in the object.
PARAMETERS
typeId : <CORBA::RepositoryId>
className : <Symbol>
NOTES
<CORBA::RepositoryId> is typically <String> or <Symbol> but
can be <Integer> for primitive CORBA types. <Integer> should
never be used in user code.
The existence of a @typeId to @className mapping is assumed to mean that if the
object is an IDL struct type, then there exist default setter/getter methods for each
member of the IDL struct definition. Thus if the IDL definition for Bar::Foo is
struct Foo {
integer x;
};
then the Smalltalk class Foo must have methods #x and #x:."
Categories
SST-API Developer
[FIRST] [PREV] [NEXT] [LAST]