logicaltimeintervalfactory.h

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

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

#ifndef RTI_LogicalTimeIntervalFactory_h
#define RTI_LogicalTimeIntervalFactory_h

namespace RTI
{
  class EncodedLogicalTimeInterval;
  class LogicalTimeInterval;
  class CouldNotDecode;
}

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

#include <RTI/SpecificConfig.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 RTI_EXPORT LogicalTimeIntervalFactory
  {
  public:
    virtual 
    ~LogicalTimeIntervalFactory()
      throw ();
    
    virtual 
    std::auto_ptr< LogicalTimeInterval >
    makeZero() = 0;
    
    virtual 
    std::auto_ptr< LogicalTimeInterval >
    epsilon() = 0;
    
    virtual
    std::auto_ptr< LogicalTimeInterval >
    decode(EncodedLogicalTimeInterval const & encodedLogicalTimeInterval)
      throw (CouldNotDecode) = 0;
  };
}

#endif // RTI_LogicalTimeIntervalFactory_h

⌨️ 快捷键说明

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