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

📄 basefederateambassador.h

📁 pRTI chatroom源代码及程序打包
💻 H
📖 第 1 页 / 共 2 页
字号:
using namespace RTI;

class RTI_EXPORT BaseFederateAmbassador : public FederateAmbassador
{
public:
   virtual
      ~BaseFederateAmbassador()
      throw ();
   
   // 4.7
   virtual
      void
      synchronizationPointRegistrationSucceeded(std::wstring const & label)
      throw (FederateInternalError);
   
   virtual
      void
      synchronizationPointRegistrationFailed(std::wstring const & label,
      SynchronizationFailureReason reason)
      throw (FederateInternalError);
   
   // 4.8
   virtual
      void
      announceSynchronizationPoint(std::wstring  const & label,
      UserSuppliedTag const & theUserSuppliedTag)
      throw (FederateInternalError);
   
   // 4.10
   virtual
      void
      federationSynchronized(std::wstring const & label)
      throw (FederateInternalError);
   
   // 4.12
   virtual
      void
      initiateFederateSave(std::wstring const & label)
      throw (UnableToPerformSave,
      FederateInternalError);
   
   virtual
      void
      initiateFederateSave(std::wstring const & label,
      LogicalTime const & theTime)
      throw (UnableToPerformSave,
      InvalidLogicalTime,
      FederateInternalError);
   
   // 4.15
   virtual
      void
      federationSaved()
      throw (FederateInternalError);
   
   virtual
      void
      federationNotSaved(SaveFailureReason theSaveFailureReason)
      throw (FederateInternalError);
   
   
   // 4.17
   virtual
      void
      federationSaveStatusResponse(
      std::auto_ptr< FederateHandleSaveStatusPairVector >
      theFederateStatusVector)
      throw (FederateInternalError);
   
   // 4.19
   virtual
      void
      requestFederationRestoreSucceeded(std::wstring const & label)
      throw (FederateInternalError);
   
   virtual
      void
      requestFederationRestoreFailed(std::wstring const & label)
      throw (FederateInternalError);
   
   // 4.20
   virtual
      void
      federationRestoreBegun()
      throw (FederateInternalError);
   
   // 4.21
   virtual
      void
      initiateFederateRestore(std::wstring         const & label,
      FederateHandle const & handle)
      throw (SpecifiedSaveLabelDoesNotExist,
      CouldNotInitiateRestore,
      FederateInternalError);
   
   // 4.23
   virtual
      void
      federationRestored()
      throw (FederateInternalError);
   
   virtual
      void
      federationNotRestored(RestoreFailureReason theRestoreFailureReason)
      throw (FederateInternalError);
   
   // 4.25
   virtual
      void
      federationRestoreStatusResponse(
      std::auto_ptr< FederateHandleRestoreStatusPairVector >
      theFederateStatusVector)
      throw (FederateInternalError);
   
   /////////////////////////////////////
   // Declaration Management Services //
   /////////////////////////////////////
   
   // 5.10
   virtual
      void
      startRegistrationForObjectClass(ObjectClassHandle const & theClass)
      throw (ObjectClassNotPublished,
      FederateInternalError);
   
   // 5.11
   virtual
      void
      stopRegistrationForObjectClass(ObjectClassHandle const & theClass)
      throw (ObjectClassNotPublished,
      FederateInternalError);
   
   // 5.12
   virtual
      void
      turnInteractionsOn(InteractionClassHandle const & theHandle)
      throw (InteractionClassNotPublished,
      FederateInternalError);
   
   // 5.13
   virtual
      void
      turnInteractionsOff(InteractionClassHandle const & theHandle)
      throw (InteractionClassNotPublished,
      FederateInternalError);
   
   ////////////////////////////////
   // Object Management Services //
   ////////////////////////////////
   
   // 6.3
   virtual
      void
      objectInstanceNameReservationSucceeded(std::wstring const &
      theObjectInstanceName)
      throw (UnknownName,
      FederateInternalError);
   
   virtual
      void
      objectInstanceNameReservationFailed(std::wstring const &
      theObjectInstanceName)
      throw (UnknownName,
      FederateInternalError);
   
   
   // 6.5
   virtual
      void
      discoverObjectInstance(ObjectInstanceHandle const & theObject,
      ObjectClassHandle const & theObjectClass,
      std::wstring const & theObjectInstanceName)
      throw (CouldNotDiscover,
      ObjectClassNotKnown,
      FederateInternalError);
   
   // 6.7
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      FederateInternalError);
   
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      RegionHandleSet const & theSentRegionHandleSet)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      FederateInternalError);
   
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      LogicalTime const & theTime,
      OrderType const & receivedOrder)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      FederateInternalError);
   
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      LogicalTime const & theTime,
      OrderType const & receivedOrder,
      RegionHandleSet const & theSentRegionHandleSet)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      FederateInternalError);
   
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      LogicalTime const & theTime,
      OrderType const & receivedOrder,
      MessageRetractionHandle const & theHandle)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      InvalidLogicalTime,
      FederateInternalError);
   
   virtual
      void
      reflectAttributeValues
      (ObjectInstanceHandle const & theObject,
      std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      LogicalTime const & theTime,
      OrderType const & receivedOrder,
      MessageRetractionHandle const & theHandle,
      RegionHandleSet const & theSentRegionHandleSet)
      throw (ObjectInstanceNotKnown,
      AttributeNotRecognized,
      AttributeNotSubscribed,
      InvalidLogicalTime,
      FederateInternalError);
   
   // 6.9
   virtual
      void
      receiveInteraction
      (InteractionClassHandle const & theInteraction,
      std::auto_ptr< ParameterHandleValueMap > theParameterValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType)
      throw (InteractionClassNotRecognized,
      InteractionParameterNotRecognized,
      InteractionClassNotSubscribed,
      FederateInternalError);
   
   virtual
      void
      receiveInteraction
      (InteractionClassHandle const & theInteraction,
      std::auto_ptr< ParameterHandleValueMap > theParameterValues,
      UserSuppliedTag const & theUserSuppliedTag,
      OrderType const & sentOrder,
      TransportationType const & theType,
      RegionHandleSet const & theSentRegionHandleSet)
      throw (InteractionClassNotRecognized,
      InteractionParameterNotRecognized,
      InteractionClassNotSubscribed,

⌨️ 快捷键说明

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