#include <Property_T.h>
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 | ) |
CORBA::Boolean TAO_Notify_StructProperty_T< TYPE >::is_valid | ( | void | ) | const |
const char * TAO_Notify_StructProperty_T< TYPE >::name | ( | void | ) | const |
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.
{ CosNotification::PropertyValue value; if (property_seq.find (this->name_, value) == 0) { TYPE* extract_type = 0; if ((value >>= extract_type) && extract_type != 0) // make sure we get something valid. { this->value_ = *extract_type; // copy this->valid_ = 1; return 0; } } this->valid_ = 0; return -1; }
const TYPE & TAO_Notify_StructProperty_T< TYPE >::value | ( | void | ) | const |
const char* TAO_Notify_StructProperty_T< TYPE >::name_ [protected] |
The Property name.
Definition at line 146 of file Property_T.h.
CORBA::Boolean TAO_Notify_StructProperty_T< TYPE >::valid_ [protected] |
Is the value valid.
Definition at line 152 of file Property_T.h.
TYPE TAO_Notify_StructProperty_T< TYPE >::value_ [protected] |
The value.
Definition at line 149 of file Property_T.h.