diff options
author | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-06-19 02:53:00 +0000 |
---|---|---|
committer | pradeep <pradeep@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-06-19 02:53:00 +0000 |
commit | fb7e5ebc62fc689ae4708ae22207f1ba6452c761 (patch) | |
tree | 0440d3447b88663f3dbaae2b33074547578cebea /TAO/orbsvcs/orbsvcs/Notify/Property_T.h | |
parent | a315910192ad14fe7182a2070451f9df4e98c4ef (diff) | |
download | ATCD-fb7e5ebc62fc689ae4708ae22207f1ba6452c761.tar.gz |
ChangeLogTag: Wed Jun 18 22:27:49 2003 Pradeep Gore <pradeep@oomworks.com>
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Property_T.h')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Property_T.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Property_T.h b/TAO/orbsvcs/orbsvcs/Notify/Property_T.h index 5b05d472b9f..2d35ac4f475 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/Property_T.h +++ b/TAO/orbsvcs/orbsvcs/Notify/Property_T.h @@ -35,10 +35,10 @@ class TAO_NS_PropertyBase_T { public: /// Constuctor - TAO_NS_PropertyBase_T (const ACE_CString& name, const TYPE& initial); + TAO_NS_PropertyBase_T (const char* name, const TYPE& initial); /// Constuctor - TAO_NS_PropertyBase_T (const ACE_CString& name); + TAO_NS_PropertyBase_T (const char* name); /// Copy Constuctor TAO_NS_PropertyBase_T (const TAO_NS_PropertyBase_T &rhs); @@ -47,7 +47,7 @@ public: ~TAO_NS_PropertyBase_T (); /// Assignment from TAO_NS_PropertyBase_T - TAO_NS_PropertyBase_T& operator= (const TAO_NS_PropertyBase_T& rhs); + // TAO_NS_PropertyBase_T& operator= (const TAO_NS_PropertyBase_T& rhs); /// Assignment from TYPE TAO_NS_PropertyBase_T& operator= (const TYPE& rhs); @@ -72,13 +72,16 @@ public: protected: /// The Property name. - ACE_CString name_; + const char* name_; /// The value TYPE value_; /// Is the value valid CORBA::Boolean valid_; + +private: + ACE_UNIMPLEMENTED_FUNC (TAO_NS_PropertyBase_T& operator= (const TAO_NS_PropertyBase_T& rhs)) }; @@ -94,10 +97,10 @@ class TAO_NS_Property_T : public TAO_NS_PropertyBase_T<TYPE> { public: /// Constuctor - TAO_NS_Property_T (const ACE_CString& name, const TYPE& initial); + TAO_NS_Property_T (const char* name, const TYPE& initial); /// Constuctor - TAO_NS_Property_T (const ACE_CString& name); + TAO_NS_Property_T (const char* name); /// Assignment from TYPE TAO_NS_Property_T& operator= (const TYPE& rhs); @@ -105,6 +108,10 @@ public: /// Init this Property from the sequence. /// Returns 0 on success, -1 on error int set (const TAO_NS_PropertySeq& property_seq); + + /// Init this Property from the CosNotification::PropertyValue + /// Returns 0 on success, -1 on error + int set (const CosNotification::PropertyValue &value); }; /*******************************************************************************/ @@ -119,10 +126,10 @@ class TAO_NS_StructProperty_T { public: /// Constuctor - TAO_NS_StructProperty_T (const ACE_CString& name, const TYPE& initial); + TAO_NS_StructProperty_T (const char* name, const TYPE& initial); /// Constuctor - TAO_NS_StructProperty_T (const ACE_CString& name); + TAO_NS_StructProperty_T (const char* name); /// Init this Property from the sequence. /// Returns 0 on success, -1 on error @@ -136,7 +143,7 @@ public: protected: /// The Property name. - ACE_CString name_; + const char* name_; /// The value TYPE value_; |