summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Containers/Container_Base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/ciao/Containers/Container_Base.cpp')
-rw-r--r--modules/CIAO/ciao/Containers/Container_Base.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Containers/Container_Base.cpp b/modules/CIAO/ciao/Containers/Container_Base.cpp
new file mode 100644
index 00000000000..9fa616e7299
--- /dev/null
+++ b/modules/CIAO/ciao/Containers/Container_Base.cpp
@@ -0,0 +1,50 @@
+// $Id$
+
+#include "Container_Base.h"
+#include "ciao/Logger/Log_Macros.h"
+
+#if !defined (__ACE_INLINE__)
+# include "Container_Base.inl"
+#endif /* __ACE_INLINE__ */
+
+namespace CIAO
+{
+ ////////////////////////////////////////////////////////////////
+
+ Container_i::Container_i (CORBA::ORB_ptr o)
+ : orb_ (CORBA::ORB::_duplicate (o)),
+ container_impl_ (0)
+ {
+ }
+
+ Container_i::Container_i (CORBA::ORB_ptr o,
+ Deployment::CIAO_Container_i *container_impl)
+ : orb_ (CORBA::ORB::_duplicate (o)),
+ container_impl_ (container_impl)
+ {
+ }
+
+ Container_i::~Container_i (void)
+ {
+ }
+
+ CORBA::PolicyList *
+ Container_i::get_receptacle_policy (const char* name)
+ {
+ CORBA::PolicyList_var policy_list;
+
+ ACE_NEW_THROW_EX (policy_list,
+ CORBA::PolicyList (),
+ CORBA::NO_MEMORY ());
+
+ if (this->rec_pol_map_.find (name, policy_list) != 0)
+ {
+ CIAO_ERROR ((LM_DEBUG, CLINFO
+ "Container_i::get_receptacle_policy - No policies found "
+ "for the receptacle %C\n",
+ name));
+ }
+
+ return policy_list._retn ();
+ }
+}