Adapt to changes in codegen that require specifying the identifier in the codegen::doc function

This commit is contained in:
Alexander Bock
2021-05-25 23:10:12 +02:00
parent cb17bd7570
commit 63cbf270ee
116 changed files with 138 additions and 345 deletions
+1 -3
View File
@@ -40,9 +40,7 @@ namespace {
namespace openspace::planetgeometry {
documentation::Documentation PlanetGeometry::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_geometry_planet";
return doc;
return codegen::doc<Parameters>("space_geometry_planet");
}
std::unique_ptr<PlanetGeometry> PlanetGeometry::createFromDictionary(
@@ -99,11 +99,8 @@ namespace {
namespace openspace {
documentation::Documentation RenderableConstellationBounds::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderable_constellationbounds";
return doc;
} // namespace
return codegen::doc<Parameters>("space_renderable_constellationbounds");
}
RenderableConstellationBounds::RenderableConstellationBounds(
const ghoul::Dictionary& dictionary)
@@ -96,8 +96,9 @@ namespace {
namespace openspace {
documentation::Documentation RenderableHabitableZone::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderablehabitablezone";
documentation::Documentation doc = codegen::doc<Parameters>(
"space_renderablehabitablezone"
);
// @TODO cleanup
// Insert the parents documentation entries until we have a verifier that can deal
@@ -262,9 +262,7 @@ namespace {
namespace openspace {
documentation::Documentation RenderableOrbitalKepler::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderableorbitalkepler";
return doc;
return codegen::doc<Parameters>("space_renderableorbitalkepler");
}
double RenderableOrbitalKepler::calculateSemiMajorAxis(double meanMotion) const {
+1 -3
View File
@@ -103,9 +103,7 @@ namespace {
namespace openspace {
documentation::Documentation RenderableRings::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderable_rings";
return doc;
return codegen::doc<Parameters>("space_renderable_rings");
}
RenderableRings::RenderableRings(const ghoul::Dictionary& dictionary)
@@ -64,8 +64,9 @@ namespace {
namespace openspace {
documentation::Documentation RenderableSatellites::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderablesatellites";
documentation::Documentation doc = codegen::doc<Parameters>(
"space_renderablesatellites"
);
// Insert the parents documentation entries until we have a verifier that can deal
// with class hierarchy
@@ -98,8 +98,9 @@ namespace {
namespace openspace {
documentation::Documentation RenderableSmallBody::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderablesmallbody";
documentation::Documentation doc = codegen::doc<Parameters>(
"space_renderablesmallbody"
);
// Insert the parents documentation entries until we have a verifier that can deal
// with class hierarchy
+1 -3
View File
@@ -450,9 +450,7 @@ namespace {
namespace openspace {
documentation::Documentation RenderableStars::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_renderablestars";
return doc;
return codegen::doc<Parameters>("space_renderablestars");
}
RenderableStars::RenderableStars(const ghoul::Dictionary& dictionary)
@@ -55,9 +55,7 @@ namespace {
namespace openspace::planetgeometry {
documentation::Documentation SimpleSphereGeometry::Documentation() {
documentation::Documentation doc = codegen::doc<Parameters>();
doc.id = "space_geometry_simplesphere";
return doc;
return codegen::doc<Parameters>("space_geometry_simplesphere");
}
SimpleSphereGeometry::SimpleSphereGeometry(const ghoul::Dictionary& dictionary)