WSF
WsfSinglePlatformObserver Class Reference

#include <WsfSinglePlatformObserver.hpp>

Inheritance diagram for WsfSinglePlatformObserver:

Public Member Functions

virtual ~WsfSinglePlatformObserver ()
virtual void OnPlatformDeleting (double aSimTime, WsfPlatform *aPlatformPtr)
 Called before the platform is actually deleted.
virtual void OnPlatformDeleted (double aSimTime, WsfPlatform *aPlatformPtr)
 Called just before the platform is removed from the simulation.
virtual void OnPlatformUpdated (double aSimTime, WsfPlatform *aPlatformPtr)
 Called after each mover update.

Detailed Description

A light-weight observer of a single platform.

A object may register an instance of this class with a particular platform in order to receive notification of the events defined by the virtual methods. Unlike the simulation observers which receive notification of ALL occurrences of a subscribed event, this is directed at observing a SINGLE platform. It is lighter weight and faster, but the user must take care to follow the process described below.

The typical use is to subclass this, define one or more of the virtual methods and attach to the platform using WsfPlatform::AttachObserver(). Once an object attaches, it MUST detach from the platform using WsfPlatform::DetachObserver prior to its destruction.

Constructor & Destructor Documentation

◆ ~WsfSinglePlatformObserver()

virtual WsfSinglePlatformObserver::~WsfSinglePlatformObserver ( )
inlinevirtual

Member Function Documentation

◆ OnPlatformDeleted()

virtual void WsfSinglePlatformObserver::OnPlatformDeleted ( double aSimTime,
WsfPlatform * aPlatformPtr )
inlinevirtual

Called just before the platform is removed from the simulation.

Reimplemented in WsfChaffCloud, and WsfTowedMover.

◆ OnPlatformDeleting()

virtual void WsfSinglePlatformObserver::OnPlatformDeleting ( double aSimTime,
WsfPlatform * aPlatformPtr )
inlinevirtual

Called before the platform is actually deleted.

◆ OnPlatformUpdated()

virtual void WsfSinglePlatformObserver::OnPlatformUpdated ( double aSimTime,
WsfPlatform * aPlatformPtr )
inlinevirtual

The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved