|
FlightGear next
|
#include <traffic.h>
Inherits flightgear::swift::CDBusObject.
Public Member Functions | |
| CTraffic () | |
| Constructor. | |
| ~CTraffic () override | |
| Destructor. | |
| bool | initialize () |
| Initialize the multiplayer planes rendering and return true if successful. | |
| int | process () |
| Perform generic processing. | |
| void | emitSimFrame () |
Public Member Functions inherited from flightgear::swift::CDBusObject | |
| CDBusObject ()=default | |
| Constructor. | |
| virtual | ~CDBusObject () |
| Destructor. | |
| void | setDBusConnection (const std::shared_ptr< CDBusConnection > &dbusConnection) |
| Set the assigned DBus connection. | |
| void | registerDBusObjectPath (const std::string &interfaceName, const std::string &objectPath) |
| Register itself with interfaceName and objectPath. | |
Static Public Member Functions | |
| static const std::string & | InterfaceName () |
| DBus interface name. | |
| static const std::string & | ObjectPath () |
| DBus object path. | |
Protected Member Functions | |
| virtual void | dbusDisconnectedHandler () override |
| Handler which is called when DBusConnection disconnected. | |
| DBusHandlerResult | dbusMessageHandler (const CDBusMessage &message) override |
| DBus message handler. | |
Protected Member Functions inherited from flightgear::swift::CDBusObject | |
| virtual void | dbusConnectedHandler () |
| Handler which is called when DBusCconnection is established. | |
| void | sendDBusSignal (const std::string &name) |
| Send DBus signal. | |
| void | sendDBusMessage (const CDBusMessage &message) |
| Send DBus message. | |
| void | maybeSendEmptyDBusReply (bool wantsReply, const std::string &destination, dbus_uint32_t serial) |
| Maybe sends an empty DBus reply (acknowledgement) | |
| template<typename T> | |
| void | sendDBusReply (const std::string &destination, dbus_uint32_t serial, const T &argument) |
| Send DBus reply. | |
| template<typename T> | |
| void | sendDBusReply (const std::string &destination, dbus_uint32_t serial, const std::vector< T > &array) |
| Send DBus reply. | |
| void | queueDBusCall (const std::function< void()> &func) |
| Queue a DBus call to be executed in a different thread. | |
| void | invokeQueuedDBusCalls () |
| Invoke all pending DBus calls. They will be executed in the calling thread. | |
FGSwiftBus service object for traffic aircraft which is accessible through DBus
| flightgear::swift::CTraffic::CTraffic | ( | ) |
Constructor.
Definition at line 21 of file traffic.cpp.
|
override |
Destructor.
Definition at line 26 of file traffic.cpp.
|
overrideprotectedvirtual |
Handler which is called when DBusConnection disconnected.
Reimplemented from flightgear::swift::CDBusObject.
Definition at line 67 of file traffic.cpp.
|
overrideprotectedvirtual |
DBus message handler.
Implements flightgear::swift::CDBusObject.
Definition at line 75 of file traffic.cpp.
| void flightgear::swift::CTraffic::emitSimFrame | ( | ) |
Definition at line 48 of file traffic.cpp.
| bool flightgear::swift::CTraffic::initialize | ( | ) |
Initialize the multiplayer planes rendering and return true if successful.
Definition at line 42 of file traffic.cpp.
|
static |
DBus interface name.
Definition at line 32 of file traffic.cpp.
|
static |
DBus object path.
Definition at line 37 of file traffic.cpp.
| int flightgear::swift::CTraffic::process | ( | ) |
Perform generic processing.
Definition at line 285 of file traffic.cpp.