⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logicaltimeinterval.h

📁 pRTI 自带的include文件包
💻 H
字号:
/***********************************************************************
  IEEE 1516.1 High Level Architecture Interface Specification C++ API
  File: RTI/LogicalTimeInterval.h
***********************************************************************/

#ifndef RTI_LogicalTimeInterval_h
#define RTI_LogicalTimeInterval_h

// The classes associated with logical time allow a federation to provide
// their own representation for logical time and logical time interval. The
// federation is responsible to inherit from the abstract classes declared
// below. The encoded time classes are used to hold the arbitrary bit
// representation of the logical time and logical time intervals.

namespace RTI
{
  class EncodedLogicalTimeInterval;
  class InvalidLogicalTimeInterval;
}

namespace std
{
  template <class T> class auto_ptr;
}

#include <RTI/SpecificConfig.h>
#include <string>

namespace RTI
{
  class RTI_EXPORT LogicalTimeInterval
  {
  public:
    virtual
    ~LogicalTimeInterval()
      throw ();

    virtual
    void
    setZero() = 0;

    virtual
    bool
    isZero() = 0;
  
    virtual
    bool
    isEpsilon() = 0;

    virtual
    void
    setTo(LogicalTimeInterval const & value)
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    std::auto_ptr< LogicalTimeInterval >
    subtract(LogicalTimeInterval const & subtrahend) const
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    bool
    isGreaterThan(LogicalTimeInterval const & value) const
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    bool
    isLessThan(LogicalTimeInterval const & value) const
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    bool
    isEqualTo(LogicalTimeInterval const & value) const
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    bool
    isGreaterThanOrEqualTo(LogicalTimeInterval const & value) const
      throw (InvalidLogicalTimeInterval) = 0;

    virtual
    bool
    isLessThanOrEqualTo(LogicalTimeInterval const & value) const
      throw (InvalidLogicalTimeInterval) = 0;
    
    virtual
    std::auto_ptr< EncodedLogicalTimeInterval >
    encode() const = 0;

    virtual
    std::wstring
    toString() const = 0;
  };
}
#endif // RTI_LogicalTimeInterval_h

⌨️ 快捷键说明

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