diff options
Diffstat (limited to 'cpp/include/IceStorm/Service.h')
-rw-r--r-- | cpp/include/IceStorm/Service.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/include/IceStorm/Service.h b/cpp/include/IceStorm/Service.h new file mode 100644 index 00000000000..9ac17a92a75 --- /dev/null +++ b/cpp/include/IceStorm/Service.h @@ -0,0 +1,50 @@ +// ********************************************************************** +// +// 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. +// +// ********************************************************************** + +#ifndef ICESTORM_SERVICE_H +#define ICESTORM_SERVICE_H + +#include <IceBox/IceBox.h> +#include <IceStorm/IceStorm.h> + +#ifndef ICE_STORM_SERVICE_API +# ifdef ICE_STORM_SERVICE_API_EXPORTS +# define ICE_STORM_SERVICE_API ICE_DECLSPEC_EXPORT +# else +# define ICE_STORM_SERVICE_API ICE_DECLSPEC_IMPORT +# endif +#endif + +namespace IceStorm +{ + +class Service; +typedef ::IceInternal::Handle< ::IceStorm::Service> ServicePtr; + +class ICE_STORM_SERVICE_API Service : public ::IceBox::Service +{ +public: + + static ServicePtr create(const Ice::CommunicatorPtr&, + const Ice::ObjectAdapterPtr&, + const Ice::ObjectAdapterPtr&, + const std::string&, + const Ice::Identity&, + const std::string&); + + virtual void start(const std::string&, const Ice::CommunicatorPtr&, const Ice::StringSeq&) = 0; + + virtual TopicManagerPrx getTopicManager() const = 0; + + virtual void stop() = 0; +}; + +}; + +#endif |