input_stream.hpp

Go to the documentation of this file.
00001 /* $Id: input_stream.hpp 26456 2008-05-08 12:02:24Z suokko $ */
00002 /*
00003    Copyright (C) 2003 - 2008 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 version 2
00008    or at your option any later version.
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY.
00011 
00012    See the COPYING file for more details.
00013 */
00014 
00015 #ifndef INPUT_STREAM_HPP_INCLUDED
00016 #define INPUT_STREAM_HPP_INCLUDED
00017 
00018 #include <deque>
00019 #include <string>
00020 
00021 class input_stream
00022 {
00023 public:
00024     input_stream(const std::string& path);
00025     ~input_stream();
00026 
00027     bool read_line(std::string& str);
00028     void stop();
00029 
00030 private:
00031     input_stream(const input_stream&);
00032     void operator=(const input_stream&);
00033 
00034     int fd_;
00035     std::string path_;
00036     std::deque<char> data_;
00037 };
00038 
00039 #endif

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs