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.

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  ) 

Constructor.

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 TAO_Notify_PropertyBase_T< TYPE >::valid_.

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(), TAO_Notify_PropertyBase_T< TYPE >::valid_, TAO_Notify_PropertyBase_T< TYPE >::value(), and TAO_Notify_PropertyBase_T< TYPE >::value_.

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 Tue Feb 2 17:46:24 2010 for TAO_CosNotification by  doxygen 1.4.7