liblcf
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
LMU_Reader Namespace Reference

Classes

struct  ChunkEvent
 
struct  ChunkEventPage
 
struct  ChunkEventPageCondition
 
struct  ChunkMap
 
struct  ChunkMoveRoute
 

Functions

std::auto_ptr< RPG::MapLoad (const std::string &filename, const std::string &encoding)
 
bool Save (const std::string &filename, const RPG::Map &map, const std::string &encoding)
 
bool SaveXml (const std::string &filename, const RPG::Map &map)
 
std::auto_ptr< RPG::MapLoadXml (const std::string &filename)
 

Detailed Description

LMU Reader namespace.

Function Documentation

std::auto_ptr< RPG::Map > LMU_Reader::Load ( const std::string &  filename,
const std::string &  encoding 
)

Loads map.

Definition at line 13 of file lmu_reader.cpp.

References LcfReader::IsOk(), LcfReader::ReadInt(), Struct< S >::ReadLcf(), LcfReader::ReadString(), and LcfReader::SetError().

+ Here is the call graph for this function:

std::auto_ptr< RPG::Map > LMU_Reader::LoadXml ( const std::string &  filename)

Loads map as XML.

Definition at line 60 of file lmu_reader.cpp.

References XmlReader::IsOk(), XmlReader::Parse(), LcfReader::SetError(), and XmlReader::SetHandler().

+ Here is the call graph for this function:

bool LMU_Reader::Save ( const std::string &  filename,
const RPG::Map map,
const std::string &  encoding 
)

Saves map.

Definition at line 34 of file lmu_reader.cpp.

References LcfWriter::IsOk(), LcfReader::SetError(), LcfWriter::Write(), LcfWriter::WriteInt(), and Struct< S >::WriteLcf().

+ Here is the call graph for this function:

bool LMU_Reader::SaveXml ( const std::string &  filename,
const RPG::Map map 
)

Saves map as XML.

Definition at line 48 of file lmu_reader.cpp.

References XmlWriter::BeginElement(), XmlWriter::EndElement(), XmlWriter::IsOk(), LcfReader::SetError(), and Struct< S >::WriteXml().

+ Here is the call graph for this function: