1 #ifndef WEBEVD_JSONFORMATTER_H
2 #define WEBEVD_JSONFORMATTER_H
22 static_assert(std::is_arithmetic_v<T> ||
24 std::is_same_v<T, std::string>);
35 if(isnan(x))
fStream <<
"1e999";
36 else if(isinf(x))
fStream <<
"1e999";
60 if(&x != &v.back()) (*
this) <<
", ";
66 template<
class T,
class U>
72 (*this) <<
" " << it.first <<
": " << it.second;
74 if(n != m.size()) (*
this) <<
",\n";
86 (*this) <<
" \"" << it.first <<
"\": " << it.second;
88 if(n != m.size()) (*
this) <<
",\n";
100 (*this) <<
" \"" << it.first <<
"\": " << it.second;
102 if(n != m.size()) (*
this) <<
",\n";
process_name opflash particleana ie x
tuple m
now if test mode generate materials, CRT shell, world, gdml header else just generate CRT shell for u...