Bull DPX/20 Uživatelská příručka Strana 350

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 349
3-44
SOMobjects Base Toolkit Programmers Reference Manual
TypeCodeNew Function
Purpose
Creates a new TypeCode instance.
Syntax
TypeCode TypeCodeNew (TCKind tag, ...);
[The actual parameters indicated by “...” are variable in number and type, depending on the
value of the tag parameter.] There are no implicit parameters to this function.
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);
Description
The TypeCodeNew function creates a new instance of a TypeCode from the supplied
parameters. TypeCodes are complex data structures whose actual representation is
hidden. The number and types of arguments required by TypeCodeNew varies depending
on the value of the first argument. All of the valid invocation sequences are shown in the
previous section. There are no implicit parameters to this function.
All TypeCodes created by TypeCodeNew should be destroyed (when no longer needed)
using the TypeCode_free function.
This function is a SOM-unique extension to the CORBA standard.
Parameters
tag The type or category of TypeCode to create.
interfaceId A string containing the fully-qualified interface name that is the subject of an
object reference type.
name A string that gives the name of a struct, union, or enum.
mbrName A string that gives the name of a struct or union member element.
enumId A string that gives the name of an enum enumerator.
Zobrazit stránku 349
1 2 ... 345 346 347 348 349 350 351 352 353 354 355 ... 423 424

Komentáře k této Příručce

Žádné komentáře