Boolean Property. More...
#include <Property_Boolean.h>
Public Member Functions | |
TAO_Notify_Property_Boolean (const char *name, CORBA::Boolean initial) | |
Constructor. | |
TAO_Notify_Property_Boolean (const char *name) | |
Constructor. | |
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. |
Boolean Property.
Definition at line 34 of file Property_Boolean.h.
TAO_Notify_Property_Boolean::TAO_Notify_Property_Boolean | ( | const char * | name, | |
CORBA::Boolean | initial | |||
) |
TAO_Notify_Property_Boolean::TAO_Notify_Property_Boolean | ( | const char * | name | ) |
void TAO_Notify_Property_Boolean::get | ( | CosNotification::PropertySeq & | prop_seq | ) |
Make space
Definition at line 39 of file Property_Boolean.cpp.
{ /// Make space prop_seq.length (prop_seq.length () + 1); prop_seq[prop_seq.length () - 1].value <<= CORBA::Any::from_boolean (this->value_); }
CORBA::Boolean TAO_Notify_Property_Boolean::is_valid | ( | void | ) | const |
Is the current value valid.
Definition at line 57 of file Property_Boolean.inl.
{ return this->valid_; }
const char * TAO_Notify_Property_Boolean::name | ( | void | ) | const |
bool TAO_Notify_Property_Boolean::operator!= | ( | const CORBA::Boolean & | rhs | ) | const |
Inequality comparison operator.
Definition at line 38 of file Property_Boolean.inl.
{ return (this->value_ != rhs); }
TAO_Notify_Property_Boolean & TAO_Notify_Property_Boolean::operator= | ( | const CORBA::Boolean & | rhs | ) |
Assignment from CORBA::Boolean.
Definition at line 24 of file Property_Boolean.inl.
{ this->value_ = value; return *this; }
TAO_Notify_Property_Boolean & TAO_Notify_Property_Boolean::operator= | ( | const TAO_Notify_Property_Boolean & | rhs | ) |
Assignment from TAO_Notify_Property_Boolean.
Definition at line 8 of file Property_Boolean.inl.
bool TAO_Notify_Property_Boolean::operator== | ( | const CORBA::Boolean & | rhs | ) | const |
Equality comparison operator.
Definition at line 32 of file Property_Boolean.inl.
{ return (this->value_ == rhs); }
int TAO_Notify_Property_Boolean::set | ( | const TAO_Notify_PropertySeq & | property_seq | ) |
Definition at line 26 of file Property_Boolean.cpp.
{ CosNotification::PropertyValue value; if (property_seq.find (this->name_, value) == -1) return -1; value >>= CORBA::Any::to_boolean (this->value_); return 0; }
CORBA::Boolean TAO_Notify_Property_Boolean::value | ( | void | ) | const |
const char* TAO_Notify_Property_Boolean::name_ [protected] |
The Property name.
Definition at line 70 of file Property_Boolean.h.
CORBA::Boolean TAO_Notify_Property_Boolean::valid_ [protected] |
Is the value valid.
Definition at line 76 of file Property_Boolean.h.
CORBA::Boolean TAO_Notify_Property_Boolean::value_ [protected] |
The value.
Definition at line 73 of file Property_Boolean.h.