diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-04-13 09:14:34 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-04-13 09:14:34 +0000 |
commit | b4aa63207a91edc4fee016877c048f3c862bcb71 (patch) | |
tree | bd1cb1a7a30677c39ac9b065528d1ceed89d3d69 /cpp/demo/Ice/session/HelloSessionManagerI.cpp | |
parent | added Makefile .depend. (diff) | |
download | ice-b4aa63207a91edc4fee016877c048f3c862bcb71.tar.bz2 ice-b4aa63207a91edc4fee016877c048f3c862bcb71.tar.xz ice-b4aa63207a91edc4fee016877c048f3c862bcb71.zip |
moved session impl into seperate file.
Diffstat (limited to 'cpp/demo/Ice/session/HelloSessionManagerI.cpp')
-rwxr-xr-x | cpp/demo/Ice/session/HelloSessionManagerI.cpp | 55 |
1 files changed, 1 insertions, 54 deletions
diff --git a/cpp/demo/Ice/session/HelloSessionManagerI.cpp b/cpp/demo/Ice/session/HelloSessionManagerI.cpp index 0ad43dec770..7b7bcda8d3c 100755 --- a/cpp/demo/Ice/session/HelloSessionManagerI.cpp +++ b/cpp/demo/Ice/session/HelloSessionManagerI.cpp @@ -9,64 +9,11 @@ #include <Ice/Ice.h> #include <HelloSessionManagerI.h> - -#include <HelloSession.h> +#include <HelloSessionI.h> using namespace std; using namespace Demo; -class HelloSessionI : public HelloSession -{ -public: - - HelloSessionI(const SessionManagerIPtr& manager) : - _manager(manager) - { - } - - ~HelloSessionI() - { - } - - virtual void - sayHello(const Ice::Current&) const - { - cout << "Hello World!" << endl; - } - - // Common session specific code. - - // - // Destroy all session specific state. - // - virtual void - destroyed(const Ice::Current& c) - { - c.adapter->remove(c.id); - } - - // - // This method is called by the client to destroy a session. All - // it should do is call remove on the session manager. All user - // specific cleanup should go in the destroyed() callback. - // - virtual void - destroy(const Ice::Current& c) - { - _manager->remove(c.id); - } - - virtual void - refresh(const Ice::Current& c) - { - _manager->refresh(c.id); - } - -private: - - const SessionManagerIPtr _manager; -}; - SessionPrx HelloSessionManagerI::create(const Ice::Current& c) { |