29 #ifndef NEMOSYS_TEMPLATEMESHDRIVER_H_ 30 #define NEMOSYS_TEMPLATEMESHDRIVER_H_ 32 #include "nemosys_export.h" 35 #include <jsoncons/json.hpp> 48 struct NEMOSYS_EXPORT
Opts {
49 explicit Opts(std::string templateName);
50 std::string templateName{};
51 jsoncons::json templateParams{};
52 JSONCONS_TYPE_TRAITS_FRIEND
59 const Files &getFiles()
const;
60 void setFiles(
Files file);
61 const Opts &getOpts()
const;
62 void setOpts(
Opts opts);
63 void execute()
const override;
67 JSONCONS_TYPE_TRAITS_FRIEND
75 static constexpr
const char *
programType =
"Template Mesh Generation";
76 jsoncons::string_view getProgramType()
const override;
84 static void executeTemplate(std::string tplName, std::string outName,
93 static std::string spiralTapePipe(jsoncons::json inputjson);
101 static void insertParams(std::string file, std::string params_name);
108 static void encrypt(std::string inFile, std::string outFile);
115 static std::string decrypt(std::string filename);
121 #endif // NEMOSYS_TEMPLATEMESHDRIVER_H_
Driver class to generate meshes according to a template.
static constexpr auto programType