COSNOTIFYFILTER_FILTERFACTORY(3erl)

πŸ“¦
version 5.2.2 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– CosNotifyFilter_FilterFactory β€” the manual, but make it cute πŸ’–

okay bestie, welcome to CosNotifyFilter_FilterFactory(3) from the cosNotification application, straight out of the Erlang Module Definition section of the manual πŸŽ€ This module implements the OMG CosNotifyFilter::FilterFactory interface. yes it's a mouthful, no we're not scared of it πŸ’…


✨ NAME ✨

CosNotifyFilter_FilterFactory β€” this module implements the OMG CosNotifyFilter::FilterFactory interface. that's it, that's the whole name section, she's simple and she's iconic πŸ‘‘


🌸 DESCRIPTION 🌸

So like, to get access to the record definitions for the structures (the lil' records you're gonna need), you use:

-include_lib("cosNotification/include/*.hrl").

that's literally the whole vibe. include the header, get the records, live your truth πŸ¦‹


πŸ’« EXPORTS πŸ’«

create_filter(FilterFactory, Grammar) -> Reply

Types:

FilterFactory = #objref
Grammar = string()
Reply = Filter | {'EXCEPTION', #'CosNotifyFilter_InvalidGrammar'{}}
Filter = #objref

This operation creates a new Filter object β€” but only under the condition that the Grammar you gave it is actually supported, okay? no cap. And currently, the only thing supported is "EXTENDED_TCL". so don't come in here with your other grammars, she will simply not βœ‹πŸ˜­

create_mapping_filter(FilterFactory, Grammar) -> Reply

Types:

FilterFactory = #objref
Grammar = string()
Reply = MappingFilter | {'EXCEPTION', #'CosNotifyFilter_InvalidGrammar'{}}
Filter = #objref

Same energy, different object: this operation creates a new MappingFilter object, and again it only happens if the Grammar given is supported. And again β€” currently only "EXTENDED_TCL" is supported. periodt πŸ’…


so yeah, two exports, one grammar, zero drama. if your grammar isn't "EXTENDED_TCL" you're getting an exception and honestly the exception is right there in the type spec so at least you know what's coming πŸ™ˆ

that's the whole page bestie, you ate it, go build your filters 🫢✨


kisses from Ericsson AB πŸ’– this one's from the cosNotification application, version 5.2.2, and it's filed under CosNotifyF...lterFactory(3) in the manual. ily, bye πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from