property_boolean.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 84 行
H
84 行
/* -*- 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 + =
减小字号Ctrl + -
显示快捷键?