The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
server
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
21
class
input_stream
22
{
23
public
:
24
input_stream
(
const
std::string
&
path
);
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_
;
40
std::string
path_
;
41
std::deque<char>
data_
;
42
};
43
44
#endif
input_stream::input_stream
input_stream(const std::string &path)
Definition:
input_stream.cpp:31
input_stream::path_
std::string path_
Definition:
input_stream.hpp:40
input_stream::data_
std::deque< char > data_
Definition:
input_stream.hpp:41
path
GLsizei const char ** path
Definition:
glew.h:4654
input_stream::fd_
int fd_
Definition:
input_stream.hpp:39
input_stream::operator=
void operator=(const input_stream &)
input_stream::stop
void stop()
Definition:
input_stream.cpp:63
input_stream::path
const std::string & path() const
Definition:
input_stream.hpp:30
input_stream::~input_stream
~input_stream()
Definition:
input_stream.cpp:56
input_stream
Definition:
input_stream.hpp:21
input_stream::read_line
bool read_line(std::string &str)
Definition:
input_stream.cpp:75
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8