Bull DPX/20 Guia do Utilizador Página 330

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 329
3-24
SOMobjects Base Toolkit Programmers Reference Manual
Example
Here is a code fragment written in C that uses the describe_interface method:
#include <intfacdf.h>
...
InterfaceDef idef;
Environment *ev;
FullInterfaceDescription fid;
long i;
...
fid = InterfaceDef_describe_interface (idef, ev);
printf (”The %s interface has the following attributes:\n”,
Contained__get_name ((Contained) idef, ev));
if (!fid.attributes._length)
printf (”\t[none]\n”);
else {
for (i=0; i<fid.attributes._length; i++)
printf (”\t%s\n”, fid.attributes._buffer[i].name);
SOMFree (fid.attributes._buffer);
}
printf (”and the following methods:\n”)
if (!fid.operation._length)
printf (”\t[none]\n”);
else {
for (i=0; i<fid.operation._length; i++)
printf (”\t%s\n”, fid.operation._buffer[i].name);
SOMFree (fid.operation._buffer);
}
Original Class
InterfaceDef
Vista de página 329
1 2 ... 325 326 327 328 329 330 331 332 333 334 335 ... 423 424

Comentários a estes Manuais

Sem comentários