1 #include "StructuredEventConsumer_i.h"
2 #include "tao/PortableServer/PS_CurrentC.h"
5 StructuredEventConsumer_i::StructuredEventConsumer_i(CORBA::ORB_ptr orb
)
6 : orb_(CORBA::ORB::_duplicate(orb
))
11 StructuredEventConsumer_i::push_structured_event(
12 const CosNotification::StructuredEvent
&event
18 for (unsigned int i
=0; i
<event
.filterable_data
.length(); i
++) {
19 event
.filterable_data
[i
].value
>>= value
;
20 std::cout
<< event
.filterable_data
[i
].name
<< "\t" <<value
<< std::endl
;
26 StructuredEventConsumer_i::disconnect_structured_push_consumer(
30 CORBA::Object_var obj
= orb_
->resolve_initial_references ("POACurrent");
31 PortableServer::Current_var current
=
32 PortableServer::Current::_narrow (obj
.in());
33 PortableServer::POA_var poa
= current
->get_POA ();
34 PortableServer::ObjectId_var objectId
= current
->get_object_id ();
35 poa
->deactivate_object (objectId
.in());
40 StructuredEventConsumer_i::offer_change(
41 const CosNotification::EventTypeSeq
&,
42 const CosNotification::EventTypeSeq
&