#include #include #include #include "json.hpp" #include "simpleppm.h" #include using namespace std; using namespace nlohmann; bool test_parse_geometry(json& j){ cout<<"Geometry: "<contains("type")){ // type = static_cast((*itr)["type"]); type = (*itr)["type"].get(); } else { cout<<"Fatal error: geometry shoudl always contain a type!!!"<(); } else { cout<<"Warning: Too many entries in centre"<contains("type")){ // type = static_cast((*itr)["type"]); type = (*itr)["type"].get(); } else { cout<<"Fatal error: light shoudl always contain a type!!!"<(); } else { cout<<"Warning: Too many entries in centre"<contains("filename")){ // filename = static_cast((*itr)["filename"]); filename = (*itr)["filename"].get(); } else { cout<<"Fatal error: output shoudl always contain a filename!!!"<(); } else { cout<<"Warning: Too many entries in size"<(); } else { cout<<"Warning: Too many entries in centre"<(); cout<<"B"<