4-3
Interface Repository Quick Reference
enum TCKind {
tk_null, tk_void,
tk_short, tk_long,
tk_ushort, tk_ulong,
tk_float, tk_double, tk_boolean, tk_char, tk_octet, tk_any, tk_TypeCode, tk_Principal,
tk_objref, tk_struct, tk_union, tk_enum, tk_string, tk_sequence, tk_array, tk_pointer,
tk_self, tk_foreign
};
TypeCode TypeCodeNew (TCKind tag, ...); [
Creates a new TypeCode instance.
[ Takes no implicit parameters.
TypeCodeNew (tk_objref, string interfaceId);
TypeCodeNew (tk_string, long maxLength);
TypeCodeNew (tk_sequence, TypeCode seqTC, long maxLength);
TypeCodeNew (tk_array, TypeCode arrayTC, long length);
TypeCodeNew (tk_pointer, TypeCode ptrTC);
TypeCodeNew (tk_self, string structOrUnionName);
TypeCodeNew (tk_foreign, string typename, string impCtx, long instSize);
TypeCodeNew (tk_struct,
string name,
string mbrName,
TypeCode mbrTC, [...,]
[mbrName and mbrTC repeat as needed]
NULL);
TypeCodeNew (tk_union,
string name,
TypeCode swTC,
long flag,
long labelValue,
string mbrName,
TypeCode mbrTC, [...,]
[flag, labelValue, mbrName and mbrTC repeat as needed]
NULL);
TypeCodeNew (tk_enum,
string name,
string enumId, [...,]
[enumIds repeat as needed]
NULL);
TypeCodeNew (TCKind allOtherTagValues);
‘allOtherTagValues’ represents one of the values:
tk_null, tk_void, tk_short, tk_long,
tk_ushort, tk_ulong, tk_float, tk_double,
tk_boolean, tk_char, tk_octet,
tk_any, tk_TypeCode, or tk_Principal
All of these tags represent basic IDL data types that
do not require any other descriptive parameters.
long TypeCode_param_count ( );
Obtains the number of parameters available in a given TypeCode.
any TypeCode_parameter (
long index);
Obtains a specified parameter from a given TypeCode.
Komentarze do niniejszej Instrukcji