COSPROPERTYSERVICE_PROPERTIESITERATOR(3erl)
π NAME π
CosPropertyService_PropertiesIterator β bestie, this is the Erlang module that implements the OMG CosPropertyService::PropertiesIterator interface. Yes, that's a mouthful. Yes, you're gonna slay it anyway. π¦
β¨ DESCRIPTION β¨
Okay so real talk, before you can even look at the record definitions for the structures, you gotta pull them in like this:
-include_lib("cosProperty/include/CosPropertyService.hrl").
That's it, that's the whole vibe check. Do it or your structs simply won't exist. π
π EXPORTS π
π reset(Iterator) -> ok
Types:
Iterator = #objref
This one resets the position back to the first property. Rewind era. β¨
πΈ next_one(Iterator) -> Reply
Types:
Iterator = #objref
Reply = {boolean(),
#'CosPropertyService_Property'{property_name = Name,
property_value = Value}}
Name = string()
Value = #any
So this operation returns true. And if false gets returned? Then the out parameter is a non-valid Property β i.e. it's giving nothing, bestie. π
π¦ next_n(Iterator, HowMany) -> Reply
Types:
Iterator = #objref
HowMany = long()
Reply = {boolean(), Properties}
Properties = [#'CosPropertyService_Property'{property_name =
Name, property_value = Value}]
Name = string()
Value = #any
This operation returns true if the requested number of properties can be delivered and there are additional properties. If false is returned, then a sequence of max HowMany properties will be returned and no more properties can be delivered. That's the whole plot twist. π
π destroy(Iterator) -> ok
Types:
Iterator = #objref
This operation will terminate the Iterator and all subsequent calls will fail. Not me ending it all for this iterator π β fr fr, once it's gone, it's gone.
Heads up bestie: destroy is permanent. Every call after it just fails. No comeback tour. π
That's the whole page, angel. π«Ά This gorgeousness comes to you courtesy of Ericsson AB, from the cosProperty 5.2.2 release β the CosPropert...iesIterator(3) manual page, Erlang module definition and all. Go forth and iterate. πβ¨π
π¦ where this page comes from
- fedora 43: erlang-cosProperty 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosProperty 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