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)
 Constuctor.

 TAO_Notify_Property_T (const char *name)
 Constuctor.

int set (const TAO_Notify_PropertySeq &property_seq)
int set (const CosNotification::PropertyValue &value)

template<class TYPE>
class TAO_Notify_Property_T< TYPE >


Constructor & Destructor Documentation

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

Constuctor.

Definition at line 67 of file Property_T.cpp.

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

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

Constuctor.

Definition at line 61 of file Property_T.cpp.

00062   :TAO_Notify_PropertyBase_T <TYPE> (name)
00063 {
00064 }


Member Function Documentation

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.

References CosNotification::PropertyValue.

00089 {
00090   if (value >>= this->value_)
00091   {
00092     this->valid_ = 1;
00093     return 0;
00094   }
00095 
00096   return -1;
00097 }

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.

References TAO_Notify_PropertySeq::find(), and CosNotification::PropertyValue.

Referenced by TAO_Notify_QoSProperties::init(), TAO_Notify_AdminProperties::init(), and TAO_Notify_StructuredEvent_No_Copy::TAO_Notify_StructuredEvent_No_Copy().

00074 {
00075   CosNotification::PropertyValue value;
00076 
00077   if (property_seq.find (this->name_, value) == 0 && (value >>= this->value_))
00078     {
00079       this->valid_ = 1;
00080       return 0;
00081     }
00082 
00083   this->valid_ = 0;
00084   return -1;
00085 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:32:33 2006 for TAO_CosNotification by doxygen 1.3.6