Public Member Functions | Protected Attributes

TAO_Notify_Property_Boolean Class Reference

Boolean Property. More...

#include <Property_Boolean.h>

List of all members.

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_Booleanoperator= (const TAO_Notify_Property_Boolean &rhs)
 Assignment from TAO_Notify_Property_Boolean.
TAO_Notify_Property_Booleanoperator= (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.

Detailed Description

Boolean Property.

Definition at line 34 of file Property_Boolean.h.


Constructor & Destructor Documentation

TAO_Notify_Property_Boolean::TAO_Notify_Property_Boolean ( const char *  name,
CORBA::Boolean  initial 
)

Constructor.

Definition at line 20 of file Property_Boolean.cpp.

  :name_ (name), value_ (initial), valid_ (1)
{
}

TAO_Notify_Property_Boolean::TAO_Notify_Property_Boolean ( const char *  name  ) 

Constructor.

Definition at line 15 of file Property_Boolean.cpp.

  : name_ (name), valid_(0)
{
}


Member Function Documentation

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

Return the name.

Definition at line 45 of file Property_Boolean.inl.

{
  return this->name_;
}

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.

{
  if (this == &rhs)
    return *this;

  if (rhs.is_valid ())
    {
      this->name_ = rhs.name_;
      this->value_ = rhs.value_;
      this->valid_ = rhs.valid_;
    }

  return *this;
}

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

Return the value.

Definition at line 51 of file Property_Boolean.inl.

{
  return this->value_;
}


Member Data Documentation

const char* TAO_Notify_Property_Boolean::name_ [protected]

The Property name.

Definition at line 70 of file Property_Boolean.h.

Is the value valid.

Definition at line 76 of file Property_Boolean.h.

The value.

Definition at line 73 of file Property_Boolean.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines