#include <NVList_Adapter_Impl.h>


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 | |
| static int | Initializer (void) |
| Used to force the initialization of the NVList adapter. | |
Definition at line 32 of file NVList_Adapter_Impl.h.
| void TAO_NVList_Adapter_Impl::create_list | ( | CORBA::Long | count, | |
| CORBA::NVList_ptr & | new_list | |||
| ) | [virtual] |
Implements TAO_NVList_Adapter.
Definition at line 16 of file NVList_Adapter_Impl.cpp.
{
ACE_ASSERT (CORBA::ULong (count) <= UINT_MAX);
// Create an empty list
ACE_NEW_THROW_EX (new_list,
CORBA::NVList,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
0,
ENOMEM),
CORBA::COMPLETED_NO));
// If count is greater than 0, create a list of NamedValues.
if (count != 0)
{
new_list->max_ = (CORBA::ULong) count;
for (CORBA::Long i = 0; i < count; ++i)
{
CORBA::NamedValue_ptr nv = 0;
ACE_NEW_THROW_EX (nv,
CORBA::NamedValue,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
0,
ENOMEM),
CORBA::COMPLETED_NO));
new_list->values_.enqueue_tail (nv);
}
}
}
| void TAO_NVList_Adapter_Impl::create_named_value | ( | CORBA::NamedValue_ptr & | nv | ) | [virtual] |
Implements TAO_NVList_Adapter.
Definition at line 52 of file NVList_Adapter_Impl.cpp.
{
ACE_NEW_THROW_EX (nv,
CORBA::NamedValue,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
0,
ENOMEM),
CORBA::COMPLETED_NO));
}
| int TAO_NVList_Adapter_Impl::Initializer | ( | void | ) | [static] |
Used to force the initialization of the NVList adapter.
Definition at line 64 of file NVList_Adapter_Impl.cpp.
{
return ACE_Service_Config::process_directive (ace_svc_desc_TAO_NVList_Adapter_Impl);
}
1.7.0