Files
karl/include/generators/geometry_generator.h
2024-12-04 17:15:04 +01:00

22 lines
755 B
C++
Executable File

#ifndef GEOMETRY_GENERATOR_H
#define GEOMETRY_GENERATOR_H
#include <memory>
#include "simulation/geometry.h"
#include "simulation/jansson_additionals.h"
#include "simulation/parameter.h"
namespace generator {
// return a shared_ptr to a Geometry object described by the json-object at the given path in the Parameter object
// the json-object at the path has to contain a json-object "Cylinder". This json-object has to contain:
// two json-objects "Radius" and "Height", which have to follow the form described in "json_read_length"
// ("simulation/jansson_additionals.h")
std::shared_ptr<Geometry> buildGeometry(Parameter& parameter,
const json_path& path_to_geometry);
};
#endif /* GEOMETRY_GENERATOR_H */