diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-10-10 20:51:09 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-10-10 20:51:09 +0000 |
commit | 5c820414d32245f8f23ad323787b72fb94f2782b (patch) | |
tree | 7b00c76b0c76606ed30740849b83e65921b8be84 /cpp/demo/IcePack/hello/HelloServiceI.cpp | |
parent | adding IceGrid (diff) | |
download | ice-5c820414d32245f8f23ad323787b72fb94f2782b.tar.bz2 ice-5c820414d32245f8f23ad323787b72fb94f2782b.tar.xz ice-5c820414d32245f8f23ad323787b72fb94f2782b.zip |
bug 475: remove IcePack
Diffstat (limited to 'cpp/demo/IcePack/hello/HelloServiceI.cpp')
-rw-r--r-- | cpp/demo/IcePack/hello/HelloServiceI.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/cpp/demo/IcePack/hello/HelloServiceI.cpp b/cpp/demo/IcePack/hello/HelloServiceI.cpp deleted file mode 100644 index 6e166501fef..00000000000 --- a/cpp/demo/IcePack/hello/HelloServiceI.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved. -// -// This copy of Ice is licensed to you under the terms described in the -// ICE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <Ice/Ice.h> -#include <HelloServiceI.h> -#include <HelloI.h> - -using namespace std; - -extern "C" -{ - -// -// Factory function -// -HELLO_API ::IceBox::Service* -create(::Ice::CommunicatorPtr communicator) -{ - return new HelloServiceI; -} - -} - -HelloServiceI::HelloServiceI() -{ -} - -HelloServiceI::~HelloServiceI() -{ -} - -void -HelloServiceI::start(const string& name, - const ::Ice::CommunicatorPtr& communicator, - const ::Ice::StringSeq& args) -{ - _adapter = communicator->createObjectAdapter("Hello"); - - string id = communicator->getProperties()->getProperty("Identity"); - - Ice::ObjectPtr object = new HelloFactoryI(); - _adapter->add(object, Ice::stringToIdentity(id)); - _adapter->activate(); -} - -void -HelloServiceI::stop() -{ - _adapter->deactivate(); -} |