Changeset 6026 for pjproject/trunk/pjsip/include/pjsua2/persistent.hpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua2/persistent.hpp
r5771 r6026 69 69 * @param node Container to read values from. 70 70 */ 71 virtual void readObject(const ContainerNode &node) throw(Error) = 0;71 virtual void readObject(const ContainerNode &node) PJSUA2_THROW(Error) = 0; 72 72 73 73 /** … … 76 76 * @param node Container to write values to. 77 77 */ 78 virtual void writeObject(ContainerNode &node) const throw(Error) = 0;78 virtual void writeObject(ContainerNode &node) const PJSUA2_THROW(Error) = 0; 79 79 }; 80 80 … … 111 111 * @param filename The file name. 112 112 */ 113 virtual void loadFile(const string &filename) throw(Error) = 0; 113 virtual void loadFile(const string &filename) 114 PJSUA2_THROW(Error) = 0; 114 115 115 116 /** … … 118 119 * @param input The string. 119 120 */ 120 virtual void loadString(const string &input) throw(Error) = 0; 121 virtual void loadString(const string &input) 122 PJSUA2_THROW(Error) = 0; 121 123 122 124 /** … … 125 127 * @param filename The file name. 126 128 */ 127 virtual void saveFile(const string &filename) throw(Error) = 0; 129 virtual void saveFile(const string &filename) 130 PJSUA2_THROW(Error) = 0; 128 131 129 132 /** … … 132 135 * @return The string document. 133 136 */ 134 virtual string saveString() throw(Error) = 0;137 virtual string saveString() PJSUA2_THROW(Error) = 0; 135 138 136 139 /** … … 161 164 * @return The name of the next element . 162 165 */ 163 string unreadName() const throw(Error);166 string unreadName() const PJSUA2_THROW(Error); 164 167 165 168 /** … … 174 177 * @return The value. 175 178 */ 176 int readInt(const string &name="") const throw(Error); 179 int readInt(const string &name="") const 180 PJSUA2_THROW(Error); 177 181 178 182 /** … … 187 191 * @return The value. 188 192 */ 189 float readNumber(const string &name="") const throw(Error); 193 float readNumber(const string &name="") const 194 PJSUA2_THROW(Error); 190 195 191 196 /** … … 200 205 * @return The value. 201 206 */ 202 bool readBool(const string &name="") const throw(Error); 207 bool readBool(const string &name="") const 208 PJSUA2_THROW(Error); 203 209 204 210 /** … … 213 219 * @return The value. 214 220 */ 215 string readString(const string &name="") const throw(Error); 221 string readString(const string &name="") const 222 PJSUA2_THROW(Error); 216 223 217 224 /** … … 227 234 */ 228 235 StringVector readStringVector(const string &name="") const 229 throw(Error);236 PJSUA2_THROW(Error); 230 237 231 238 /** … … 235 242 * @param obj The object to read. 236 243 */ 237 void readObject(PersistentObject &obj) const throw(Error); 244 void readObject(PersistentObject &obj) const 245 PJSUA2_THROW(Error); 238 246 239 247 /** … … 249 257 */ 250 258 ContainerNode readContainer(const string &name="") const 251 throw(Error);259 PJSUA2_THROW(Error); 252 260 253 261 /** … … 263 271 */ 264 272 ContainerNode readArray(const string &name="") const 265 throw(Error);273 PJSUA2_THROW(Error); 266 274 267 275 /** … … 272 280 */ 273 281 void writeNumber(const string &name, 274 float num) throw(Error);282 float num) PJSUA2_THROW(Error); 275 283 276 284 /** … … 281 289 */ 282 290 void writeInt(const string &name, 283 int num) throw(Error);291 int num) PJSUA2_THROW(Error); 284 292 285 293 /** … … 290 298 */ 291 299 void writeBool(const string &name, 292 bool value) throw(Error);300 bool value) PJSUA2_THROW(Error); 293 301 294 302 /** … … 299 307 */ 300 308 void writeString(const string &name, 301 const string &value) throw(Error);309 const string &value) PJSUA2_THROW(Error); 302 310 303 311 /** … … 309 317 void writeStringVector(const string &name, 310 318 const StringVector &arr) 311 throw(Error);319 PJSUA2_THROW(Error); 312 320 313 321 /** … … 317 325 * @param obj The object to be written 318 326 */ 319 void writeObject(const PersistentObject &obj) throw(Error); 327 void writeObject(const PersistentObject &obj) 328 PJSUA2_THROW(Error); 320 329 321 330 /** … … 328 337 */ 329 338 ContainerNode writeNewContainer(const string &name) 330 throw(Error);339 PJSUA2_THROW(Error); 331 340 332 341 /** … … 339 348 */ 340 349 ContainerNode writeNewArray(const string &name) 341 throw(Error);350 PJSUA2_THROW(Error); 342 351 }; 343 352 … … 423 432 * Get the name of the next unread element. 424 433 */ 425 string unreadName() const throw(Error);434 string unreadName() const PJSUA2_THROW(Error); 426 435 427 436 /** … … 436 445 * @return The value. 437 446 */ 438 int readInt(const string &name="") const throw(Error); 447 int readInt(const string &name="") const 448 PJSUA2_THROW(Error); 439 449 440 450 /** … … 449 459 * @return The value. 450 460 */ 451 float readNumber(const string &name="") const throw(Error); 461 float readNumber(const string &name="") const 462 PJSUA2_THROW(Error); 452 463 453 464 /** … … 462 473 * @return The value. 463 474 */ 464 bool readBool(const string &name="") const throw(Error); 475 bool readBool(const string &name="") const 476 PJSUA2_THROW(Error); 465 477 466 478 /** … … 475 487 * @return The value. 476 488 */ 477 string readString(const string &name="") const throw(Error); 489 string readString(const string &name="") const 490 PJSUA2_THROW(Error); 478 491 479 492 /** … … 489 502 */ 490 503 StringVector readStringVector(const string &name="") const 491 throw(Error);504 PJSUA2_THROW(Error); 492 505 493 506 /** … … 497 510 * @param obj The object to read. 498 511 */ 499 void readObject(PersistentObject &obj) const throw(Error); 512 void readObject(PersistentObject &obj) const 513 PJSUA2_THROW(Error); 500 514 501 515 /** … … 511 525 */ 512 526 ContainerNode readContainer(const string &name="") const 513 throw(Error);527 PJSUA2_THROW(Error); 514 528 515 529 /** … … 525 539 */ 526 540 ContainerNode readArray(const string &name="") const 527 throw(Error);541 PJSUA2_THROW(Error); 528 542 529 543 /** … … 534 548 */ 535 549 void writeNumber(const string &name, 536 float num) throw(Error);550 float num) PJSUA2_THROW(Error); 537 551 538 552 /** … … 543 557 */ 544 558 void writeInt(const string &name, 545 int num) throw(Error);559 int num) PJSUA2_THROW(Error); 546 560 547 561 /** … … 552 566 */ 553 567 void writeBool(const string &name, 554 bool value) throw(Error);568 bool value) PJSUA2_THROW(Error); 555 569 556 570 /** … … 561 575 */ 562 576 void writeString(const string &name, 563 const string &value) throw(Error);577 const string &value) PJSUA2_THROW(Error); 564 578 565 579 /** … … 571 585 void writeStringVector(const string &name, 572 586 const StringVector &arr) 573 throw(Error);587 PJSUA2_THROW(Error); 574 588 575 589 /** … … 579 593 * @param obj The object to be written 580 594 */ 581 void writeObject(const PersistentObject &obj) throw(Error); 595 void writeObject(const PersistentObject &obj) 596 PJSUA2_THROW(Error); 582 597 583 598 /** … … 590 605 */ 591 606 ContainerNode writeNewContainer(const string &name) 592 throw(Error);607 PJSUA2_THROW(Error); 593 608 594 609 /** … … 601 616 */ 602 617 ContainerNode writeNewArray(const string &name) 603 throw(Error);618 PJSUA2_THROW(Error); 604 619 605 620 public: … … 619 634 bool (*hasUnread)(const ContainerNode*); 620 635 string (*unreadName)(const ContainerNode*) 621 throw(Error);636 PJSUA2_THROW(Error); 622 637 float (*readNumber)(const ContainerNode*, 623 638 const string&) 624 throw(Error);639 PJSUA2_THROW(Error); 625 640 bool (*readBool)(const ContainerNode*, 626 641 const string&) 627 throw(Error);642 PJSUA2_THROW(Error); 628 643 string (*readString)(const ContainerNode*, 629 644 const string&) 630 throw(Error);645 PJSUA2_THROW(Error); 631 646 StringVector (*readStringVector)(const ContainerNode*, 632 647 const string&) 633 throw(Error);648 PJSUA2_THROW(Error); 634 649 ContainerNode (*readContainer)(const ContainerNode*, 635 650 const string &) 636 throw(Error);651 PJSUA2_THROW(Error); 637 652 ContainerNode (*readArray)(const ContainerNode*, 638 653 const string &) 639 throw(Error);654 PJSUA2_THROW(Error); 640 655 void (*writeNumber)(ContainerNode*, 641 656 const string &name, 642 657 float num) 643 throw(Error);658 PJSUA2_THROW(Error); 644 659 void (*writeBool)(ContainerNode*, 645 660 const string &name, 646 661 bool value) 647 throw(Error);662 PJSUA2_THROW(Error); 648 663 void (*writeString)(ContainerNode*, 649 664 const string &name, 650 665 const string &value) 651 throw(Error);666 PJSUA2_THROW(Error); 652 667 void (*writeStringVector)(ContainerNode*, 653 668 const string &name, 654 669 const StringVector &value) 655 throw(Error);670 PJSUA2_THROW(Error); 656 671 ContainerNode (*writeNewContainer)(ContainerNode*, 657 672 const string &name) 658 throw(Error);673 PJSUA2_THROW(Error); 659 674 ContainerNode (*writeNewArray)(ContainerNode*, 660 675 const string &name) 661 throw(Error);676 PJSUA2_THROW(Error); 662 677 }; 663 678
Note: See TracChangeset
for help on using the changeset viewer.