Using the CORBA Notification Service
|   |  |  |   |   |  |  | 
Determines which events are delivered to a subscription.
Filter create_filter (
          in string constraint_grammar)
      raises (InvalidGrammar);
Used in the subscriber application to create a new filter object. This filter is used to determine which events are delivered to a subscription. The subscriber must set up the filter and add it to the proxy within five minutes; otherwise, the filter will be destroyed. The filter grammar must be set to Tobj_Notification::Constraint_grammar; otherwise, the InvalidGrammar exception is raised. 
Returns the new filter's object reference.
Note: Code examples shown here are abbreviated. For complete code examples, see "Creating a Subscription" on page -11.
filter_factory->create_filter(
Tobj_Notification::CONSTRAINT_GRAMMAR
);
This class is used by event subscriber applications. The OMG IDL for this class is as follows:
Module CosNotifyChannelAdmin
{
interface StructuredProxyPushSupplier :
ProxySupplier,
CosNotifyComm::StructuredPushSupplier {
voidconnect_structured_push_consumer(// The following operations are inherited.
in CosNotifyComm::StructuredPushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
};
void set_qos(in QoSProperties qos)
raises (UnsupportedQoS);
FilterID add_filter (in Filter new_filter );
Filter get_filter( in FilterID filter )
raises ( FilterNotFound);
void disconnect_structured_push_supplier();
readonly attribute ProxyType MyType;
};}; //CosNotifyChannelAdmin
|     |   |   |