Configuration file readout
specification of the format in the spec
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user