liblcf
lcf Namespace Reference

Namespaces

 ReaderUtil
 
 rpg
 

Classes

struct  RawStruct< rpg::Equipment >
 
class  EquipmentXmlHandler
 
struct  RawStruct< rpg::EventCommand >
 
struct  RawStruct< std::vector< rpg::EventCommand > >
 
class  EventCommandXmlHandler
 
class  EventCommandVectorXmlHandler
 
struct  RawStruct< rpg::Parameters >
 
class  ParametersXmlHandler
 
struct  RawStruct< rpg::Rect >
 
class  RectXmlHandler
 
struct  RawStruct< rpg::TreeMap >
 
class  TreeMapXmlHandler
 
struct  RawStruct< rpg::MoveCommand >
 
struct  RawStruct< std::vector< rpg::MoveCommand > >
 
class  MoveCommandXmlHandler
 
class  MoveCommandVectorXmlHandler
 
class  FlagsXmlHandler
 
class  Struct
 
struct  Category
 
struct  TypeCategory
 
struct  TypeCategory< rpg::TroopPageCondition::Flags >
 
struct  TypeCategory< rpg::EventPageCondition::Flags >
 
struct  TypeCategory< rpg::Terrain::Flags >
 
struct  TypeCategory< rpg::SavePicture::Flags >
 
struct  TypeCategory< rpg::Equipment >
 
struct  TypeCategory< rpg::EventCommand >
 
struct  TypeCategory< rpg::MoveCommand >
 
struct  TypeCategory< rpg::Parameters >
 
struct  TypeCategory< rpg::TreeMap >
 
struct  TypeCategory< rpg::Rect >
 
struct  TypeCategory< int8_t >
 
struct  TypeCategory< uint8_t >
 
struct  TypeCategory< int16_t >
 
struct  TypeCategory< uint32_t >
 
struct  TypeCategory< int32_t >
 
struct  TypeCategory< bool >
 
struct  TypeCategory< double >
 
struct  TypeCategory< std::string >
 
struct  TypeCategory< DBString >
 
struct  TypeCategory< DBBitArray >
 
struct  TypeCategory< std::vector< T > >
 
struct  TypeReader
 
struct  TypeReader< T, Category::Void >
 
struct  RawStruct
 
struct  TypeReader< T, Category::RawStruct >
 
struct  LcfSizeT
 
struct  LcfSizeT< bool >
 
struct  Primitive
 
struct  Primitive< std::vector< T > >
 
struct  Primitive< int32_t >
 
struct  Primitive< std::string >
 
struct  Primitive< DBString >
 
struct  Primitive< DBBitArray >
 
struct  TypeReader< T, Category::Primitive >
 
struct  Field
 
struct  TypedField
 
struct  DatabaseVersionField
 
struct  EmptyField
 
struct  SizeField
 
struct  CountField
 
struct  IDChecker
 
struct  IDReaderT
 
struct  IDReaderT< S, true >
 
struct  IDReaderT< S, false >
 
struct  StringComparator
 
struct  TypeReader< T, Category::Struct >
 
struct  TypeReader< std::vector< T >, Category::Struct >
 
class  Flags
 
struct  TypeReader< T, Category::Flags >
 
class  WrapperXmlHandler
 
class  RootXmlHandler
 
struct  StructDefault
 
struct  StructDefault< rpg::Actor >
 
class  StructXmlHandler
 
class  StructFieldXmlHandler
 
class  StructVectorXmlHandler
 

Functions

static ptrdiff_t HeaderSize (size_t align)
 
static size_t AllocSize (size_t size, size_t align)
 
static void * Adjust (void *p, ptrdiff_t off)
 
static std::string filterUtf8Compatible (std::string enc)
 
template<typename T >
std::enable_if< std::is_same< T, rpg::Save >::value||std::is_same< T, rpg::Database >::value >::type conditional_zero_writer (LcfWriter &)
 
template<typename T >
std::enable_if<!std::is_same< T, rpg::Save >::value &&!std::is_same< T, rpg::Database >::value >::type conditional_zero_writer (LcfWriter &stream)
 
template<>
void XmlReader::Read< std::string > (std::string &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< int32_t > > (std::vector< int32_t > &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< bool > > (std::vector< bool > &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< uint8_t > > (std::vector< uint8_t > &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< int16_t > > (std::vector< int16_t > &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< uint32_t > > (std::vector< uint32_t > &val, const std::string &data)
 
template<>
void XmlReader::Read< std::vector< double > > (std::vector< double > &val, const std::string &data)
 
EngineVersion GetEngineVersion (const lcf::rpg::Database &db)
 
template<>
void XmlWriter::Write< std::string > (const std::string &val)
 
template<>
void XmlWriter::Write< std::vector< int32_t > > (const std::vector< int32_t > &val)
 
template<>
void XmlWriter::Write< std::vector< bool > > (const std::vector< bool > &val)
 
template<>
void XmlWriter::Write< std::vector< uint8_t > > (const std::vector< uint8_t > &val)
 
template<>
void XmlWriter::Write< std::vector< int16_t > > (const std::vector< int16_t > &val)
 
template<>
void XmlWriter::Write< std::vector< uint32_t > > (const std::vector< uint32_t > &val)
 
template<>
void XmlWriter::Write< std::vector< double > > (const std::vector< double > &val)
 
template void XmlWriter::WriteNode< std::string > (const std::string &name, const std::string &val)
 
template void XmlWriter::WriteNode< std::vector< bool > > (const std::string &name, const std::vector< bool > &val)
 
template void XmlWriter::WriteNode< std::vector< uint8_t > > (const std::string &name, const std::vector< uint8_t > &val)
 
template void XmlWriter::WriteNode< std::vector< int16_t > > (const std::string &name, const std::vector< int16_t > &val)
 
template void XmlWriter::WriteNode< std::vector< uint32_t > > (const std::string &name, const std::vector< uint32_t > &val)
 
template void XmlWriter::WriteNode< std::vector< int32_t > > (const std::string &name, const std::vector< int32_t > &val)
 

Variables

static EmptyField< rpg::Database > static_commoneventD2 (LDB_Reader::ChunkDatabase::commoneventD2, "commoneventD2", 1, 1)
 
static EmptyField< rpg::Database > static_commoneventD3 (LDB_Reader::ChunkDatabase::commoneventD3, "commoneventD3", 1, 1)
 
static EmptyField< rpg::Database > static_classD1 (LDB_Reader::ChunkDatabase::classD1, "classD1", 1, 1)
 

Function Documentation

◆ Adjust()

static void* lcf::Adjust ( void *  p,
ptrdiff_t  off 
)
static

Definition at line 26 of file dbarray.cpp.

◆ AllocSize()

static size_t lcf::AllocSize ( size_t  size,
size_t  align 
)
static

Definition at line 22 of file dbarray.cpp.

References HeaderSize().

+ Here is the call graph for this function:

◆ conditional_zero_writer() [1/2]

template<typename T >
std::enable_if<std::is_same<T, rpg::Save>::value || std::is_same<T, rpg::Database>::value>::type lcf::conditional_zero_writer ( LcfWriter &  )

Definition at line 95 of file reader_struct_impl.h.

◆ conditional_zero_writer() [2/2]

template<typename T >
std::enable_if<!std::is_same<T, rpg::Save>::value && !std::is_same<T, rpg::Database>::value>::type lcf::conditional_zero_writer ( LcfWriter &  stream)

Definition at line 102 of file reader_struct_impl.h.

◆ filterUtf8Compatible()

static std::string lcf::filterUtf8Compatible ( std::string  enc)
static

Definition at line 38 of file encoder.cpp.

◆ GetEngineVersion()

EngineVersion lcf::GetEngineVersion ( const lcf::rpg::Database &  db)

Definition at line 6 of file saveopt.cpp.

◆ HeaderSize()

static ptrdiff_t lcf::HeaderSize ( size_t  align)
static

Definition at line 18 of file dbarray.cpp.

Referenced by AllocSize().

+ Here is the caller graph for this function:

◆ XmlReader::Read< std::string >()

template<>
void lcf::XmlReader::Read< std::string > ( std::string &  val,
const std::string &  data 
)

Definition at line 158 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< bool > >()

template<>
void lcf::XmlReader::Read< std::vector< bool > > ( std::vector< bool > &  val,
const std::string &  data 
)

Definition at line 230 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< double > >()

template<>
void lcf::XmlReader::Read< std::vector< double > > ( std::vector< double > &  val,
const std::string &  data 
)

Definition at line 250 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< int16_t > >()

template<>
void lcf::XmlReader::Read< std::vector< int16_t > > ( std::vector< int16_t > &  val,
const std::string &  data 
)

Definition at line 240 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< int32_t > >()

template<>
void lcf::XmlReader::Read< std::vector< int32_t > > ( std::vector< int32_t > &  val,
const std::string &  data 
)

Definition at line 225 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< uint32_t > >()

template<>
void lcf::XmlReader::Read< std::vector< uint32_t > > ( std::vector< uint32_t > &  val,
const std::string &  data 
)

Definition at line 245 of file reader_xml.cpp.

◆ XmlReader::Read< std::vector< uint8_t > >()

template<>
void lcf::XmlReader::Read< std::vector< uint8_t > > ( std::vector< uint8_t > &  val,
const std::string &  data 
)

Definition at line 235 of file reader_xml.cpp.

◆ XmlWriter::Write< std::string >()

template<>
void lcf::XmlWriter::Write< std::string > ( const std::string &  val)

Definition at line 109 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< bool > >()

template<>
void lcf::XmlWriter::Write< std::vector< bool > > ( const std::vector< bool > &  val)

Definition at line 124 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< double > >()

template<>
void lcf::XmlWriter::Write< std::vector< double > > ( const std::vector< double > &  val)

Definition at line 144 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< int16_t > >()

template<>
void lcf::XmlWriter::Write< std::vector< int16_t > > ( const std::vector< int16_t > &  val)

Definition at line 134 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< int32_t > >()

template<>
void lcf::XmlWriter::Write< std::vector< int32_t > > ( const std::vector< int32_t > &  val)

Definition at line 119 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< uint32_t > >()

template<>
void lcf::XmlWriter::Write< std::vector< uint32_t > > ( const std::vector< uint32_t > &  val)

Definition at line 139 of file writer_xml.cpp.

◆ XmlWriter::Write< std::vector< uint8_t > >()

template<>
void lcf::XmlWriter::Write< std::vector< uint8_t > > ( const std::vector< uint8_t > &  val)

Definition at line 129 of file writer_xml.cpp.

◆ XmlWriter::WriteNode< std::string >()

template void lcf::XmlWriter::WriteNode< std::string > ( const std::string &  name,
const std::string &  val 
)

◆ XmlWriter::WriteNode< std::vector< bool > >()

template void lcf::XmlWriter::WriteNode< std::vector< bool > > ( const std::string &  name,
const std::vector< bool > &  val 
)

◆ XmlWriter::WriteNode< std::vector< int16_t > >()

template void lcf::XmlWriter::WriteNode< std::vector< int16_t > > ( const std::string &  name,
const std::vector< int16_t > &  val 
)

◆ XmlWriter::WriteNode< std::vector< int32_t > >()

template void lcf::XmlWriter::WriteNode< std::vector< int32_t > > ( const std::string &  name,
const std::vector< int32_t > &  val 
)

◆ XmlWriter::WriteNode< std::vector< uint32_t > >()

template void lcf::XmlWriter::WriteNode< std::vector< uint32_t > > ( const std::string &  name,
const std::vector< uint32_t > &  val 
)

◆ XmlWriter::WriteNode< std::vector< uint8_t > >()

template void lcf::XmlWriter::WriteNode< std::vector< uint8_t > > ( const std::string &  name,
const std::vector< uint8_t > &  val 
)

Variable Documentation

◆ static_classD1

EmptyField<rpg::Database> lcf::static_classD1(LDB_Reader::ChunkDatabase::classD1, "classD1", 1, 1) ( LDB_Reader::ChunkDatabase::classD1  ,
"classD1"  ,
,
 
)
static

◆ static_commoneventD2

EmptyField<rpg::Database> lcf::static_commoneventD2(LDB_Reader::ChunkDatabase::commoneventD2, "commoneventD2", 1, 1) ( LDB_Reader::ChunkDatabase::commoneventD2  ,
"commoneventD2"  ,
,
 
)
static

◆ static_commoneventD3

EmptyField<rpg::Database> lcf::static_commoneventD3(LDB_Reader::ChunkDatabase::commoneventD3, "commoneventD3", 1, 1) ( LDB_Reader::ChunkDatabase::commoneventD3  ,
"commoneventD3"  ,
,
 
)
static