summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/IFR_Service/NativeDef_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/IFR_Service/NativeDef_i.cpp')
-rw-r--r--TAO/orbsvcs/IFR_Service/NativeDef_i.cpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/TAO/orbsvcs/IFR_Service/NativeDef_i.cpp b/TAO/orbsvcs/IFR_Service/NativeDef_i.cpp
new file mode 100644
index 00000000000..43a48fd1806
--- /dev/null
+++ b/TAO/orbsvcs/IFR_Service/NativeDef_i.cpp
@@ -0,0 +1,47 @@
+/* -*- C++ -*- */
+// $Id$
+
+#include "NativeDef_i.h"
+#include "Repository_i.h"
+
+ACE_RCSID(IFR_Service, NativeDef_i, "$Id$")
+
+TAO_NativeDef_i::TAO_NativeDef_i (TAO_Repository_i *repo,
+ ACE_Configuration_Section_Key section_key)
+ : TAO_IRObject_i (repo, section_key),
+ TAO_Contained_i (repo, section_key),
+ TAO_IDLType_i (repo, section_key),
+ TAO_TypedefDef_i (repo, section_key)
+{
+}
+
+TAO_NativeDef_i::~TAO_NativeDef_i (void)
+{
+}
+
+IR::DefinitionKind
+TAO_NativeDef_i::def_kind (CORBA::Environment &)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return IR::dk_Native;
+}
+
+CORBA::TypeCode_ptr
+TAO_NativeDef_i::type (CORBA::Environment &ACE_TRY_ENV)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ ACE_TString id;
+ this->repo_->config ()->get_string_value (this->section_key_,
+ "id",
+ id);
+
+ ACE_TString name;
+ this->repo_->config ()->get_string_value (this->section_key_,
+ "name",
+ name);
+
+ return this->repo_->tc_factory ()->create_native_tc (id.c_str (),
+ name.c_str (),
+ ACE_TRY_ENV);
+}
+