| Revision: | 1.1 |
| Committed: | Sun Oct 17 08:15:04 2010 UTC (15 years, 11 months ago) by sf-pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Log Message: | initial import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | sf-pippijn | 1.1 | void |
| 2 | command_parser::on_query (std::istream &args) | ||
| 3 | { | ||
| 4 | int flags; | ||
| 5 | args >> flags; | ||
| 6 | |||
| 7 | std::string prompt; | ||
| 8 | args.ignore (1); // space between flags and message | ||
| 9 | prompt.reserve (args.tellg ()); | ||
| 10 | std::copy (std::istreambuf_iterator<char> (args), std::istreambuf_iterator<char> (), std::back_inserter (prompt)); | ||
| 11 | |||
| 12 | emit query (flags, prompt); | ||
| 13 | } |