server/input_stream.hpp

Go to the documentation of this file.
00001 /* $Id: input_stream.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2003 - 2012 by David White <dave@whitevine.net>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 #ifndef INPUT_STREAM_HPP_INCLUDED
00017 #define INPUT_STREAM_HPP_INCLUDED
00018 
00019 #include <deque>
00020 #include <string>
00021 
00022 class input_stream
00023 {
00024 public:
00025     input_stream(const std::string& path);
00026     ~input_stream();
00027 
00028     bool read_line(std::string& str);
00029     void stop();
00030 
00031 private:
00032     input_stream(const input_stream&);
00033     void operator=(const input_stream&);
00034 
00035     int fd_;
00036     std::string path_;
00037     std::deque<char> data_;
00038 };
00039 
00040 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:09 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs