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

Classes

struct  ChunkActor
 
struct  ChunkAnimation
 
struct  ChunkAnimationCellData
 
struct  ChunkAnimationFrame
 
struct  ChunkAnimationTiming
 
struct  ChunkAttribute
 
struct  ChunkBattleCommand
 
struct  ChunkBattleCommands
 
struct  ChunkBattlerAnimation
 
struct  ChunkBattlerAnimationData
 
struct  ChunkBattlerAnimationExtension
 
struct  ChunkChipset
 
struct  ChunkClass
 
struct  ChunkCommonEvent
 
struct  ChunkDatabase
 
struct  ChunkEnemy
 
struct  ChunkEnemyAction
 
struct  ChunkItem
 
struct  ChunkItemAnimation
 
struct  ChunkLearning
 
struct  ChunkMusic
 
struct  ChunkSkill
 
struct  ChunkSound
 
struct  ChunkState
 
struct  ChunkSwitch
 
struct  ChunkSystem
 
struct  ChunkTerms
 
struct  ChunkTerrain
 
struct  ChunkTestBattler
 
struct  ChunkTroop
 
struct  ChunkTroopMember
 
struct  ChunkTroopPage
 
struct  ChunkTroopPageCondition
 
struct  ChunkVariable
 

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

LDB Reader namespace.

Function Documentation

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

Loads Database.

Definition at line 13 of file ldb_reader.cpp.

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

Referenced by ReaderUtil::DetectEncoding().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Load Database as XML.

Definition at line 65 of file ldb_reader.cpp.

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

+ Here is the call graph for this function:

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

Saves Database.

Definition at line 40 of file ldb_reader.cpp.

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

Referenced by LSD_Reader::Load(), LSD_Reader::LoadXml(), and Struct< S >::WriteLcf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Saves Database as XML.

Definition at line 53 of file ldb_reader.cpp.

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

+ Here is the call graph for this function: