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

📄 typedefs.h

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

// Purpose: This file contains the standard RTI types that are defined in 
// namespace RTI.  These definitions/declarations are standard for all RTI
// implementations.
//
// The types declared here require the use of some RTI Specific types.

#ifndef RTI_Typedefs_h
#define RTI_Typedefs_h

namespace RTI
{
  class SaveStatus;
  class RestoreStatus;
}

// The following type definitions use standard C++ classes for containers
// that are used in the RTI API.

#include <set>
#include <map>
#include <vector>
#include <RTI/SpecificTypedefs.h>

namespace RTI
{
  template < class T, class T2, int i > class Value;

  typedef Value< AttributeValueImplementationType, AttributeValueReturnType,  1 > AttributeValue;
  typedef Value< ParameterValueImplementationType, ParameterValueReturnType,  2 > ParameterValue;
  typedef Value< UserSuppliedTagImplementationType, UserSuppliedTagReturnType, 3 > UserSuppliedTag;
  typedef Value< EncodedDataImplementationType, EncodedDataReturnType,     4 > EncodedData;

  template <class HandleImplementationType,
            class EncodedHandleImplementationType,
            class HandleReturnType,
            int   i>
  class Handle;

  //
  // The existence of these typedefs is required by the API Specification.
  // However, their particular definition is implementation-specific.
  //
  typedef Handle< FederateHandleImplementationType,
                  EncodedFederateHandleImplementationType,
                  FederateHandleReturnType,
                  1 >
    FederateHandle;

  typedef Handle< ObjectClassHandleImplementationType,
                  EncodedObjectClassHandleImplementationType,
                  ObjectClassHandleReturnType,
                  2 >
    ObjectClassHandle;
  
  typedef Handle< InteractionClassHandleImplementationType,
                  EncodedInteractionClassHandleImplementationType,
                  InteractionClassHandleReturnType,
                  3 >
    InteractionClassHandle;
  
  typedef Handle< ObjectInstanceHandleImplementationType,
                  EncodedObjectInstanceHandleImplementationType,
                  ObjectInstanceHandleReturnType,
                  4 >
    ObjectInstanceHandle;
  
  typedef Handle< AttributeHandleImplementationType,
                  EncodedAttributeHandleImplementationType,
                  AttributeHandleReturnType,
                  5 >
    AttributeHandle;
  
  typedef Handle< ParameterHandleImplementationType,
                  EncodedParameterHandleImplementationType,
                  ParameterHandleReturnType,
                  6 >
    ParameterHandle;
  
  typedef Handle< DimensionHandleImplementationType,
                  EncodedDimensionHandleImplementationType,
                  DimensionHandleReturnType,
                  7 >
    DimensionHandle;
  
  typedef Handle< MessageRetractionHandleImplementationType,
                  EncodedMessageRetractionHandleImplementationType,
                  MessageRetractionHandleReturnType,
                  8 >
    MessageRetractionHandle;
  
  typedef Handle< RegionHandleImplementationType,
                  EncodedRegionHandleImplementationType,
                  RegionHandleReturnType,
                  9 >
    RegionHandle;

  typedef std::set< AttributeHandle > AttributeHandleSet;
  typedef std::set< FederateHandle  > FederateHandleSet;
  typedef std::set< DimensionHandle > DimensionHandleSet;
  typedef std::set< RegionHandle    > RegionHandleSet;

  // RTI::AttributeHandleValueMap implements a constrained set of 
  // (attribute handle and value) pairs
  typedef std::map< AttributeHandle, AttributeValue >
  AttributeHandleValueMap;

  // RTI::ParameterHandleValueMap implements a constrained set of 
  // (parameter handle and value) pairs
  typedef std::map< ParameterHandle, ParameterValue >
  ParameterHandleValueMap;

  // RTI::AttributeHandleSetRegionHandleSetPairVector implements a collection of
  // (attribute handle set and region set) pairs
  typedef std::pair< AttributeHandleSet, RegionHandleSet >
  AttributeHandleSetRegionHandleSetPair;
  
  typedef std::vector< AttributeHandleSetRegionHandleSetPair >
  AttributeHandleSetRegionHandleSetPairVector;
  
  // RTI::FederateHandleSaveStatusPairVector implements a collection of
  // (federate handle and save status) pairs
  typedef std::pair< FederateHandle, SaveStatus >
  FederateHandleSaveStatusPair;
  
  typedef std::vector< FederateHandleSaveStatusPair >
  FederateHandleSaveStatusPairVector;
  
  // RTI::FederateHandleRestoreStatusPairVector implements a collection of
  // (federate handle and restore status) pairs
  typedef std::pair< FederateHandle, RestoreStatus >
  FederateHandleRestoreStatusPair;
  
  typedef std::vector< FederateHandleRestoreStatusPair >
  FederateHandleRestoreStatusPairVector;
}

#endif // RTI_Typedefs_h

⌨️ 快捷键说明

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