namingServiceContents {CORBA}R Documentation

Retrieve a list of the names contained in a particular CORBA naming context, identifying which are nested naming contexts and regular objects.

Description

This resolves the naming context specified in the ... argument and queries its contents using the CORBA method

Usage

namingServiceContents(..., maxNum=0)

Arguments

... a CORBA identifier - a single string specifying an IOR or a sequence of one or more strings specifying a (nested) path in the naming service relative to the default top-level naming context.
maxNum a very rarely used argument that controls how many elements we want returned from the naming context being queried. This is an option the CORBA specification allows us.

Details

In theory, it is possible to implement this using the .Corba function. This would assume that the interface was registered with the default Interface Repository and there were suitable converters registered for the elements of the return value.

Value

A logical vector with names matching the elements within the naming context. An element whose value is TRUE identifies a nested sub-naming context. Elements with value FALSE are regular objects

Author(s)

Duncan Temple Lang

References

http://www.omegahat.org/CORBA

See Also

namingService, namedCorbaObject createNamingContext

Examples

  # list the contents of the top-level naming service
 namingServiceContents()
  # Add a new sub-naming context.
 createNamingContext("R")
  # now see the list again, containing the newly added R.
 namingServiceContents()

  # List the contents of the (empty) R naming context.
  # showing how one can specify the naming context of interest.
 namingServiceContents("R")
  # create a new naming context within R.
 createNamingContext("R","S", recursive=T)
  # now list contents of R.
 namingServiceContents("R")