#include <Property_T.h>
Inheritance diagram for TAO_Notify_Property_T< TYPE >:
Public Member Functions | |
TAO_Notify_Property_T (const char *name, const TYPE &initial) | |
Constructor. | |
TAO_Notify_Property_T (const char *name) | |
Constructor. | |
int | set (const TAO_Notify_PropertySeq &property_seq) |
int | set (const CosNotification::PropertyValue &value) |
Definition at line 96 of file Property_T.h.
TAO_Notify_Property_T< TYPE >::TAO_Notify_Property_T | ( | const char * | name, | |
const TYPE & | initial | |||
) |
Constructor.
Definition at line 67 of file Property_T.cpp.
00068 :TAO_Notify_PropertyBase_T <TYPE> (name, initial) 00069 { 00070 }
TAO_Notify_Property_T< TYPE >::TAO_Notify_Property_T | ( | const char * | name | ) |
Constructor.
Definition at line 61 of file Property_T.cpp.
00062 :TAO_Notify_PropertyBase_T <TYPE> (name) 00063 { 00064 }
int TAO_Notify_Property_T< TYPE >::set | ( | const CosNotification::PropertyValue & | value | ) |
Init this Property from the CosNotification::PropertyValue Returns 0 on success, -1 on error
Definition at line 88 of file Property_T.cpp.
References TAO_Notify_PropertyBase_T< TYPE >::valid_.
00089 { 00090 if (value >>= this->value_) 00091 { 00092 this->valid_ = 1; 00093 return 0; 00094 } 00095 00096 return -1; 00097 }
int TAO_Notify_Property_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 73 of file Property_T.cpp.
References TAO_Notify_PropertySeq::find(), TAO_Notify_PropertyBase_T< TYPE >::valid_, TAO_Notify_PropertyBase_T< TYPE >::value(), and TAO_Notify_PropertyBase_T< TYPE >::value_.
Referenced by TAO_Notify_QoSProperties::init(), TAO_Notify_AdminProperties::init(), and TAO_Notify_StructuredEvent_No_Copy::TAO_Notify_StructuredEvent_No_Copy().
00074 { 00075 CosNotification::PropertyValue value; 00076 00077 if (property_seq.find (this->name_, value) == 0 && (value >>= this->value_)) 00078 { 00079 this->valid_ = 1; 00080 return 0; 00081 } 00082 00083 this->valid_ = 0; 00084 return -1; 00085 }