| 647 | } |
| 648 | |
| 649 | Properties* Properties::getNextNamespace() |
| 650 | { |
| 651 | if (_namespacesItr == _namespaces.end()) |
| 652 | { |
| 653 | // Restart from the beginning |
| 654 | _namespacesItr = _namespaces.begin(); |
| 655 | } |
| 656 | else |
| 657 | { |
| 658 | ++_namespacesItr; |
| 659 | } |
| 660 | |
| 661 | if (_namespacesItr != _namespaces.end()) |
| 662 | { |
| 663 | Properties* ns = *_namespacesItr; |
| 664 | return ns; |
| 665 | } |
| 666 | |
| 667 | return nullptr; |
| 668 | } |
| 669 | |
| 670 | void Properties::rewind() |
| 671 | { |