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

Classes

struct  ChunkEncounter
 
struct  ChunkMapInfo
 
struct  ChunkStart
 

Functions

bool Load (const std::string &filename, const std::string &encoding)
 
bool Save (const std::string &filename, const std::string &encoding)
 
bool SaveXml (const std::string &filename)
 
bool LoadXml (const std::string &filename)
 

Detailed Description

LMT Reader namespace.

Function Documentation

bool LMT_Reader::Load ( const std::string &  filename,
const std::string &  encoding 
)

Loads Map Tree.

Definition at line 13 of file lmt_reader.cpp.

References LcfReader::IsOk(), LcfReader::ReadInt(), LcfReader::ReadString(), LcfReader::SetError(), and Data::treemap.

+ Here is the call graph for this function:

bool LMT_Reader::LoadXml ( const std::string &  filename)

Loads Map Tree as XML.

Definition at line 57 of file lmt_reader.cpp.

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

+ Here is the call graph for this function:

bool LMT_Reader::Save ( const std::string &  filename,
const std::string &  encoding 
)

Saves Map Tree.

Definition at line 32 of file lmt_reader.cpp.

References LcfWriter::IsOk(), LcfReader::SetError(), Data::treemap, LcfWriter::Write(), and LcfWriter::WriteInt().

+ Here is the call graph for this function:

bool LMT_Reader::SaveXml ( const std::string &  filename)

Saves Map Tree as XML.

Definition at line 45 of file lmt_reader.cpp.

References XmlWriter::BeginElement(), XmlWriter::EndElement(), XmlWriter::IsOk(), LcfReader::SetError(), and Data::treemap.

+ Here is the call graph for this function: