Changeset 6026 for pjproject/trunk/pjsip/src/pjsua2/json.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/json.cpp
r5754 r6026 30 30 static bool jsonNode_hasUnread(const ContainerNode*); 31 31 static string jsonNode_unreadName(const ContainerNode*n) 32 throw(Error);32 PJSUA2_THROW(Error); 33 33 static float jsonNode_readNumber(const ContainerNode*, 34 34 const string&) 35 throw(Error);35 PJSUA2_THROW(Error); 36 36 static bool jsonNode_readBool(const ContainerNode*, 37 37 const string&) 38 throw(Error);38 PJSUA2_THROW(Error); 39 39 static string jsonNode_readString(const ContainerNode*, 40 40 const string&) 41 throw(Error);41 PJSUA2_THROW(Error); 42 42 static StringVector jsonNode_readStringVector(const ContainerNode*, 43 43 const string&) 44 throw(Error);44 PJSUA2_THROW(Error); 45 45 static ContainerNode jsonNode_readContainer(const ContainerNode*, 46 46 const string &) 47 throw(Error);47 PJSUA2_THROW(Error); 48 48 static ContainerNode jsonNode_readArray(const ContainerNode*, 49 49 const string &) 50 throw(Error);50 PJSUA2_THROW(Error); 51 51 static void jsonNode_writeNumber(ContainerNode*, 52 52 const string &name, 53 53 float num) 54 throw(Error);54 PJSUA2_THROW(Error); 55 55 static void jsonNode_writeBool(ContainerNode*, 56 56 const string &name, 57 57 bool value) 58 throw(Error);58 PJSUA2_THROW(Error); 59 59 static void jsonNode_writeString(ContainerNode*, 60 60 const string &name, 61 61 const string &value) 62 throw(Error);62 PJSUA2_THROW(Error); 63 63 static void jsonNode_writeStringVector(ContainerNode*, 64 64 const string &name, 65 65 const StringVector &value) 66 throw(Error);66 PJSUA2_THROW(Error); 67 67 static ContainerNode jsonNode_writeNewContainer(ContainerNode*, 68 68 const string &name) 69 throw(Error);69 PJSUA2_THROW(Error); 70 70 static ContainerNode jsonNode_writeNewArray(ContainerNode*, 71 71 const string &name) 72 throw(Error);72 PJSUA2_THROW(Error); 73 73 74 74 static container_node_op json_op = … … 115 115 } 116 116 117 void JsonDocument::loadFile(const string &filename) throw(Error)117 void JsonDocument::loadFile(const string &filename) PJSUA2_THROW(Error) 118 118 { 119 119 if (root) … … 175 175 } 176 176 177 void JsonDocument::loadString(const string &input) throw(Error)177 void JsonDocument::loadString(const string &input) PJSUA2_THROW(Error) 178 178 { 179 179 if (root) … … 215 215 } 216 216 217 void JsonDocument::saveFile(const string &filename) throw(Error)217 void JsonDocument::saveFile(const string &filename) PJSUA2_THROW(Error) 218 218 { 219 219 struct save_file_data sd; … … 248 248 } 249 249 250 string JsonDocument::saveString() throw(Error)250 string JsonDocument::saveString() PJSUA2_THROW(Error) 251 251 { 252 252 struct save_string_data sd; … … 334 334 335 335 static string jsonNode_unreadName(const ContainerNode *node) 336 throw(Error)336 PJSUA2_THROW(Error) 337 337 { 338 338 json_node_data *jdat = (json_node_data*)&node->data; … … 343 343 static float jsonNode_readNumber(const ContainerNode *node, 344 344 const string &name) 345 throw(Error)345 PJSUA2_THROW(Error) 346 346 { 347 347 json_node_data *jdat = (json_node_data*)&node->data; … … 353 353 static bool jsonNode_readBool(const ContainerNode *node, 354 354 const string &name) 355 throw(Error)355 PJSUA2_THROW(Error) 356 356 { 357 357 json_node_data *jdat = (json_node_data*)&node->data; … … 363 363 static string jsonNode_readString(const ContainerNode *node, 364 364 const string &name) 365 throw(Error)365 PJSUA2_THROW(Error) 366 366 { 367 367 json_node_data *jdat = (json_node_data*)&node->data; … … 373 373 static StringVector jsonNode_readStringVector(const ContainerNode *node, 374 374 const string &name) 375 throw(Error)375 PJSUA2_THROW(Error) 376 376 { 377 377 json_node_data *jdat = (json_node_data*)&node->data; … … 399 399 static ContainerNode jsonNode_readContainer(const ContainerNode *node, 400 400 const string &name) 401 throw(Error)401 PJSUA2_THROW(Error) 402 402 { 403 403 json_node_data *jdat = (json_node_data*)&node->data; … … 417 417 static ContainerNode jsonNode_readArray(const ContainerNode *node, 418 418 const string &name) 419 throw(Error)419 PJSUA2_THROW(Error) 420 420 { 421 421 json_node_data *jdat = (json_node_data*)&node->data; … … 443 443 const string &name, 444 444 float num) 445 throw(Error)445 PJSUA2_THROW(Error) 446 446 { 447 447 json_node_data *jdat = (json_node_data*)&node->data; … … 455 455 const string &name, 456 456 bool value) 457 throw(Error)457 PJSUA2_THROW(Error) 458 458 { 459 459 json_node_data *jdat = (json_node_data*)&node->data; … … 467 467 const string &name, 468 468 const string &value) 469 throw(Error)469 PJSUA2_THROW(Error) 470 470 { 471 471 json_node_data *jdat = (json_node_data*)&node->data; … … 482 482 const string &name, 483 483 const StringVector &value) 484 throw(Error)484 PJSUA2_THROW(Error) 485 485 { 486 486 json_node_data *jdat = (json_node_data*)&node->data; … … 503 503 static ContainerNode jsonNode_writeNewContainer(ContainerNode *node, 504 504 const string &name) 505 throw(Error)505 PJSUA2_THROW(Error) 506 506 { 507 507 json_node_data *jdat = (json_node_data*)&node->data; … … 524 524 static ContainerNode jsonNode_writeNewArray(ContainerNode *node, 525 525 const string &name) 526 throw(Error)526 PJSUA2_THROW(Error) 527 527 { 528 528 json_node_data *jdat = (json_node_data*)&node->data;
Note: See TracChangeset
for help on using the changeset viewer.