summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/session/HelloSessionManagerI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-04-13 09:14:34 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-04-13 09:14:34 +0000
commitb4aa63207a91edc4fee016877c048f3c862bcb71 (patch)
treebd1cb1a7a30677c39ac9b065528d1ceed89d3d69 /cpp/demo/Ice/session/HelloSessionManagerI.cpp
parentadded Makefile .depend. (diff)
downloadice-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-xcpp/demo/Ice/session/HelloSessionManagerI.cpp55
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)
{