#include <Property_T.h>
Collaboration diagram for TAO_Notify_StructProperty_T< TYPE >:
Public Member Functions | |
TAO_Notify_StructProperty_T (const char *name, const TYPE &initial) | |
Constructor. | |
TAO_Notify_StructProperty_T (const char *name) | |
Constructor. | |
int | set (const TAO_Notify_PropertySeq &property_seq) |
const char * | name (void) const |
Return the name. | |
const TYPE & | value (void) const |
Return the value. | |
CORBA::Boolean | is_valid (void) const |
Is the current value valid. | |
Protected Attributes | |
const char * | name_ |
The Property name. | |
TYPE | value_ |
The value. | |
CORBA::Boolean | valid_ |
Is the value valid. |
Definition at line 122 of file Property_T.h.
TAO_Notify_StructProperty_T< TYPE >::TAO_Notify_StructProperty_T | ( | const char * | name, | |
const TYPE & | initial | |||
) |
TAO_Notify_StructProperty_T< TYPE >::TAO_Notify_StructProperty_T | ( | const char * | name | ) |
ACE_INLINE CORBA::Boolean TAO_Notify_StructProperty_T< TYPE >::is_valid | ( | void | ) | const |
Is the current value valid.
Definition at line 72 of file Property_T.inl.
References TAO_Notify_StructProperty_T< TYPE >::valid_.
Referenced by TAO_Notify_Object::set_qos().
00073 { 00074 return this->valid_; 00075 }
ACE_INLINE const char * TAO_Notify_StructProperty_T< TYPE >::name | ( | void | ) | const |
Return the name.
Definition at line 58 of file Property_T.inl.
References TAO_Notify_StructProperty_T< TYPE >::name_.
00059 { 00060 return this->name_; 00061 }
int TAO_Notify_StructProperty_T< TYPE >::set | ( | const TAO_Notify_PropertySeq & | property_seq | ) |
Init this Property from the sequence. Returns 0 on success, -1 on error
Definition at line 114 of file Property_T.cpp.
References TAO_Notify_PropertySeq::find(), TAO_Notify_StructProperty_T< TYPE >::valid_, TAO_Notify_StructProperty_T< TYPE >::value(), and TAO_Notify_StructProperty_T< TYPE >::value_.
Referenced by TAO_Notify_QoSProperties::init().
00116 { 00117 CosNotification::PropertyValue value; 00118 00119 if (property_seq.find (this->name_, value) == 0) 00120 { 00121 TYPE* extract_type = 0; 00122 00123 if ((value >>= extract_type) && extract_type != 0) // make sure we get something valid. 00124 { 00125 this->value_ = *extract_type; // copy 00126 this->valid_ = 1; 00127 return 0; 00128 } 00129 } 00130 00131 this->valid_ = 0; 00132 return -1; 00133 }
ACE_INLINE const TYPE & TAO_Notify_StructProperty_T< TYPE >::value | ( | void | ) | const |
Return the value.
Definition at line 64 of file Property_T.inl.
References TAO_Notify_StructProperty_T< TYPE >::value_.
Referenced by TAO_Notify_QoSProperties::init(), TAO_Notify_StructProperty_T< TYPE >::set(), and TAO_Notify_Object::set_qos().
00065 { 00066 return this->value_; 00067 }
const char* TAO_Notify_StructProperty_T< TYPE >::name_ [protected] |
The Property name.
Definition at line 146 of file Property_T.h.
Referenced by TAO_Notify_StructProperty_T< TYPE >::name().
CORBA::Boolean TAO_Notify_StructProperty_T< TYPE >::valid_ [protected] |
Is the value valid.
Definition at line 152 of file Property_T.h.
Referenced by TAO_Notify_StructProperty_T< TYPE >::is_valid(), and TAO_Notify_StructProperty_T< TYPE >::set().
TYPE TAO_Notify_StructProperty_T< TYPE >::value_ [protected] |
The value.
Definition at line 149 of file Property_T.h.
Referenced by TAO_Notify_StructProperty_T< TYPE >::set(), and TAO_Notify_StructProperty_T< TYPE >::value().