Bull DPX/20 Podręcznik Użytkownika Strona 339

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 338
3-33
Interface Repository Framework Reference
lookup_modifier Method
Purpose
Returns the value of a given SOM modifier for a specified object [that is, for an object that
is a component of an IDL interface (class) definition maintained within the Interface
Repository].
IDL Syntax
string lookup_modifier (
in RepositoryId id,
in string modifier);
Description
The lookup_modifier method returns the string value of the given SOM modifier for an
object with the specified RepositoryId within the Interface Repository. For a discussion of
SOM modifiers, see the topic “Modifier statements” in Chapter 4, “Implementing SOM
Classes,” of the SOM Toolkit Users Guide.
If the object with the given RepositoryId does not exist or does not possess the modifier,
then NULL (or zero) is returned. If the object exists but the specified modifier does not have
a value, a zero-length string value is returned.
Note: The lookup_modifier method is not stipulated by the CORBA specifications; it is a
SOM-unique extension to the Interface Repository.
Parameters
receiver A pointer to an object of class Repository representing SOM’s Interface
Repository.
ev A pointer where the method can return exception information if an error is
encountered.
id The RepositoryId of the object whose modifier value is needed.
modifier The name of a specific (SOM or user-specified) modifier whose string value
is needed.
Return Value
The lookup_modifier method returns the string value of the given SOM modifier for an
object with the specified RepositoryId, if it exists. If an existing modifier has no value, a
zero-length string value is returned. If the object cannot be found, then NULL (or zero) is
returned.
When the string value is no longer needed, client code must free the space for the string
(using SOMFree).
Przeglądanie stron 338
1 2 ... 334 335 336 337 338 339 340 341 342 343 344 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag