Property_Boolean.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 /**
00004  *  @file Property_Boolean.h
00005  *
00006  *  Property_Boolean.h,v 1.13 2006/03/14 06:14:34 jtc Exp
00007  *
00008  *  @author Pradeep Gore <pradeep@oomworks.com>
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 /* ACE_LACKS_PRAGMA_ONCE */
00021 
00022 #include "orbsvcs/CosNotificationC.h"
00023 
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025 
00026 class TAO_Notify_PropertySeq;
00027 
00028 /**
00029  * @class TAO_Notify_Property_Boolean
00030  *
00031  * @brief Boolean Property.
00032  *
00033  */
00034 /*******************************************************************************/
00035 
00036 class TAO_Notify_Serv_Export TAO_Notify_Property_Boolean
00037 {
00038 public:
00039   /// Constuctor
00040   TAO_Notify_Property_Boolean (const char* name, CORBA::Boolean initial);
00041 
00042   /// Constuctor
00043   TAO_Notify_Property_Boolean (const char* name);
00044 
00045   /// Assignment from TAO_Notify_Property_Boolean
00046   TAO_Notify_Property_Boolean& operator= (const TAO_Notify_Property_Boolean& rhs);
00047 
00048   /// Assignment from CORBA::Boolean
00049   TAO_Notify_Property_Boolean& operator= (const CORBA::Boolean& rhs);
00050 
00051   /// Equality comparison operator.
00052   bool operator== (const CORBA::Boolean &rhs) const;
00053 
00054   /// Inequality comparison operator.
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   /// Return the name
00062   const char * name (void) const;
00063 
00064   /// Return the value.
00065   CORBA::Boolean value (void) const;
00066 
00067   /// Is the current value valid
00068   CORBA::Boolean is_valid (void) const;
00069 
00070 protected:
00071   /// The Property name.
00072   const char* name_;
00073 
00074   /// The value
00075   CORBA::Boolean value_;
00076 
00077   /// Is the value valid
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 /* __ACE_INLINE__ */
00086 
00087 #include /**/ "ace/post.h"
00088 
00089 #endif /* TAO_Notify_PROPERTY_BOOLEAN_H */

Generated on Thu Nov 9 13:24:13 2006 for TAO_CosNotification by doxygen 1.3.6