COSNOTIFYFILTER_FILTERFACTORY(3erl)
π 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
- fedora 43: erlang-cosNotification 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosNotification 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