1
0
Fork 0
mirror of https://github.com/HackHerz/pusher synced 2025-12-06 02:10:19 +00:00

New version of the json library

This commit is contained in:
Daniel Stein 2016-06-21 11:03:55 +02:00
parent 34bd85a206
commit bf4d174431
3 changed files with 8324 additions and 1985 deletions

View file

@ -192,7 +192,7 @@ int main(int argc, char **argv)
if(devices[i].id.length() > idLength) { idLength = devices[i].id.length(); }
}
cout
cout
<< "ID\033[" << (idLength - 2 + 2) << "C"
<< "Title\033[" << (titleLength - 5 + 2) << "C"
<< "Model" << endl;
@ -202,9 +202,9 @@ int main(int argc, char **argv)
for(unsigned int i = 0; i < devices.size(); i++)
{
cout
cout
<< devices[i].id << "\033[" << (idLength - devices[i].id.length() + 2) << "C"
<< devices[i].title << "\033[" << (titleLength - devices[i].title.length() + 2) << "C"
<< devices[i].title << "\033[" << (titleLength - devices[i].title.length() + 2) << "C"
<< devices[i].model << endl;
}
@ -260,7 +260,7 @@ int main(int argc, char **argv)
cerr << "error: " << e.error() << " for arg " << e.argId() << endl;
}
// errors thrown by pushhandler
catch(PusherError& e)
{