4d36082398
(everything described here lives in the namespace flightgear::addons) New classes: Author, Maintainer, and Contact. Author and Maintainer derive from Contact. For each contact, the following can be defined in addon-metadata.xml: name, email, and url. See [1] for details about the syntax and usage policy. Nasal bindings have been updated accordingly, there are three new ghosts: addons.Contact, addons.Author and addons.Maintainer. The enum class UrlType has two new members: author and maintainer. The Addon::getUrls() method has a new signature: std::multimap<UrlType, QualifiedUrl> getUrls() const; because non-empty 'url' fields for authors and maintainers contribute to the result, and there can be an arbitrary number of authors and an arbitrary number of maintainers defined for a given add-on---therefore, std::map can't be used anymore. Finally, QualifiedUrl has a new field (detail) which stores the author name (resp. maintainer name) when the QualifiedUrl type is UrlType::author (resp. UrlType::maintainer). Currently, this 'detail' field is not used for other URL types, but this could be changed if desired. [1] https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/Docs/README.add-ons |
||
---|---|---|
.. | ||
.gitignore | ||
alcinfo.cxx | ||
CMakeLists.txt | ||
est-epsilon.cxx | ||
fake_sgPrecipitation.cxx | ||
fake_sgSky.cxx | ||
fake_sgSky.hxx | ||
fake_sound.cxx | ||
fakeAIAircraft.hxx | ||
fgTestDriver.cxx | ||
gl-info.cxx | ||
test-env-map.cxx | ||
test-gethostname.cxx | ||
test-mktime.cxx | ||
test-text.cxx | ||
test-up.cxx | ||
test_flightplan.cxx | ||
test_ls_matrix.cxx | ||
test_navaids2.cxx | ||
testAeroElement.cxx | ||
testAeroMesh.cxx | ||
testStubs.cxx | ||
unitTestHelpers.cxx | ||
unitTestHelpers.hxx |