Public Member Functions

TAO_Notify_Property_T< TYPE > Class Template Reference

#include <Property_T.h>

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

List of all members.

Public Member Functions

 TAO_Notify_Property_T (const char *name, const TYPE &initial)
 Constructor.
 TAO_Notify_Property_T (const char *name)
 Constructor.
int set (const TAO_Notify_PropertySeq &property_seq)
int set (const CosNotification::PropertyValue &value)

Detailed Description

template<class TYPE>
class TAO_Notify_Property_T< TYPE >

Definition at line 96 of file Property_T.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 67 of file Property_T.cpp.

  :TAO_Notify_PropertyBase_T <TYPE> (name, initial)
{
}

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

Constructor.

Definition at line 61 of file Property_T.cpp.


Member Function Documentation

template<class TYPE >
int TAO_Notify_Property_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 73 of file Property_T.cpp.

{
  CosNotification::PropertyValue value;

  if (property_seq.find (this->name_, value) == 0 && (value >>= this->value_))
    {
      this->valid_ = 1;
      return 0;
    }

  this->valid_ = 0;
  return -1;
}

template<class TYPE >
int TAO_Notify_Property_T< TYPE >::set ( const CosNotification::PropertyValue value  ) 

Init this Property from the CosNotification::PropertyValue Returns 0 on success, -1 on error

Definition at line 88 of file Property_T.cpp.

{
  if (value >>= this->value_)
  {
    this->valid_ = 1;
    return 0;
  }

  return -1;
}


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