Public Member Functions | Protected Attributes

TAO_Notify_PropertyBase_T< TYPE > Class Template Reference

#include <Property_T.h>

Inheritance diagram for TAO_Notify_PropertyBase_T< TYPE >:
Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_PropertyBase_T< TYPE >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Notify_PropertyBase_T (const char *name, const TYPE &initial)
 Constructor.
 TAO_Notify_PropertyBase_T (const char *name)
 Constructor.
 TAO_Notify_PropertyBase_T (const TAO_Notify_PropertyBase_T &rhs)
 Copy Constructor.
 ~TAO_Notify_PropertyBase_T ()
 Destructor.
bool operator== (const TYPE &rhs) const
 Equality comparison operator.
bool operator!= (const TYPE &rhs) const
 Inequality comparison operator.
void get (CosNotification::PropertySeq &prop_seq)
 Populate the Property Sequence with this valid value.
void assign (const TYPE &value)
const TYPE & value (void) const
 Return the value.
const char * name (void) const
 Return the name.
CORBA::Boolean is_valid (void) const
 Is the current value valid.
void invalidate (void)
 Invalidate this property's value.

Protected Attributes

const char * name_
 The Property name.
TYPE value_
 The value.
CORBA::Boolean valid_
 Is the value valid.

Detailed Description

template<class TYPE>
class TAO_Notify_PropertyBase_T< TYPE >

Definition at line 37 of file Property_T.h.


Constructor & Destructor Documentation

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T ( const char *  name,
const TYPE &  initial 
)

Constructor.

Definition at line 29 of file Property_T.cpp.

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

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T ( const char *  name  ) 

Constructor.

Definition at line 23 of file Property_T.cpp.

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

template<class TYPE>
TAO_Notify_PropertyBase_T< TYPE >::TAO_Notify_PropertyBase_T ( const TAO_Notify_PropertyBase_T< TYPE > &  rhs  ) 

Copy Constructor.

Definition at line 35 of file Property_T.cpp.

  : name_ (rhs.name_),
    value_ (rhs.value_),
    valid_ (rhs.valid_)
{

}

template<class TYPE >
TAO_Notify_PropertyBase_T< TYPE >::~TAO_Notify_PropertyBase_T (  ) 

Destructor.

Definition at line 45 of file Property_T.cpp.

{
}


Member Function Documentation

template<class TYPE>
void TAO_Notify_PropertyBase_T< TYPE >::assign ( const TYPE &  value  ) 

Definition at line 46 of file Property_T.inl.

{
  this->value_ = value;
  this->valid_ = 1;
}

template<class TYPE >
void TAO_Notify_PropertyBase_T< TYPE >::get ( CosNotification::PropertySeq prop_seq  ) 

Populate the Property Sequence with this valid value.

Make space

Definition at line 50 of file Property_T.cpp.

{
  /// Make space
  prop_seq.length (prop_seq.length () + 1);

  prop_seq[prop_seq.length () - 1].value <<= this->value_;
}

template<class TYPE >
void TAO_Notify_PropertyBase_T< TYPE >::invalidate ( void   ) 

Invalidate this property's value.

Definition at line 39 of file Property_T.inl.

{
  this->valid_ = 0;
}

template<class TYPE >
CORBA::Boolean TAO_Notify_PropertyBase_T< TYPE >::is_valid ( void   )  const

Is the current value valid.

Definition at line 21 of file Property_T.inl.

{
  return this->valid_;
}

template<class TYPE >
const char * TAO_Notify_PropertyBase_T< TYPE >::name ( void   )  const

Return the name.

Definition at line 15 of file Property_T.inl.

{
  return this->name_;
}

template<class TYPE>
bool TAO_Notify_PropertyBase_T< TYPE >::operator!= ( const TYPE &  rhs  )  const

Inequality comparison operator.

Definition at line 33 of file Property_T.inl.

{
  return (this->value_ != rhs);
}

template<class TYPE>
bool TAO_Notify_PropertyBase_T< TYPE >::operator== ( const TYPE &  rhs  )  const

Equality comparison operator.

Definition at line 27 of file Property_T.inl.

{
  return (this->value_ == rhs);
}

template<class TYPE >
const TYPE & TAO_Notify_PropertyBase_T< TYPE >::value ( void   )  const

Return the value.

Definition at line 8 of file Property_T.inl.

{
  return this->value_;
}


Member Data Documentation

template<class TYPE>
const char* TAO_Notify_PropertyBase_T< TYPE >::name_ [protected]

The Property name.

Definition at line 78 of file Property_T.h.

template<class TYPE>
CORBA::Boolean TAO_Notify_PropertyBase_T< TYPE >::valid_ [protected]

Is the value valid.

Definition at line 84 of file Property_T.h.

template<class TYPE>
TYPE TAO_Notify_PropertyBase_T< TYPE >::value_ [protected]

The value.

Definition at line 81 of file Property_T.h.


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