#include <NVList_Adapter_Impl.h>
Inheritance diagram for TAO_NVList_Adapter_Impl:
Public Member Functions | |
virtual void | create_list (CORBA::Long count, CORBA::NVList_ptr &new_list) |
virtual void | create_named_value (CORBA::NamedValue_ptr &nv) |
Static Public Member Functions | |
int | Initializer (void) |
Used to force the initialization of the NVList adapter. |
|
Implements TAO_NVList_Adapter. Definition at line 16 of file NVList_Adapter_Impl.cpp. References ACE_ASSERT, and ACE_NEW_THROW_EX.
00019 { 00020 ACE_ASSERT (CORBA::ULong (count) <= UINT_MAX); 00021 // Create an empty list 00022 ACE_NEW_THROW_EX (new_list, 00023 CORBA::NVList, 00024 CORBA::NO_MEMORY ( 00025 CORBA::SystemException::_tao_minor_code ( 00026 0, 00027 ENOMEM), 00028 CORBA::COMPLETED_NO)); 00029 00030 // If count is greater than 0, create a list of NamedValues. 00031 if (count != 0) 00032 { 00033 new_list->max_ = (CORBA::ULong) count; 00034 00035 for (CORBA::Long i = 0; i < count; ++i) 00036 { 00037 CORBA::NamedValue_ptr nv = 0; 00038 ACE_NEW_THROW_EX (nv, 00039 CORBA::NamedValue, 00040 CORBA::NO_MEMORY ( 00041 CORBA::SystemException::_tao_minor_code ( 00042 0, 00043 ENOMEM), 00044 CORBA::COMPLETED_NO)); 00045 00046 new_list->values_.enqueue_tail (nv); 00047 } 00048 } 00049 } |
|
Implements TAO_NVList_Adapter. Definition at line 52 of file NVList_Adapter_Impl.cpp. References ACE_NEW_THROW_EX.
00055 { 00056 ACE_NEW_THROW_EX (nv, 00057 CORBA::NamedValue, 00058 CORBA::NO_MEMORY ( 00059 CORBA::SystemException::_tao_minor_code ( 00060 0, 00061 ENOMEM), 00062 CORBA::COMPLETED_NO)); 00063 } |
|
Used to force the initialization of the NVList adapter.
Definition at line 66 of file NVList_Adapter_Impl.cpp. References ACE_Service_Config::process_directive().
00067 { 00068 return ACE_Service_Config::process_directive (ace_svc_desc_TAO_NVList_Adapter_Impl); 00069 } |