ordertype.h

来自「pRTI 自带的include文件包」· C头文件 代码 · 共 78 行

H
78
字号
/***********************************************************************
  IEEE 1516.1 High Level Architecture Interface Specification C++ API
  File: RTI/OrderType.h
***********************************************************************/

#ifndef RTI_OrderType_h
#define RTI_OrderType_h

#include <RTI/SpecificConfig.h>
#include <RTI/Typedefs.h> // for RTI::EncodedData
#include <string>

namespace RTI
{
  // Type safe class used to represent type of data order.
  class RTI_EXPORT OrderType
  {
  public:
    OrderType(EncodedData const & theEncodedOrderType);

    OrderType(OrderType const & rhs)
      throw();

    static
    OrderType const
    receive()
      throw();

    static
    OrderType const
    timestamp()
      throw();

    OrderType &
    operator=(OrderType const & rhs)
      throw ();

    bool
    operator==(OrderType const & rhs) const
      throw();

    bool
    operator!=(OrderType const & rhs) const
      throw();

    std::wstring
    toString() const;

    EncodedData
    encode() const
      throw();

  private:
    OrderType(unsigned orderType)
      throw();

    unsigned _orderType;
  };
}
#ifdef    RTI_USE_INLINE
#include "RTI/OrderType.i"
#endif // RTI_USE_INLINE

namespace RTI
{
  // These constants save a little typing for users.  
  // They can be used much like a enum, but in a type-safe way
  OrderType const
  RECEIVE =
  OrderType::receive();

  OrderType const
  TIMESTAMP =
  OrderType::timestamp();
}

#endif // RTI_OrderType_h

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?