Bull DPX/20 Guia do Utilizador Página 367

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 424
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 366
Metaclass Framework Reference 4-9
SOMMTraced Metaclass
Description
SOMMTraced is a metaclass that facilitates tracing of method invocations. Whenever a
method (inherited or introduced) is invoked on an instance (simple object) of a class whose
metaclass is SOMMTraced, a message prints to standard output giving the method
parameters; then, after completion, a second message prints giving the returned value.
There is one more step for using SOMMTraced: nothing prints unless the environment
variable SOMM_TRACED is set. If it is set to the empty string, all traced classes print. If the
environment variable SOMM_TRACED is not the empty string, it should be set to the list of
names of classes that should be traced. For example, for csh users, the following command
turns on printing of the trace for “Collie” and “Chihuahua”, but not for any other traced class:
setenv SOMM_TRACED ”Collie Chihuahua”
SOMMTraced is thread-safe.
File Stem
somtrcls
Base Class
SOMMBeforeAfter
Ancestor Classes
SOMMBeforeAfter
SOMClass
SOMObject
Attributes
boolean sommTraceIsOn
This attribute indicates whether or not tracing is turned on for a class. This
gives dynamic control over the trace facility.
New Methods
None.
Overriding Methods
somInitMIClass
sommAfterMethod
sommBeforeMethod
Vista de página 366
1 2 ... 362 363 364 365 366 367 368 369 370 371 372 ... 423 424

Comentários a estes Manuais

Sem comentários