FlightGear next
flightgear::addons Namespace Reference

Namespaces

namespace  errors
 

Classes

class  Addon
 
class  AddonManager
 
class  AddonVersion
 
class  AddonVersionSuffix
 
class  Author
 
class  Contact
 
struct  contact_traits
 
struct  contact_traits< Author >
 
struct  contact_traits< Maintainer >
 
class  Maintainer
 
class  QualifiedUrl
 
class  ResourceProvider
 
struct  shared_ptr_traits
 
struct  shared_ptr_traits< SGSharedPtr< T > >
 
struct  shared_ptr_traits< std::shared_ptr< T > >
 

Typedefs

using AddonRef = SGSharedPtr<Addon>
 
using AddonVersionRef = SGSharedPtr<AddonVersion>
 
using ContactRef = SGSharedPtr<Contact>
 
using AuthorRef = SGSharedPtr<Author>
 
using MaintainerRef = SGSharedPtr<Maintainer>
 

Enumerations

enum class  UrlType {
  author , maintainer , homePage , download ,
  support , codeRepository , license
}
 
enum class  AddonVersionSuffixPrereleaseType { alpha = 0 , beta , candidate , none }
 
enum class  ContactType { author , maintainer }
 

Functions

std::ostream & operator<< (std::ostream &os, const Addon &addon)
 
static std::string getMaybeLocalized (const std::string &tag, SGPropertyNode *base, SGPropertyNode *lang)
 
static SGPropertyNode * getAndCheckLocalizedNode (SGPropertyNode *addonNode, const SGPath &metadataFile)
 
static std::string parseContactsNode_readNode (const SGPath &metadataFile, SGPropertyNode *contactNode, std::string subnodeName, bool allowEmpty)
 
bool operator== (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
bool operator!= (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
bool operator< (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
bool operator> (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
bool operator<= (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
bool operator>= (const AddonVersionSuffix &lhs, const AddonVersionSuffix &rhs)
 
std::ostream & operator<< (std::ostream &os, const AddonVersionSuffix &addonVersionSuffix)
 
bool operator== (const AddonVersion &lhs, const AddonVersion &rhs)
 
bool operator!= (const AddonVersion &lhs, const AddonVersion &rhs)
 
bool operator< (const AddonVersion &lhs, const AddonVersion &rhs)
 
bool operator> (const AddonVersion &lhs, const AddonVersion &rhs)
 
bool operator<= (const AddonVersion &lhs, const AddonVersion &rhs)
 
bool operator>= (const AddonVersion &lhs, const AddonVersion &rhs)
 
std::ostream & operator<< (std::ostream &os, const AddonVersion &addonVersion)
 
static const std::unique_ptr< AddonManager > & getAddonMgrWithCheck ()
 
static naRef f_registeredAddons (const nasal::CallContext &ctx)
 
static naRef f_isAddonRegistered (const nasal::CallContext &ctx)
 
static naRef f_loadedAddons (const nasal::CallContext &ctx)
 
static naRef f_isAddonLoaded (const nasal::CallContext &ctx)
 
static naRef f_getAddon (const nasal::CallContext &ctx)
 
static void wrapAddonManagerMethods (nasal::Hash &addonsModule)
 
naRef f_createAddonVersion (const nasal::CallContext &ctx)
 
void initAddonClassesForNasal (naRef globals, naContext c)
 

Variables

static unique_ptr< AddonManagerstaticInstance
 

Typedef Documentation

◆ AddonRef

using flightgear::addons::AddonRef = SGSharedPtr<Addon>

Definition at line 46 of file addon_fwd.hxx.

◆ AddonVersionRef

Definition at line 47 of file addon_fwd.hxx.

◆ AuthorRef

using flightgear::addons::AuthorRef = SGSharedPtr<Author>

Definition at line 49 of file addon_fwd.hxx.

◆ ContactRef

Definition at line 48 of file addon_fwd.hxx.

◆ MaintainerRef

Definition at line 50 of file addon_fwd.hxx.

Enumeration Type Documentation

◆ AddonVersionSuffixPrereleaseType

Enumerator
alpha 
beta 
candidate 
none 

Definition at line 41 of file AddonVersion.hxx.

◆ ContactType

Enumerator
author 
maintainer 

Definition at line 40 of file contacts.hxx.

◆ UrlType

enum class flightgear::addons::UrlType
strong
Enumerator
author 
maintainer 
homePage 
download 
support 
codeRepository 
license 

Definition at line 45 of file Addon.hxx.

Function Documentation

◆ f_createAddonVersion()

naRef flightgear::addons::f_createAddonVersion ( const nasal::CallContext & ctx)

Definition at line 119 of file NasalAddons.cxx.

◆ f_getAddon()

static naRef flightgear::addons::f_getAddon ( const nasal::CallContext & ctx)
static

Definition at line 85 of file NasalAddons.cxx.

◆ f_isAddonLoaded()

static naRef flightgear::addons::f_isAddonLoaded ( const nasal::CallContext & ctx)
static

Definition at line 78 of file NasalAddons.cxx.

◆ f_isAddonRegistered()

static naRef flightgear::addons::f_isAddonRegistered ( const nasal::CallContext & ctx)
static

Definition at line 65 of file NasalAddons.cxx.

◆ f_loadedAddons()

static naRef flightgear::addons::f_loadedAddons ( const nasal::CallContext & ctx)
static

Definition at line 72 of file NasalAddons.cxx.

◆ f_registeredAddons()

static naRef flightgear::addons::f_registeredAddons ( const nasal::CallContext & ctx)
static

Definition at line 59 of file NasalAddons.cxx.

◆ getAddonMgrWithCheck()

static const std::unique_ptr< AddonManager > & flightgear::addons::getAddonMgrWithCheck ( )
static

Definition at line 47 of file NasalAddons.cxx.

◆ getAndCheckLocalizedNode()

static SGPropertyNode * flightgear::addons::getAndCheckLocalizedNode ( SGPropertyNode * addonNode,
const SGPath & metadataFile )
static

Definition at line 62 of file AddonMetadataParser.cxx.

◆ getMaybeLocalized()

static std::string flightgear::addons::getMaybeLocalized ( const std::string & tag,
SGPropertyNode * base,
SGPropertyNode * lang )
static

Definition at line 45 of file AddonMetadataParser.cxx.

◆ initAddonClassesForNasal()

void flightgear::addons::initAddonClassesForNasal ( naRef globals,
naContext c )

Definition at line 194 of file NasalAddons.cxx.

◆ operator!=() [1/2]

bool flightgear::addons::operator!= ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 491 of file AddonVersion.cxx.

◆ operator!=() [2/2]

bool flightgear::addons::operator!= ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 315 of file AddonVersion.cxx.

◆ operator<() [1/2]

bool flightgear::addons::operator< ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 494 of file AddonVersion.cxx.

◆ operator<() [2/2]

bool flightgear::addons::operator< ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 318 of file AddonVersion.cxx.

◆ operator<<() [1/3]

std::ostream & flightgear::addons::operator<< ( std::ostream & os,
const Addon & addon )

Definition at line 509 of file Addon.cxx.

◆ operator<<() [2/3]

std::ostream & flightgear::addons::operator<< ( std::ostream & os,
const AddonVersion & addonVersion )

Definition at line 506 of file AddonVersion.cxx.

◆ operator<<() [3/3]

std::ostream & flightgear::addons::operator<< ( std::ostream & os,
const AddonVersionSuffix & addonVersionSuffix )

Definition at line 330 of file AddonVersion.cxx.

◆ operator<=() [1/2]

bool flightgear::addons::operator<= ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 500 of file AddonVersion.cxx.

◆ operator<=() [2/2]

bool flightgear::addons::operator<= ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 324 of file AddonVersion.cxx.

◆ operator==() [1/2]

bool flightgear::addons::operator== ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 488 of file AddonVersion.cxx.

◆ operator==() [2/2]

bool flightgear::addons::operator== ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 312 of file AddonVersion.cxx.

◆ operator>() [1/2]

bool flightgear::addons::operator> ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 497 of file AddonVersion.cxx.

◆ operator>() [2/2]

bool flightgear::addons::operator> ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 321 of file AddonVersion.cxx.

◆ operator>=() [1/2]

bool flightgear::addons::operator>= ( const AddonVersion & lhs,
const AddonVersion & rhs )

Definition at line 503 of file AddonVersion.cxx.

◆ operator>=() [2/2]

bool flightgear::addons::operator>= ( const AddonVersionSuffix & lhs,
const AddonVersionSuffix & rhs )

Definition at line 327 of file AddonVersion.cxx.

◆ parseContactsNode_readNode()

static std::string flightgear::addons::parseContactsNode_readNode ( const SGPath & metadataFile,
SGPropertyNode * contactNode,
std::string subnodeName,
bool allowEmpty )
static

Definition at line 271 of file AddonMetadataParser.cxx.

◆ wrapAddonManagerMethods()

static void flightgear::addons::wrapAddonManagerMethods ( nasal::Hash & addonsModule)
static

Definition at line 91 of file NasalAddons.cxx.

Variable Documentation

◆ staticInstance

unique_ptr<AddonManager> flightgear::addons::staticInstance
static

Definition at line 61 of file AddonManager.cxx.