📄 property_boolean.h
字号:
/* -*- C++ -*- */
/**
* @file Property_Boolean.h
*
* Property_Boolean.h,v 1.6 2003/10/28 18:34:24 bala Exp
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_Notify_PROPERTY_BOOLEAN_H
#define TAO_Notify_PROPERTY_BOOLEAN_H
#include /**/ "ace/pre.h"
#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/CosNotificationC.h"
class TAO_Notify_PropertySeq;
/**
* @class TAO_Notify_Property_Boolean
*
* @brief Boolean Property.
*
*/
/*******************************************************************************/
class TAO_Notify_Export TAO_Notify_Property_Boolean
{
public:
/// Constuctor
TAO_Notify_Property_Boolean (const char* name, CORBA::Boolean initial);
/// Constuctor
TAO_Notify_Property_Boolean (const char* name);
/// Assignment from TAO_Notify_Property_Boolean
TAO_Notify_Property_Boolean& operator= (const TAO_Notify_Property_Boolean& rhs);
/// Assignment from CORBA::Boolean
TAO_Notify_Property_Boolean& operator= (const CORBA::Boolean& rhs);
/// Equality comparison operator.
int operator== (const CORBA::Boolean &rhs) const;
/// Inequality comparison operator.
int operator!= (const CORBA::Boolean &rhs) const;
int set (const TAO_Notify_PropertySeq& property_seq);
void get (CosNotification::PropertySeq& prop_seq);
/// Return the value.
CORBA::Boolean value (void) const;
/// Is the current value valid
CORBA::Boolean is_valid (void) const;
protected:
/// The Property name.
const char* name_;
/// The value
CORBA::Boolean value_;
/// Is the value valid
CORBA::Boolean valid_;
};
#if defined (__ACE_INLINE__)
#include "Property_Boolean.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* TAO_Notify_PROPERTY_BOOLEAN_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -