diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-07-20 14:32:29 +0000 |
commit | 313d763c57f0116ae8a4d516a339356e20578e19 (patch) | |
tree | 2f3d376496d8634487d22da4494ba47b13cedee8 /TAO/orbsvcs/IFR_Service/NativeDef_i.cpp | |
parent | 5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff) | |
download | ATCD-313d763c57f0116ae8a4d516a339356e20578e19.tar.gz |
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'TAO/orbsvcs/IFR_Service/NativeDef_i.cpp')
-rw-r--r-- | TAO/orbsvcs/IFR_Service/NativeDef_i.cpp | 56 |
1 files changed, 56 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..366530bfa56 --- /dev/null +++ b/TAO/orbsvcs/IFR_Service/NativeDef_i.cpp @@ -0,0 +1,56 @@ +/* -*- 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) +{ +} + +CORBA::DefinitionKind +TAO_NativeDef_i::def_kind (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + return CORBA::dk_Native; +} + +CORBA::TypeCode_ptr +TAO_NativeDef_i::type (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) +{ + TAO_IFR_READ_GUARD_RETURN (CORBA::TypeCode::_nil ()); + + return this->type_i (ACE_ENV_SINGLE_ARG_PARAMETER); +} + +CORBA::TypeCode_ptr +TAO_NativeDef_i::type_i (ACE_ENV_SINGLE_ARG_DECL) + 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_ENV_ARG_PARAMETER); +} + |