3-36
SOMobjects Base Toolkit Programmer’s Reference Manual
TypeDef Class
Description
The TypeDef class provides the interface for typedef definitions in the Interface Repository.
File Stem
typedef
Base
Contained
Metaclass
SOMClass
Ancestor Classes
Contained
SOMObject
Types
struct TypeDescription {
Identifier name;
RepositoryId id;
RepositoryId defined_in;
TypeCode type;
};
The describe method, inherited from Contained, returns a TypeDescription structure in
the value member of the Description structure (defined in the Contained class).
Attributes
Following is a list of each available attribute, with its corresponding type in parentheses,
followed by a description of its purpose:
type (TypeCode)
The TypeCode that represents the type of the typedef. The TypeCode
returned by the “_get_” form of the type attribute is contained in the
receiving TypeDef object, which retains ownership. Hence, the returned
TypeCode should not be freed. To obtain a separate copy, use the
TypeCode_copy operation. The “_set_” form of the attribute makes a
private copy of the TypeCode you supply, to keep in the receiving object.
You retain ownership of the passed TypeCode.
New Methods
None.
Overriding Methods
somInit
somUninit
somDumpSelf
somDumpSelfInt
describe
Commenti su questo manuale