Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
+7
View File
@@ -4,20 +4,27 @@
#include <map>
#include "jansson.h"
// defined in "simulation/species.h"
namespace species {
enum class ImplementedSpecies;
};
namespace generator {
// class containing a map of the masses (in kg) to the respective ImplementedSpecies
class SpeciesMasses {
public:
// return the mass of the ImplementedSpecies
static double mass(const species::ImplementedSpecies& species);
private:
static std::map<species::ImplementedSpecies, double> mass_;
};
// return the mass of the specie at the json-object
// has to contain either a json-string "FromParticleType" or a json-double "value"
// if "FromParticleType" is specified, it has to be one of the strings defined in the SpecieAlias class in "generators/species_generator.h"
// if "value" is specified, it has to be the value in (kg)
double buildMass(json_t* object);
}; // namespace generator