| 2685 | string arg; // parsed argument |
| 2686 | |
| 2687 | bool Parser(in_string arguments) |
| 2688 | { |
| 2689 | stringstream ss(arguments); |
| 2690 | ss >> arg; |
| 2691 | do { // Run at least once with an empty arg string if there's no argument. |
| 2692 | _macro(this, arguments); |
| 2693 | ss >> arg; |
| 2694 | } while (!ss.fail()); |
| 2695 | arg.clear(); |
| 2696 | return true; |
| 2697 | } |
| 2698 | |
| 2699 | // The run function is nothing like the delegate. See how I use the bind function |
| 2700 | // below to hard-code the pointer parameter and the instance pointer 'this'. |