logicaltimeinterval.h

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

H
95
字号
/***********************************************************************
  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 + =
减小字号Ctrl + -
显示快捷键?