00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef TAO_Notify_PROPERTY_BOOLEAN_H
00012 #define TAO_Notify_PROPERTY_BOOLEAN_H
00013
00014 #include "ace/pre.h"
00015
00016 #include "orbsvcs/Notify/notify_serv_export.h"
00017
00018 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00019 # pragma once
00020 #endif
00021
00022 #include "orbsvcs/CosNotificationC.h"
00023
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026 class TAO_Notify_PropertySeq;
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 class TAO_Notify_Serv_Export TAO_Notify_Property_Boolean
00037 {
00038 public:
00039
00040 TAO_Notify_Property_Boolean (const char* name, CORBA::Boolean initial);
00041
00042
00043 TAO_Notify_Property_Boolean (const char* name);
00044
00045
00046 TAO_Notify_Property_Boolean& operator= (const TAO_Notify_Property_Boolean& rhs);
00047
00048
00049 TAO_Notify_Property_Boolean& operator= (const CORBA::Boolean& rhs);
00050
00051
00052 bool operator== (const CORBA::Boolean &rhs) const;
00053
00054
00055 bool operator!= (const CORBA::Boolean &rhs) const;
00056
00057 int set (const TAO_Notify_PropertySeq& property_seq);
00058
00059 void get (CosNotification::PropertySeq& prop_seq);
00060
00061
00062 const char * name (void) const;
00063
00064
00065 CORBA::Boolean value (void) const;
00066
00067
00068 CORBA::Boolean is_valid (void) const;
00069
00070 protected:
00071
00072 const char* name_;
00073
00074
00075 CORBA::Boolean value_;
00076
00077
00078 CORBA::Boolean valid_;
00079 };
00080
00081 TAO_END_VERSIONED_NAMESPACE_DECL
00082
00083 #if defined (__ACE_INLINE__)
00084 #include "orbsvcs/Notify/Property_Boolean.inl"
00085 #endif
00086
00087 #include "ace/post.h"
00088
00089 #endif