MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
MAKLogger::DtDisStateObject Class Reference

A DIS state object. More...

+ Inheritance diagram for MAKLogger::DtDisStateObject:
+ Collaboration diagram for MAKLogger::DtDisStateObject:

Public Member Functions

virtual ~DtDisStateObject ()
virtual DtU64 uniqueId () const
 Get the unique id of the state object.
virtual const DtString & name () const
 The name of the object if it exists (empty string if not).
virtual DtU64 packetId (const DtPacket &packet) const
 Get the unique id of the packet.
virtual void setPacketId (DtU64, DtPacket &) const
 Change the packet id in the packet.
virtual bool packetForMe (const DtPacket &) const
 Get whether the packet is for this state object.
virtual void updateViaPacket (const DtPacket &)
 Update the state object by packet.
virtual DtPacketcreateUpdate (const DtAbsoluteTime *time) const
 Create an update packet for this object.
virtual void createUpdate (const DtAbsoluteTime *time, std::list< DtPacket * > &packetlist) const
 Create update packets for this object (handles Di-Guy updates). Adds them to list.
virtual DtPacketcreateRemoval (const DtAbsoluteTime &time) const
 Create a remove packet for this object.
virtual bool isEntity () const
 Optional override for basic type queries.
virtual bool isAggregate () const
 Optional override for basic type queries.
virtual bool isEnvironmentalProcess () const
 Optional override for basic type queries.
virtual bool isGriddedData () const
 Optional override for basic type queries.
virtual bool isTransmitter () const
 Optional override for basic type queries.
virtual bool isReceiver () const
 Optional override for basic type queries.
virtual bool isDiGuy () const
 Optional override for basic type queries.
virtual bool isRelativeLocation () const
 Optional override for basic type queries.
- Public Member Functions inherited from MAKLogger::DtStateObject
virtual ~DtStateObject ()
virtual bool equals (const DtStateObject &copy)
 Compare two objects to see if they are equal.
virtual bool operator< (const DtStateObject &second)
 Used for sorting objects, compares unique ids.
virtual
DtLgrEntityTracker::EntryHandle 
entityTrackingId () const
 Set/Get entity tracking ID.
virtual void setEntityTrackingId (DtLgrEntityTracker::EntryHandle id)
 Set/Get entity tracking ID.

Protected Member Functions

virtual void copyPacket (const DtPacket &packet, DtNetPduHeader **lastPdu, int &lastPduSize, int &lastBufferSize)
 Copy the last packet.
virtual void createUpdate (DtNetPduHeader *lastPdu, int lastPduSize, const DtAbsoluteTime *time, std::list< DtPacket * > &packetlist) const
 Create update packet for the given last PDU. Add it to the list.

Protected Attributes

DtAbsoluteTime myLastUpdateTime
DtNetPduHeader * myLastPdu
DtString myName
bool myIsUpdateFromPast
DtNetPduHeader * myLastDiGuyAppearancePdu
DtNetPduHeader * myLastDiGuyTypePdu
DtNetPduHeader * myLastDiGuyActionPdu
int myLastPduSize
int myLastDiGuyAppearancePduSize
int myLastDiGuyTypePduSize
int myLastDiGuyActionPduSize
int myPduBufferSize
int myDiGuyAppearancePduBufferSize
int myDiGuyTypePduBufferSize
int myDiGuyActionPduBufferSize
- Protected Attributes inherited from MAKLogger::DtStateObject
DtLgrEntityTracker::EntryHandle myEntityTrackingId

Detailed Description

A DIS state object.

Constructor & Destructor Documentation

virtual MAKLogger::DtDisStateObject::~DtDisStateObject ( )
virtual

Member Function Documentation

virtual void MAKLogger::DtDisStateObject::copyPacket ( const DtPacket packet,
DtNetPduHeader **  lastPdu,
int &  lastPduSize,
int &  lastBufferSize 
)
protectedvirtual

Copy the last packet.

virtual DtPacket* MAKLogger::DtDisStateObject::createRemoval ( const DtAbsoluteTime time) const
virtual

Create a remove packet for this object.

Implements MAKLogger::DtStateObject.

virtual DtPacket* MAKLogger::DtDisStateObject::createUpdate ( const DtAbsoluteTime time) const
virtual

Create an update packet for this object.

virtual void MAKLogger::DtDisStateObject::createUpdate ( const DtAbsoluteTime time,
std::list< DtPacket * > &  packetlist 
) const
virtual

Create update packets for this object (handles Di-Guy updates). Adds them to list.

virtual void MAKLogger::DtDisStateObject::createUpdate ( DtNetPduHeader *  lastPdu,
int  lastPduSize,
const DtAbsoluteTime time,
std::list< DtPacket * > &  packetlist 
) const
protectedvirtual

Create update packet for the given last PDU. Add it to the list.

virtual bool MAKLogger::DtDisStateObject::isAggregate ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isDiGuy ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isEntity ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isEnvironmentalProcess ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isGriddedData ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isReceiver ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isRelativeLocation ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::isTransmitter ( ) const
virtual

Optional override for basic type queries.

Warning
By default returns false.

Reimplemented from MAKLogger::DtStateObject.

virtual const DtString& MAKLogger::DtDisStateObject::name ( ) const
virtual

The name of the object if it exists (empty string if not).

Implements MAKLogger::DtStateObject.

virtual bool MAKLogger::DtDisStateObject::packetForMe ( const DtPacket ) const
virtual

Get whether the packet is for this state object.

Implements MAKLogger::DtStateObject.

virtual DtU64 MAKLogger::DtDisStateObject::packetId ( const DtPacket packet) const
virtual

Get the unique id of the packet.

Implements MAKLogger::DtStateObject.

virtual void MAKLogger::DtDisStateObject::setPacketId ( DtU64  ,
DtPacket  
) const
virtual

Change the packet id in the packet.

This does not effect the state object's unique id.

Implements MAKLogger::DtStateObject.

virtual DtU64 MAKLogger::DtDisStateObject::uniqueId ( ) const
virtual

Get the unique id of the state object.

Implements MAKLogger::DtStateObject.

virtual void MAKLogger::DtDisStateObject::updateViaPacket ( const DtPacket )
virtual

Update the state object by packet.

Implements MAKLogger::DtStateObject.

Member Data Documentation

int MAKLogger::DtDisStateObject::myDiGuyActionPduBufferSize
protected
int MAKLogger::DtDisStateObject::myDiGuyAppearancePduBufferSize
protected
int MAKLogger::DtDisStateObject::myDiGuyTypePduBufferSize
protected
bool MAKLogger::DtDisStateObject::myIsUpdateFromPast
protected
DtNetPduHeader* MAKLogger::DtDisStateObject::myLastDiGuyActionPdu
protected
int MAKLogger::DtDisStateObject::myLastDiGuyActionPduSize
protected
DtNetPduHeader* MAKLogger::DtDisStateObject::myLastDiGuyAppearancePdu
protected
int MAKLogger::DtDisStateObject::myLastDiGuyAppearancePduSize
protected
DtNetPduHeader* MAKLogger::DtDisStateObject::myLastDiGuyTypePdu
protected
int MAKLogger::DtDisStateObject::myLastDiGuyTypePduSize
protected
DtNetPduHeader* MAKLogger::DtDisStateObject::myLastPdu
protected
int MAKLogger::DtDisStateObject::myLastPduSize
protected
DtAbsoluteTime MAKLogger::DtDisStateObject::myLastUpdateTime
protected
DtString MAKLogger::DtDisStateObject::myName
protected
int MAKLogger::DtDisStateObject::myPduBufferSize
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jul 23 15:05:27 EDT 2020 from SVN revision 215371
Copyright © 2020 MAK Technologies. All Rights Reserved (www.mak.com)