lname_component(3)
π lname_component(3) β Erlang Module Definition π
okay bestie, welcome to lname_component, the manual page nobody warned you about but honestly? kinda iconic. it lives in the Erlang Module Definition section of the man pages, and it's here to make your life cute and representation-independent. let's get into it π«Ά
β¨ NAME β¨
lname_component β the interface that supports the name pseudo-objects. yes, "pseudo-objects". it's giving mysterious. it's giving main character. slay.
πΈ DESCRIPTION πΈ
so here's the tea, bestie: this interface is part of the name library, and the whole point of that library is to hide how names are actually represented. sneaky? no, thoughtful. π
in Orber's Erlang mapping, the pseudo-object names and the real IDL names literally have the same representation β same vibes, same shape. but the way it should go is that clients use the names library, so they never become dependent on that representation. it's giving "don't get attached to implementation details, bestie, they will not text you back." π
the lname_component interface handles name components β think get and set of the struct members. very demure. very mindful. β¨
π important note, no cap: thelname_componentinterface in Orber does not contain a destroy function. why? because theNameComponentsare represented as Erlang records, and therefore they get removed by the garbage collector when they're not in use anymore. the garbage collector is the cleanup crew and honestly? she ate. ποΈπ
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 you include it like this:
-include_lib("orber/COSS/CosNaming/CosNaming.hrl").
π EXPORTS π
π create() -> Return
Types:
Return = NameComponent
this function returns a new name component. fresh out the box, brand new, no notes. β¨
π get_id(NameComponent) -> Return
Types:
Return = string()
this function returns the id string of a name component. just the id, bestie, nothing extra. π
π set_id(NameComponent, Id) -> Return
Types:
Id = string()
Return = NameComponent
this function sets the id string of a name component and returns the component. so it does the thing and hands it back to you. generous behavior, honestly. π«Ά
π get_kind(NameComponent) -> Return
Types:
Return = string()
this function returns the id string of a name component. (yes, the manpage says id string here too β I'm not gonna lie to you, I'm reporting it exactly as written, fr fr. π) same energy as the line above it, the docs said what they said.
π set_kind(NameComponent, Kind) -> Return
Types:
Kind = string()
Return = NameComponent
this function sets the kind string of a name component and returns the component. set it, get it back, iconic. π
that's the whole page, bestie. every function, every type, every string, every record β accounted for. you understood the assignment. π
cute lil sign-off: this masterpiece of documentation is brought to you by Ericsson AB, shipping with orber 5.2.2. go forth and handle your name components with main character energy. mwah. πβ¨ππ¦
π¦ where this page comes from
- fedora 43: erlang-orber 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-orber 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms