swift
Classes | Namespaces | Functions | Variables
utils.h File Reference

Go to the source code of this file.

Classes

class  XSwiftBus::Logger
 Simple logger class. Don't use it directly, but the _LOG macros instead. More...
 

Namespaces

 XSwiftBus
 Plugin loaded by X-Plane which publishes a DBus service.
 

Macros

#define DEBUG_LOG(msg)   (XSwiftBus::Logger::print(__FILE__, __LINE__, XSwiftBus::Logger::DebugMsg, (msg)))
 Logger convenience macros.
 
#define DEBUG_LOG_C(msg, doLog)    ((doLog) ? XSwiftBus::Logger::print(__FILE__, __LINE__, XSwiftBus::Logger::DebugMsg, (msg)) : static_cast<void>(0))
 Logger convenience macros.
 
#define INFO_LOG(msg)   (XSwiftBus::Logger::print(__FILE__, __LINE__, XSwiftBus::Logger::InfoMsg, (msg)))
 Logger convenience macros.
 
#define WARNING_LOG(msg)   (XSwiftBus::Logger::print(__FILE__, __LINE__, XSwiftBus::Logger::WarningMsg, (msg)))
 Logger convenience macros.
 
#define ERROR_LOG(msg)   (XSwiftBus::Logger::print(__FILE__, __LINE__, XSwiftBus::Logger::ErrorMsg, (msg)))
 Logger convenience macros.
 

Functions

void XSwiftBus::initXPlanePath ()
 Init global xplane path.
 

Variables

std::string XSwiftBus::g_xplanePath
 Absolute xplane path.
 
std::string XSwiftBus::g_sep
 Platform specific dir separator.