ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/dclient/src/backend/communicator/command_parser/query.h
Revision: 1.1
Committed: Sun Oct 17 08:15:04 2010 UTC (16 years ago) by sf-pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
initial import

File Contents

# Content
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 }