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

Public Member Functions

 lua_filestream (const std::string &fname)
 

Static Public Member Functions

static const char * lua_read_data (lua_State *, void *data, size_t *size)
 
static int lua_loadfile (lua_State *L, const std::string &fname, const std::string &relativename)
 

Private Attributes

char buff_ [LUAL_BUFFERSIZE]
 
boost::scoped_ptr< std::istream > pistream_
 

Detailed Description

Definition at line 151 of file lua_fileops.cpp.

Constructor & Destructor Documentation

lua_fileops::lua_filestream::lua_filestream ( const std::string fname)
inline

Definition at line 154 of file lua_fileops.cpp.

Member Function Documentation

static int lua_fileops::lua_filestream::lua_loadfile ( lua_State L,
const std::string fname,
const std::string relativename 
)
inlinestatic

Definition at line 179 of file lua_fileops.cpp.

References LOG_LUA, lua_load(), and lua_read_data().

Referenced by lua_fileops::load_file().

static const char* lua_fileops::lua_filestream::lua_read_data ( lua_State ,
void data,
size_t *  size 
)
inlinestatic

Definition at line 160 of file lua_fileops.cpp.

References buff_, ERR_LUA, LUAL_BUFFERSIZE, and pistream_.

Referenced by lua_loadfile().

Member Data Documentation

char lua_fileops::lua_filestream::buff_[LUAL_BUFFERSIZE]
private

Definition at line 188 of file lua_fileops.cpp.

Referenced by lua_read_data().

boost::scoped_ptr<std::istream> lua_fileops::lua_filestream::pistream_
private

Definition at line 189 of file lua_fileops.cpp.

Referenced by lua_read_data().


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