#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) | |
Constuctor. | |
TAO_Notify_StructProperty_T (const char *name) | |
Constuctor. | |
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. |
|
Constuctor.
Definition at line 108 of file Property_T.cpp.
|
|
Constuctor.
Definition at line 102 of file Property_T.cpp.
|
|
Is the current value valid.
Definition at line 72 of file Property_T.inl. Referenced by TAO_Notify_QoSProperties::init(), and TAO_Notify_Object::set_qos().
00073 { 00074 return this->valid_; 00075 } |
|
Return the name.
Definition at line 58 of file Property_T.inl.
00059 { 00060 return this->name_; 00061 } |
|
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(), and CosNotification::PropertyValue. 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 } |
|
Return the value.
Definition at line 64 of file Property_T.inl. Referenced by TAO_Notify_QoSProperties::init(), and TAO_Notify_Object::set_qos().
00065 { 00066 return this->value_; 00067 } |
|
The Property name.
Definition at line 146 of file Property_T.h. |
|
Is the value valid.
Definition at line 152 of file Property_T.h. |
|
The value.
Definition at line 149 of file Property_T.h. |