lname
MODULE
MODULE SUMMARY
DESCRIPTION
This interface is a part of the names library which is used to hide the representation of names. In Orbers Erlang mapping the pseudo-object names and the real IDL names have the same representation but it is desirable that the clients uses the names library so they will not be dependent of the representation. The lname interface supports handling of names e.g. adding and removing name components.
Note that the lname interface in orber does not contain a destroy function because the Names are represented as standard Erlang lists and therefor will be removed by the garbage collector when not in use.
The type NameComponent used below is defined as:
-record('CosNaming_NameComponent', {id, kind=""}).
id and kind are strings.
The record is defined in the file CosNaming.hrl and it is included with:
-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
EXPORTS
Types:
This function returns a new name.
insert_component(Name, N, NameComponent) -> Return
Types:
This function returns a name where the new name component has been inserted as component N in Name.
get_component(Name, N) -> Return
Types:
This function returns the N:th name component in Name.
delete_component(Name, N) -> Return
Types:
This function deletes the N:th name component from Name and returns the new name.
Types:
This function returns a the number of name components in Name.
Types:
This function returns true if the two names are equal and false otherwise.
less_than(Name1, Name2) -> Return
Types:
This function returns true if Name1 are lesser than Name2 and false otherwise.
Types:
This function just checks if Name is a correct IDL name before returning it because the name representation is the same for pseudo and IDL names in orber.
Types:
This function just returns the Name because the name representation is the same for pseudo and IDL names in orber.