The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
input_stream.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003 - 2016 by David White <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef INPUT_STREAM_HPP_INCLUDED
16 #define INPUT_STREAM_HPP_INCLUDED
17 
18 #include <deque>
19 #include <string>
20 
22 {
23 public:
25  ~input_stream();
26 
27  bool read_line(std::string& str);
28  void stop();
29 
30  const std::string& path() const
31  {
32  return path_;
33  }
34 
35 private:
36  input_stream(const input_stream&);
37  void operator=(const input_stream&);
38 
39  int fd_;
41  std::deque<char> data_;
42 };
43 
44 #endif
input_stream(const std::string &path)
std::string path_
std::deque< char > data_
GLsizei const char ** path
Definition: glew.h:4654
void operator=(const input_stream &)
const std::string & path() const
bool read_line(std::string &str)
GLsizei const GLcharARB ** string
Definition: glew.h:4503