summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/clock/Subscriber.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-12-07 19:23:34 +0000
committerMarc Laukien <marc@zeroc.com>2001-12-07 19:23:34 +0000
commit2f0f2370b76e3dac88cec58999edb315b014f441 (patch)
tree81ab73ca0df0bcf2c9b9d655a5f0a7595bc2f431 /cpp/demo/IceStorm/clock/Subscriber.cpp
parentfixes (diff)
downloadice-2f0f2370b76e3dac88cec58999edb315b014f441.tar.bz2
ice-2f0f2370b76e3dac88cec58999edb315b014f441.tar.xz
ice-2f0f2370b76e3dac88cec58999edb315b014f441.zip
removed --dbdir
Diffstat (limited to 'cpp/demo/IceStorm/clock/Subscriber.cpp')
-rw-r--r--cpp/demo/IceStorm/clock/Subscriber.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/demo/IceStorm/clock/Subscriber.cpp b/cpp/demo/IceStorm/clock/Subscriber.cpp
index 40145cbd239..b2101ca5be0 100644
--- a/cpp/demo/IceStorm/clock/Subscriber.cpp
+++ b/cpp/demo/IceStorm/clock/Subscriber.cpp
@@ -12,9 +12,8 @@
#include <IceStorm/IceStorm.h>
#include <ClockI.h>
-using namespace Ice;
-using namespace IceStorm;
using namespace std;
+using namespace Ice;
class Subscriber : public Application
{
@@ -33,7 +32,7 @@ main(int argc, char* argv[])
int
Subscriber::run(int argc, char* argv[])
{
- Ice::PropertiesPtr properties = communicator()->getProperties();
+ PropertiesPtr properties = communicator()->getProperties();
const char* endpointsProperty = "IceStorm.TopicManager.Endpoints";
std::string endpoints = properties->getProperty(endpointsProperty);
if (endpoints.empty())
@@ -50,9 +49,9 @@ Subscriber::run(int argc, char* argv[])
return EXIT_FAILURE;
}
- Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("ClockAdapter", "tcp");
- Ice::ObjectPtr clock = new ClockI();
- Ice::ObjectPrx object = adapter->add(clock, Ice::stringToIdentity("events#time"));
+ ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("ClockAdapter", "tcp");
+ ObjectPtr clock = new ClockI();
+ ObjectPrx object = adapter->add(clock, stringToIdentity("events#time"));
//
// The set of topics to which to subscribe