#include <Name_Value_Pair.h>
Collaboration diagram for TAO_Notify::NVPList:
Public Member Functions | |
void | load (TAO_Notify_Property_Short &p) const |
Find the NVP with the same name as the property, copy the value. | |
void | load (TAO_Notify_Property_Long &p) const |
Find the NVP with the same name as the property, copy the value. | |
void | load (TAO_Notify_Property_Time &p) const |
Find the NVP with the same name as the property, copy the value. | |
void | load (TAO_Notify_Property_Boolean &p) const |
Find the NVP with the same name as the property, copy the value. | |
bool | load (const char *n, CORBA::Long &v) const |
Find the NVP with specified name, copy the value to a string. | |
bool | load (const char *n, ACE_CString &v) const |
Find the NVP with specified name, copy the value to a long. | |
void | push_back (const NVP &v) |
add a new name/value pair. | |
size_t | size () const |
size of the collection. | |
const NVP & | operator[] (size_t ndx) const |
access NVP via numeric index. | |
bool | find (const char *name, ACE_CString &val) const |
low level access: find | |
bool | find (const char *name, const char *&val) const |
low level access: use this when you don't need a CString | |
Private Attributes | |
ACE_Vector< NVP > | list_ |
Definition at line 69 of file Name_Value_Pair.h.
|
low level access: use this when you don't need a CString
Definition at line 118 of file Name_Value_Pair.cpp. References ACE_Vector< NVP >::size().
|
|
low level access: find
Definition at line 105 of file Name_Value_Pair.cpp. References ACE_Vector< NVP >::size(). Referenced by load(), and TAO_Notify_Admin::load_attrs().
|
|
Find the NVP with specified name, copy the value to a long.
Definition at line 185 of file Name_Value_Pair.cpp.
00186 { 00187 return find(n, v); 00188 } |
|
Find the NVP with specified name, copy the value to a string.
Definition at line 174 of file Name_Value_Pair.cpp. References ACE_OS::atoi(), find(), and v.
00175 { 00176 const char * val; 00177 if (find(n, val)) 00178 { 00179 v = static_cast<CORBA::Long> (ACE_OS::atoi(val)); 00180 return true; 00181 } 00182 return false; 00183 } |
|
Find the NVP with the same name as the property, copy the value.
Definition at line 158 of file Name_Value_Pair.cpp. References ACE_CString, find(), TAO_Notify_Property_Boolean::name(), and v.
|
|
Find the NVP with the same name as the property, copy the value.
Definition at line 149 of file Name_Value_Pair.cpp. References TAO_Notify_PropertyBase_T< TYPE >::assign(), find(), TAO_Notify_PropertyBase_T< TYPE >::name(), string_to_uint64(), TAO_Notify_Property_Time, and v.
|
|
Find the NVP with the same name as the property, copy the value.
Definition at line 140 of file Name_Value_Pair.cpp. References TAO_Notify_PropertyBase_T< TYPE >::assign(), find(), TAO_Notify_PropertyBase_T< TYPE >::name(), TAO_Notify_Property_Long, and v.
|
|
Find the NVP with the same name as the property, copy the value.
Definition at line 131 of file Name_Value_Pair.cpp. References TAO_Notify_PropertyBase_T< TYPE >::assign(), find(), TAO_Notify_PropertyBase_T< TYPE >::name(), TAO_Notify_Property_Short, and v. Referenced by TAO_Notify_EventType::init(), TAO_Notify_StructuredProxyPushSupplier::load_attrs(), TAO_Notify_StructuredProxyPushConsumer::load_attrs(), TAO_Notify_SequenceProxyPushSupplier::load_attrs(), TAO_Notify_SequenceProxyPushConsumer::load_attrs(), TAO_Notify_ProxyPushSupplier::load_attrs(), TAO_Notify_ProxyPushConsumer::load_attrs(), TAO_Notify_Object::load_attrs(), and TAO_Notify_EventChannel::load_attrs().
|
|
access NVP via numeric index.
Definition at line 208 of file Name_Value_Pair.cpp. References ACE_ASSERT, and ACE_Vector< NVP >::size().
00209 { 00210 ACE_ASSERT (ndx < list_.size()); 00211 return list_[ndx]; 00212 } |
|
add a new name/value pair.
Definition at line 190 of file Name_Value_Pair.cpp. References ACE_Vector< NVP >::push_back(), ACE_Vector< NVP >::size(), and v. Referenced by add_attr(), add_qos_attr(), TAO_Notify::XML_Saver::open(), TAO_Notify_Proxy::save_attrs(), TAO_Notify_Admin::save_attrs(), TAO_Notify::Reconnection_Registry::save_persistent(), TAO_Notify_FilterAdmin::save_persistent(), and TAO_Notify_EventType::save_persistent().
|
|
size of the collection.
Definition at line 203 of file Name_Value_Pair.cpp. References ACE_Vector< NVP >::size(). Referenced by TAO_Notify::XML_Saver::begin_object().
|
|
Definition at line 95 of file Name_Value_Pair.h. |