#include <Property_Boolean.h>
Public Member Functions | |
TAO_Notify_Property_Boolean (const char *name, CORBA::Boolean initial) | |
Constuctor. | |
TAO_Notify_Property_Boolean (const char *name) | |
Constuctor. | |
TAO_Notify_Property_Boolean & | operator= (const TAO_Notify_Property_Boolean &rhs) |
Assignment from TAO_Notify_Property_Boolean. | |
TAO_Notify_Property_Boolean & | operator= (const CORBA::Boolean &rhs) |
Assignment from CORBA::Boolean. | |
bool | operator== (const CORBA::Boolean &rhs) const |
Equality comparison operator. | |
bool | operator!= (const CORBA::Boolean &rhs) const |
Inequality comparison operator. | |
int | set (const TAO_Notify_PropertySeq &property_seq) |
void | get (CosNotification::PropertySeq &prop_seq) |
const char * | name (void) const |
Return the name. | |
CORBA::Boolean | 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. | |
CORBA::Boolean | value_ |
The value. | |
CORBA::Boolean | valid_ |
Is the value valid. |
Definition at line 36 of file Property_Boolean.h.
|
Constuctor.
Definition at line 20 of file Property_Boolean.cpp.
|
|
Constuctor.
Definition at line 15 of file Property_Boolean.cpp.
|
|
Make space Definition at line 39 of file Property_Boolean.cpp. References CosNotification::PropertySeq.
00040 {
00041 /// Make space
00042 prop_seq.length (prop_seq.length () + 1);
00043
00044 prop_seq[prop_seq.length () - 1].value <<= CORBA::Any::from_boolean (this->value_);
00045 }
|
|
Is the current value valid.
Definition at line 57 of file Property_Boolean.inl. References valid_. Referenced by TAO_Notify_QoSProperties::init(), TAO_Notify_AdminProperties::init(), and operator=().
00058 { 00059 return this->valid_; 00060 } |
|
Return the name.
Definition at line 45 of file Property_Boolean.inl. Referenced by TAO_Notify::NVPList::load().
00046 { 00047 return this->name_; 00048 } |
|
Inequality comparison operator.
Definition at line 38 of file Property_Boolean.inl.
00039 { 00040 return (this->value_ != rhs); 00041 } |
|
Assignment from CORBA::Boolean.
Definition at line 24 of file Property_Boolean.inl.
00025 { 00026 this->value_ = value; 00027 00028 return *this; 00029 } |
|
Assignment from TAO_Notify_Property_Boolean.
Definition at line 8 of file Property_Boolean.inl. References is_valid(), name_, valid_, and value_.
|
|
Equality comparison operator.
Definition at line 32 of file Property_Boolean.inl.
00033 { 00034 return (this->value_ == rhs); 00035 } |
|
Definition at line 26 of file Property_Boolean.cpp. References TAO_Notify_PropertySeq::find(), and CosNotification::PropertyValue. Referenced by TAO_Notify_QoSProperties::init(), and TAO_Notify_AdminProperties::init().
00027 { 00028 CosNotification::PropertyValue value; 00029 00030 if (property_seq.find (this->name_, value) == -1) 00031 return -1; 00032 00033 value >>= CORBA::Any::to_boolean (this->value_); 00034 00035 return 0; 00036 } |
|
Return the value.
Definition at line 51 of file Property_Boolean.inl. Referenced by TAO_Notify::NVP::NVP().
00052 { 00053 return this->value_; 00054 } |
|
The Property name.
Definition at line 72 of file Property_Boolean.h. Referenced by operator=(). |
|
Is the value valid.
Definition at line 78 of file Property_Boolean.h. Referenced by is_valid(), and operator=(). |
|
The value.
Definition at line 75 of file Property_Boolean.h. Referenced by operator=(). |