|
WSF
|
A WsfXIO_Subscription wraps information about a remote request for information. More...
#include <WsfXIO_Subscription.hpp>
Public Member Functions | |
| WsfXIO_Subscription (WsfXIO_Connection *aConnectionPtr) | |
| WsfXIO_Subscription (WsfXIO_RequestDataPkt &aRequest) | |
| ~WsfXIO_Subscription () | |
| void | Initialize (WsfXIO_Service *aProviderPtr) |
| WsfXIO_SubscriptionId | GetId () const |
| Returns a unique value identifying this subscription. | |
| int | GetRequestId () const |
| int | GetConnectionId () const |
| WsfXIO_Service * | GetService () const |
| Returns the service providing this subscription. | |
| void | SetUserCancelled (bool aHasCancelled) |
| Returns true if the user has canceled this connection remotely. | |
| bool | HasUserCancelled () const |
| Sets the 'User Canceled' flag value. | |
| WsfXIO_Connection * | GetDataConnection () const |
| Returns the connection used to send data to the requesting application. | |
| WsfXIO_Connection & | GetConnection () const |
| Returns the reliable connection used for control messages for this subscription. | |
| void | SendResponse (WsfXIO_ResponsePkt &aPkt) |
| Sends a response packet to the requestor of this subscription. | |
| WsfXIO_Interface & | GetInterface () const |
A WsfXIO_Subscription wraps information about a remote request for information.
| WsfXIO_Subscription::WsfXIO_Subscription | ( | WsfXIO_Connection * | aConnectionPtr | ) |
| WsfXIO_Subscription::WsfXIO_Subscription | ( | WsfXIO_RequestDataPkt & | aRequest | ) |
| WsfXIO_Subscription::~WsfXIO_Subscription | ( | ) |
|
inline |
Returns the reliable connection used for control messages for this subscription.
Referenced by WsfXIO_MessageService::HandleMessage(), WsfXIO_Service::RemoveSubscription(), WsfXIO_TaskService::SendInitial(), SendResponse(), WsfXIO_PlatformInfoService::SendTrackManagerState(), and WsfXIO_PlatformListService::SubscriptionCancelled().
|
inline |
Returns the unique ID for the connection controlling the subscription This value combined with the SubscriptionId creates a unique identifier
|
inline |
Returns the connection used to send data to the requesting application.
Referenced by WsfXIO_DrawService::HandleRequest(), WsfXIO_PlatformInfoService::HandleRequest(), WsfXIO_PlatformPartInfoService::HandleRequest(), WsfXIO_DrawService::SubscriptionCancelled(), WsfXIO_PlatformInfoService::SubscriptionCancelledT(), WsfXIO_PlatformPartInfoService::SubscriptionCancelledT(), and WsfXIO_TrackService::SubscriptionCancelledT().
|
inline |
Returns a unique value identifying this subscription.
Referenced by WsfXIO_RequestManager::AddSession(), WsfXIO_Service::AddSubscription(), WsfXIO_ServiceT< WsfXIO_RequestPlatformInfoPkt, WsfXIO_SimService >::CreateSubscription(), WsfXIO_SessionServiceT< SESSION_TYPE, REQUEST_TYPE, SERVICE_TYPE >::CreateSubscription(), WsfXIO_PlatformInfoService::HandleRequest(), WsfXIO_SimTimeService::HandleRequest(), WsfXIO_RequestManager::RemoveSession(), WsfXIO_Service::RemoveSubscription(), WsfXIO_SensorService::RequestCanceled(), WsfXIO_SensorService::RequestUpdated(), WsfXIO_SensorService::SensorTurnedOff(), WsfXIO_ServiceT< WsfXIO_RequestPlatformInfoPkt, WsfXIO_SimService >::SubscriptionCancelled(), WsfXIO_SessionServiceT< SESSION_TYPE, REQUEST_TYPE, SERVICE_TYPE >::SubscriptionCancelled(), and WsfXIO_SimTimeService::SubscriptionCancelled().
| WsfXIO_Interface & WsfXIO_Subscription::GetInterface | ( | ) | const |
|
inline |
Returns the subscription ID. This ID is unique for a given application, but not necessarily unique across all applications.
Referenced by WsfXIO_PlatformInfoService::HandleRequest(), WsfXIO_Service::RemoveSubscription(), WsfXIO_TaskService::SendInitial(), WsfXIO_PlatformInfoService::SendPartState(), SendResponse(), and WsfXIO_PlatformInfoService::SendTrackManagerState().
|
inline |
Returns the service providing this subscription.
|
inline |
Sets the 'User Canceled' flag value.
Referenced by WsfXIO_Service::RemoveSubscription().
| void WsfXIO_Subscription::Initialize | ( | WsfXIO_Service * | aProviderPtr | ) |
Referenced by WsfXIO_Service::AddSubscription().
| void WsfXIO_Subscription::SendResponse | ( | WsfXIO_ResponsePkt & | aPkt | ) |
Sends a response packet to the requestor of this subscription.
References GetConnection(), GetRequestId(), WsfXIO_ResponsePkt::mFromProvider, WsfXIO_ResponsePkt::mRequestId, and WsfXIO_Connection::Send().
Referenced by WsfXIO_PlatformInfoService::HandleRequest(), WsfXIO_SensorService::HandleRequest(), WsfXIO_ScriptService::HandleScriptCommand(), WsfXIO_SensorService::RequestCanceled(), WsfXIO_SensorService::RequestUpdated(), WsfXIO_PlatformInfoService::SendCommandChain(), WsfXIO_PlatformInfoService::EvaluateDeadReckoningEvent::SendState(), WsfXIO_ScriptService::SendState(), WsfXIO_SimTimeService::SendTimeStateToAll(), WsfXIO_SensorService::SensorTurnedOff(), and WsfXIO_SimTimeService::UpdateRequestInterval().
|
inline |
Returns true if the user has canceled this connection remotely.
Referenced by WsfXIO_Service::HandleCancellation(), and WsfXIO_Service::HandleDisconnect().