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/test/IcePack/deployer/Service.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/test/IcePack/deployer/Service.cpp')
-rw-r--r-- | cpp/test/IcePack/deployer/Service.cpp | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/cpp/test/IcePack/deployer/Service.cpp b/cpp/test/IcePack/deployer/Service.cpp deleted file mode 100644 index b96f8881558..00000000000 --- a/cpp/test/IcePack/deployer/Service.cpp +++ /dev/null @@ -1,75 +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 <IceBox/IceBox.h> -#include <TestI.h> - -#ifndef TEST_SERVICE_API -# define TEST_SERVICE_API ICE_DECLSPEC_EXPORT -#endif - - -using namespace std; -using namespace Ice; - -class TEST_SERVICE_API ServiceI : public ::IceBox::Service -{ -public: - - ServiceI(); - virtual ~ServiceI(); - - virtual void start(const string&, - const CommunicatorPtr&, - const StringSeq&); - - virtual void stop(); -}; - -extern "C" -{ - -// -// Factory function -// -TEST_SERVICE_API ::IceBox::Service* -create(CommunicatorPtr communicator) -{ - return new ServiceI; -} - -} - -ServiceI::ServiceI() -{ -} - -ServiceI::~ServiceI() -{ -} - -void -ServiceI::start(const string& name, - const CommunicatorPtr& communicator, - const StringSeq& args) -{ - Ice::PropertiesPtr properties = communicator->getProperties(); - - Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter(name); - Ice::ObjectPtr object = new TestI(adapter, properties); - adapter->add(object, Ice::stringToIdentity(properties->getProperty(name + ".Identity"))); - adapter->activate(); -} - -void -ServiceI::stop() -{ -} - |