1 // file : RolyPoly/RolyPoly_i.cpp
2 // author : Boris Kolpackov <boris@dre.vanderbilt.edu>
3 #include "RolyPoly_i.h"
4 #include "StateUpdate.h"
5 #include "tao/AnyTypeCode/Any.h"
7 RolyPoly_i::RolyPoly_i (CORBA::ORB_ptr orb
)
9 , orb_ (CORBA::ORB::_duplicate (orb
))
13 CORBA::Any
* RolyPoly_i::
17 CORBA::Any_var state (new CORBA::Any);
19 *state <<= this->number_;
21 return state._retn ();
29 set_state (CORBA::Any
const& state
)
31 state
>>= this->number_
;
36 RolyPoly_i::number (char *&str
)
38 CORBA::string_free (str
);
40 str
= CORBA::string_dup ("Greetings from RolyPoly.");
45 // Preppare state update.
52 associate_state (orb_
.in (), a
);
58 RolyPoly_i::shutdown ()
60 ACE_DEBUG ((LM_DEBUG
, "Server is shutting down.\n"));
62 this->orb_
->shutdown (false);