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

📄 basefederateambassador.cpp

📁 pRTI chatroom源代码及程序打包
💻 CPP
📖 第 1 页 / 共 2 页
字号:
#include "StdAfx.h"

#include "BaseFederateAmbassador.h"

BaseFederateAmbassador::~BaseFederateAmbassador()
      throw ()
{
}

// 4.7
void BaseFederateAmbassador::synchronizationPointRegistrationSucceeded(
   std::wstring const & label)
throw (FederateInternalError)
{
}

void BaseFederateAmbassador::synchronizationPointRegistrationFailed(
   std::wstring const & label,
   SynchronizationFailureReason reason)
   throw (FederateInternalError)
{
}

// 4.8
void BaseFederateAmbassador::announceSynchronizationPoint(
   std::wstring  const & label,
   UserSuppliedTag const & theUserSuppliedTag)
   throw (FederateInternalError)
{
}

// 4.10
void
BaseFederateAmbassador::federationSynchronized(std::wstring const & label)
throw (FederateInternalError)
{
}

// 4.12
void
BaseFederateAmbassador::initiateFederateSave(std::wstring const & label)
throw (UnableToPerformSave,
       FederateInternalError)
{
}

void
BaseFederateAmbassador::initiateFederateSave(std::wstring const & label,
                                             LogicalTime const & theTime)
                                             throw (UnableToPerformSave,
                                             InvalidLogicalTime,
                                             FederateInternalError)
{
}

// 4.15
void
BaseFederateAmbassador::federationSaved()
throw (FederateInternalError)
{
}

void
BaseFederateAmbassador::federationNotSaved(SaveFailureReason theSaveFailureReason)
throw (FederateInternalError)
{
}


// 4.17
void
BaseFederateAmbassador::federationSaveStatusResponse(
   std::auto_ptr< FederateHandleSaveStatusPairVector >
   theFederateStatusVector)
   throw (FederateInternalError)
{
}

// 4.19
void
BaseFederateAmbassador::requestFederationRestoreSucceeded(std::wstring const & label)
throw (FederateInternalError)
{
}

void
BaseFederateAmbassador::requestFederationRestoreFailed(std::wstring const & label)
throw (FederateInternalError)
{
}

// 4.20
void
BaseFederateAmbassador::federationRestoreBegun()
throw (FederateInternalError)
{
}

// 4.21
void
BaseFederateAmbassador::initiateFederateRestore(std::wstring         const & label,
                                                FederateHandle const & handle)
                                                throw (SpecifiedSaveLabelDoesNotExist,
                                                CouldNotInitiateRestore,
                                                FederateInternalError)
{
}

// 4.23
void
BaseFederateAmbassador::federationRestored()
throw (FederateInternalError)
{
}

void
BaseFederateAmbassador::federationNotRestored(RestoreFailureReason theRestoreFailureReason)
throw (FederateInternalError)
{
}

// 4.25
void
BaseFederateAmbassador::federationRestoreStatusResponse(
   std::auto_ptr< FederateHandleRestoreStatusPairVector >
   theFederateStatusVector)
   throw (FederateInternalError)
{
}

/////////////////////////////////////
// Declaration Management Services //
/////////////////////////////////////

// 5.10
void
BaseFederateAmbassador::startRegistrationForObjectClass(ObjectClassHandle const & theClass)
throw (ObjectClassNotPublished,
       FederateInternalError)
{
}

// 5.11
void
BaseFederateAmbassador::stopRegistrationForObjectClass(ObjectClassHandle const & theClass)
throw (ObjectClassNotPublished,
       FederateInternalError)
{
}

// 5.12
void
BaseFederateAmbassador::turnInteractionsOn(InteractionClassHandle const & theHandle)
throw (InteractionClassNotPublished,
       FederateInternalError)
{
}

// 5.13
void
BaseFederateAmbassador::turnInteractionsOff(InteractionClassHandle const & theHandle)
throw (InteractionClassNotPublished,
       FederateInternalError)
{
}

////////////////////////////////
// Object Management Services //
////////////////////////////////

// 6.3
void
BaseFederateAmbassador::objectInstanceNameReservationSucceeded(std::wstring const &
                                                               theObjectInstanceName)
                                                               throw (UnknownName,
                                                               FederateInternalError)
{
}

void
BaseFederateAmbassador::objectInstanceNameReservationFailed(std::wstring const &
                                                            theObjectInstanceName)
                                                            throw (UnknownName,
                                                            FederateInternalError)
{
}


// 6.5
void
BaseFederateAmbassador::discoverObjectInstance(ObjectInstanceHandle const & theObject,
                                               ObjectClassHandle const & theObjectClass,
                                               std::wstring const & theObjectInstanceName)
                                               throw (CouldNotDiscover,
                                               ObjectClassNotKnown,
                                               FederateInternalError)
{
}

// 6.7
void
BaseFederateAmbassador::reflectAttributeValues
(ObjectInstanceHandle const & theObject,
 std::auto_ptr< AttributeHandleValueMap > theAttributeValues,
 UserSuppliedTag const & theUserSuppliedTag,
 OrderType const & sentOrder,
 TransportationType const & theType)
 throw (ObjectInstanceNotKnown,
 AttributeNotRecognized,
 AttributeNotSubscribed,
 FederateInternalError)
{
}

void
BaseFederateAmbassador::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)
{
}

void
BaseFederateAmbassador::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)
{
}

void
BaseFederateAmbassador::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)
{
}

void
BaseFederateAmbassador::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)
{
}

void
BaseFederateAmbassador::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
void
BaseFederateAmbassador::receiveInteraction
(InteractionClassHandle const & theInteraction,
 std::auto_ptr< ParameterHandleValueMap > theParameterValues,
 UserSuppliedTag const & theUserSuppliedTag,
 OrderType const & sentOrder,
 TransportationType const & theType)
 throw (InteractionClassNotRecognized,
 InteractionParameterNotRecognized,
 InteractionClassNotSubscribed,
 FederateInternalError)
{
}

void
BaseFederateAmbassador::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 + -