swift
Loading...
Searching...
No Matches
swift::simplugin::fsxcommon::CSimConnectObjects Class Reference

Simulator objects (aka AI aircraft). More...

#include <simconnectobject.h>

Inheritance diagram for swift::simplugin::fsxcommon::CSimConnectObjects:
[legend]

Public Member Functions

bool insert (const CSimConnectObject &simObject, bool updateTimestamp=false)
 Insert.
bool setSimConnectObjectIdForRequestId (DWORD requestId, DWORD objectId)
 Set ID of a SimConnect object, so far we only have an request id in the object.
swift::misc::aviation::CCallsign getCallsignForObjectId (DWORD objectId) const
 Find which callsign belongs to the object id.
CSimConnectObject getSimObjectForObjectId (DWORD objectId) const
 Get object per object id.
CSimConnectObject getSimObjectForRequestId (DWORD requestId) const
 Get object per request id.
CSimConnectObject getSimObjectForOtherSimObject (const CSimConnectObject &otherSimObj) const
 Get by request or object id, just as possible.
CSimConnectObject getOldestObject () const
 Get the oldest object.
bool isKnownSimObjectId (DWORD objectId) const
 Is the object id one of our AI objects?
bool removeByObjectId (DWORD objectId)
 Remove by id.
bool removeByOtherSimObject (const CSimConnectObject &otherSimObj)
 Remove by object id or request id.
int removeAllProbes ()
 Remove all the probes.
int removeCallsigns (const swift::misc::aviation::CCallsignSet &callsigns)
 Remove callsigns.
CSimConnectObjects removeOutdatedPendingAdded (CSimConnectObject::SimObjectType type)
 Remove all pending added objects.
bool containsPendingAdded () const
 Pending add condition.
bool containsPendingRemoved () const
 Pending removed condition.
int countPendingAdded () const
 Number of pending added.
int countPendingRemoved () const
 Number of pending removed.
int countConfirmedAdded ()
 Objects not pending.
swift::misc::aviation::CCallsignSet getAllCallsigns (bool withoutProbes=true) const
 Get all callsigns.
QStringList getAllCallsignStrings (bool sorted=false, bool withoutProbes=true) const
 Get all callsign strings.
QString getAllCallsignStringsAsString (bool sorted=false, const QString &separator=", ") const
 Get all callsign strings as string.
swift::misc::aviation::CCallsignSet getPendingAddedCallsigns () const
 Callsigns of pending added callsigns.
swift::misc::aviation::CCallsignSet getPendingRemovedCallsigns () const
 Callsigns of pending removed callsigns.
QList< CSimConnectObject > getByType (CSimConnectObject::SimObjectType type) const
 Get by type.
QList< CSimConnectObject > getProbes () const
 All probes.
QList< CSimConnectObject > getAircraft () const
 All aircraft.
CSimConnectObject getNotPendingProbe () const
 Get a non pending probe.
CSimConnectObject getOldestNotPendingProbe () const
 Get a non pending probe.
bool containsType (CSimConnectObject::SimObjectType type) const
 Contains object of type.
bool containsProbe () const
 Probe?
bool containsAircraft () const
 Aircraft?
Public Member Functions inherited from QHash< swift::misc::aviation::CCallsign, CSimConnectObject >
QDataStream & operator<< (QDataStream &out, const QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &hash)
QDataStream & operator>> (QDataStream &in, QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &hash)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject > & operator= (QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &&other)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::TryEmplaceResult insertOrAssign (K &&key, Value &&value)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::TryEmplaceResult tryEmplace (K &&key, Args &&... args)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::TryEmplaceResult tryInsert (K &&key, const CSimConnectObject &value)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator begin ()
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator emplace (swift::misc::aviation::CCallsign &&key, Args &&... args)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator end ()
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator erase (QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator pos)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator find (const swift::misc::aviation::CCallsign &key)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::iterator insert (swift::misc::aviation::CCallsign &&key, CSimConnectObject &&value)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_value_iterator insert_or_assign (QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator hint, K &&key, Value &&value)
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_value_iterator keyValueBegin ()
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_value_iterator keyValueEnd ()
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_value_iterator try_emplace (QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator hint, K &&key, Args &&... args)
 QT_NO_SINGLE_ARGUMENT_QHASH_OVERLOAD QT_NO_SINGLE_ARGUMENT_QHASH_OVERLOAD
CSimConnectObject & operator[] (const swift::misc::aviation::CCallsign &key)
CSimConnectObject take (const swift::misc::aviation::CCallsign &key)
auto asKeyValueRange () &
bool operator!= (const QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &lhs, const QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &rhs)
bool operator== (const QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &lhs, const QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &rhs)
bool remove (const swift::misc::aviation::CCallsign &key)
int qGlobalQHashSeed ()
qsizetype erase_if (QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &hash, Predicate pred)
qsizetype removeIf (Predicate pred)
size_t qHash (Enum key, size_t seed)
size_t qHashBits (const void *p, size_t len, size_t seed)
size_t qHashMulti (size_t seed, const CSimConnectObject &... args)
size_t qHashMultiCommutative (size_t seed, const CSimConnectObject &... args)
size_t qHashRange (InputIterator first, InputIterator last, size_t seed)
size_t qHashRangeCommutative (InputIterator first, InputIterator last, size_t seed)
void clear ()
void qSetGlobalQHashSeed (int newSeed)
void reserve (qsizetype size)
void squeeze ()
void swap (QHash< swift::misc::aviation::CCallsign, CSimConnectObject > &other)
swift::misc::aviation::CCallsign key (const CSimConnectObject &value) const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator cbegin () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator cend () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator constBegin () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator constEnd () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_iterator constFind (const swift::misc::aviation::CCallsign &key) const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_key_value_iterator constKeyValueBegin () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::const_key_value_iterator constKeyValueEnd () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_iterator keyBegin () const const
QHash< swift::misc::aviation::CCallsign, CSimConnectObject >::key_iterator keyEnd () const const
QList< swift::misc::aviation::CCallsign > keys () const const
QList< CSimConnectObject > values () const const
CSimConnectObject value (const swift::misc::aviation::CCallsign &key) const const
bool contains (const swift::misc::aviation::CCallsign &key) const const
bool empty () const const
bool isEmpty () const const
float load_factor () const const
qsizetype capacity () const const
qsizetype count () const const
qsizetype size () const const

Additional Inherited Members

Public Attributes inherited from QHash< swift::misc::aviation::CCallsign, CSimConnectObject >
typedef ConstIterator
typedef Iterator
typedef const_key_value_iterator
typedef key_value_iterator
typedef difference_type
typedef key_type
typedef mapped_type
typedef size_type

Detailed Description

Simulator objects (aka AI aircraft).

Definition at line 354 of file simconnectobject.h.

Member Function Documentation

◆ containsAircraft()

bool swift::simplugin::fsxcommon::CSimConnectObjects::containsAircraft ( ) const

Aircraft?

Definition at line 616 of file simconnectobject.cpp.

◆ containsPendingAdded()

bool swift::simplugin::fsxcommon::CSimConnectObjects::containsPendingAdded ( ) const

Pending add condition.

Definition at line 466 of file simconnectobject.cpp.

◆ containsPendingRemoved()

bool swift::simplugin::fsxcommon::CSimConnectObjects::containsPendingRemoved ( ) const

Pending removed condition.

Definition at line 478 of file simconnectobject.cpp.

◆ containsProbe()

bool swift::simplugin::fsxcommon::CSimConnectObjects::containsProbe ( ) const
inline

Probe?

Definition at line 445 of file simconnectobject.h.

◆ containsType()

bool swift::simplugin::fsxcommon::CSimConnectObjects::containsType ( CSimConnectObject::SimObjectType type) const

Contains object of type.

Definition at line 604 of file simconnectobject.cpp.

◆ countConfirmedAdded()

int swift::simplugin::fsxcommon::CSimConnectObjects::countConfirmedAdded ( )

Objects not pending.

Definition at line 516 of file simconnectobject.cpp.

◆ countPendingAdded()

int swift::simplugin::fsxcommon::CSimConnectObjects::countPendingAdded ( ) const

Number of pending added.

Definition at line 490 of file simconnectobject.cpp.

◆ countPendingRemoved()

int swift::simplugin::fsxcommon::CSimConnectObjects::countPendingRemoved ( ) const

Number of pending removed.

Definition at line 503 of file simconnectobject.cpp.

◆ getAircraft()

QList< CSimConnectObject > swift::simplugin::fsxcommon::CSimConnectObjects::getAircraft ( ) const

All aircraft.

Definition at line 568 of file simconnectobject.cpp.

◆ getAllCallsigns()

CCallsignSet swift::simplugin::fsxcommon::CSimConnectObjects::getAllCallsigns ( bool withoutProbes = true) const

Get all callsigns.

Definition at line 341 of file simconnectobject.cpp.

◆ getAllCallsignStrings()

QStringList swift::simplugin::fsxcommon::CSimConnectObjects::getAllCallsignStrings ( bool sorted = false,
bool withoutProbes = true ) const

Get all callsign strings.

Definition at line 362 of file simconnectobject.cpp.

◆ getAllCallsignStringsAsString()

QString swift::simplugin::fsxcommon::CSimConnectObjects::getAllCallsignStringsAsString ( bool sorted = false,
const QString & separator = ", " ) const

Get all callsign strings as string.

Definition at line 367 of file simconnectobject.cpp.

◆ getByType()

QList< CSimConnectObject > swift::simplugin::fsxcommon::CSimConnectObjects::getByType ( CSimConnectObject::SimObjectType type) const

Get by type.

Definition at line 555 of file simconnectobject.cpp.

◆ getCallsignForObjectId()

CCallsign swift::simplugin::fsxcommon::CSimConnectObjects::getCallsignForObjectId ( DWORD objectId) const

Find which callsign belongs to the object id.

Definition at line 336 of file simconnectobject.cpp.

◆ getNotPendingProbe()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getNotPendingProbe ( ) const

Get a non pending probe.

Definition at line 575 of file simconnectobject.cpp.

◆ getOldestNotPendingProbe()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getOldestNotPendingProbe ( ) const

Get a non pending probe.

Definition at line 587 of file simconnectobject.cpp.

◆ getOldestObject()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getOldestObject ( ) const

Get the oldest object.

Definition at line 384 of file simconnectobject.cpp.

◆ getPendingAddedCallsigns()

CCallsignSet swift::simplugin::fsxcommon::CSimConnectObjects::getPendingAddedCallsigns ( ) const

Callsigns of pending added callsigns.

Definition at line 529 of file simconnectobject.cpp.

◆ getPendingRemovedCallsigns()

CCallsignSet swift::simplugin::fsxcommon::CSimConnectObjects::getPendingRemovedCallsigns ( ) const

Callsigns of pending removed callsigns.

Definition at line 542 of file simconnectobject.cpp.

◆ getProbes()

QList< CSimConnectObject > swift::simplugin::fsxcommon::CSimConnectObjects::getProbes ( ) const
inline

All probes.

Definition at line 430 of file simconnectobject.h.

◆ getSimObjectForObjectId()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getSimObjectForObjectId ( DWORD objectId) const

Get object per object id.

Definition at line 372 of file simconnectobject.cpp.

◆ getSimObjectForOtherSimObject()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getSimObjectForOtherSimObject ( const CSimConnectObject & otherSimObj) const

Get by request or object id, just as possible.

Definition at line 418 of file simconnectobject.cpp.

◆ getSimObjectForRequestId()

CSimConnectObject swift::simplugin::fsxcommon::CSimConnectObjects::getSimObjectForRequestId ( DWORD requestId) const

Get object per request id.

Definition at line 406 of file simconnectobject.cpp.

◆ insert()

bool swift::simplugin::fsxcommon::CSimConnectObjects::insert ( const CSimConnectObject & simObject,
bool updateTimestamp = false )

Insert.

Definition at line 302 of file simconnectobject.cpp.

◆ isKnownSimObjectId()

bool swift::simplugin::fsxcommon::CSimConnectObjects::isKnownSimObjectId ( DWORD objectId) const

Is the object id one of our AI objects?

Definition at line 435 of file simconnectobject.cpp.

◆ removeAllProbes()

int swift::simplugin::fsxcommon::CSimConnectObjects::removeAllProbes ( )

Remove all the probes.

Definition at line 454 of file simconnectobject.cpp.

◆ removeByObjectId()

bool swift::simplugin::fsxcommon::CSimConnectObjects::removeByObjectId ( DWORD objectId)

Remove by id.

Definition at line 441 of file simconnectobject.cpp.

◆ removeByOtherSimObject()

bool swift::simplugin::fsxcommon::CSimConnectObjects::removeByOtherSimObject ( const CSimConnectObject & otherSimObj)

Remove by object id or request id.

Definition at line 448 of file simconnectobject.cpp.

◆ removeCallsigns()

int swift::simplugin::fsxcommon::CSimConnectObjects::removeCallsigns ( const swift::misc::aviation::CCallsignSet & callsigns)

Remove callsigns.

Definition at line 622 of file simconnectobject.cpp.

◆ removeOutdatedPendingAdded()

CSimConnectObjects swift::simplugin::fsxcommon::CSimConnectObjects::removeOutdatedPendingAdded ( CSimConnectObject::SimObjectType type)

Remove all pending added objects.

Definition at line 632 of file simconnectobject.cpp.

◆ setSimConnectObjectIdForRequestId()

bool swift::simplugin::fsxcommon::CSimConnectObjects::setSimConnectObjectIdForRequestId ( DWORD requestId,
DWORD objectId )

Set ID of a SimConnect object, so far we only have an request id in the object.

Definition at line 321 of file simconnectobject.cpp.


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