Configuration file readout

specification of the format in the spec
This commit is contained in:
Tina_Azure
2023-04-12 00:26:47 +02:00
parent bfa49c2281
commit 1965b06868
5 changed files with 186 additions and 29 deletions

View File

@ -100,6 +100,9 @@ namespace Database {
bool onDeliverPaid = false;
bool completed = false;
/*
* outputs request item in a JSON String
*/
std::string toJSONString(){
std::string outputString = "{\"requestItem:\":{";
outputString += "\"id\": " + std::to_string(id) + ",";
@ -122,6 +125,9 @@ namespace Database {
return outputString;
}
/*
* prints request item into standard out
*/
void outputItem(){
std::cout << "id = " << id << std::endl;
std::cout << "customerName = " << customerName << std::endl;