The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
input_stream Class Reference

#include <input_stream.hpp>

Public Member Functions

 input_stream (const std::string &path)
 
 ~input_stream ()
 
bool read_line (std::string &str)
 
void stop ()
 
const std::stringpath () const
 

Private Member Functions

 input_stream (const input_stream &)
 
void operator= (const input_stream &)
 

Private Attributes

int fd_
 
std::string path_
 
std::deque< char > data_
 

Detailed Description

Definition at line 21 of file input_stream.hpp.

Constructor & Destructor Documentation

input_stream::input_stream ( const std::string path)

Definition at line 31 of file input_stream.cpp.

References fd_.

input_stream::~input_stream ( )

Definition at line 56 of file input_stream.cpp.

References stop().

input_stream::input_stream ( const input_stream )
private

Member Function Documentation

void input_stream::operator= ( const input_stream )
private
const std::string& input_stream::path ( ) const
inline

Definition at line 30 of file input_stream.hpp.

References path_.

bool input_stream::read_line ( std::string str)

Definition at line 75 of file input_stream.cpp.

References block(), data_, fd_, gui2::event::find(), itor, and read().

void input_stream::stop ( )

Definition at line 63 of file input_stream.cpp.

References fd_, and path_.

Referenced by ~input_stream().

Member Data Documentation

std::deque<char> input_stream::data_
private

Definition at line 41 of file input_stream.hpp.

Referenced by read_line().

int input_stream::fd_
private

Definition at line 39 of file input_stream.hpp.

Referenced by input_stream(), read_line(), and stop().

std::string input_stream::path_
private

Definition at line 40 of file input_stream.hpp.

Referenced by path(), and stop().


The documentation for this class was generated from the following files: