summaryrefslogtreecommitdiff
path: root/cpp/src/IceBT/Instance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceBT/Instance.cpp')
-rw-r--r--cpp/src/IceBT/Instance.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/src/IceBT/Instance.cpp b/cpp/src/IceBT/Instance.cpp
new file mode 100644
index 00000000000..4e8f68406e7
--- /dev/null
+++ b/cpp/src/IceBT/Instance.cpp
@@ -0,0 +1,33 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2016 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 <IceBT/Instance.h>
+#include <IceBT/Engine.h>
+
+using namespace std;
+using namespace Ice;
+using namespace IceBT;
+
+IceUtil::Shared* IceBT::upCast(IceBT::Instance* p) { return p; }
+
+IceBT::Instance::Instance(const EnginePtr& engine, Short type, const string& protocol) :
+ ProtocolInstance(engine->communicator(), type, protocol, true),
+ _engine(engine)
+{
+}
+
+IceBT::Instance::~Instance()
+{
+}
+
+bool
+IceBT::Instance::initialized() const
+{
+ return _engine->initialized();
+}