liblcf
lcf::DatabaseVersionField< S, T > Struct Template Reference

#include <reader_struct.h>

+ Inheritance diagram for lcf::DatabaseVersionField< S, T >:
+ Collaboration diagram for lcf::DatabaseVersionField< S, T >:

Public Types

typedef S struct_type
 

Public Member Functions

int LcfSize (const S &obj, LcfWriter &stream) const
 
bool IsDefault (const S &a, const S &b, bool is2k3) const
 
void ReadLcf (S &obj, LcfReader &stream, uint32_t length) const
 
void WriteLcf (const S &obj, LcfWriter &stream) const
 
void WriteXml (const S &obj, XmlWriter &stream) const
 
void BeginXml (S &obj, XmlReader &stream) const
 
void ParseXml (S &obj, const std::string &data) const
 
bool isPresentIfDefault (bool db_is2k3) const
 

Public Attributes

T S::* ref
 
const char *const name
 
int id
 
bool present_if_default
 
bool is2k3
 

Detailed Description

template<typename S, typename T>
struct lcf::DatabaseVersionField< S, T >

DatabaseVersionField class template.

Definition at line 450 of file reader_struct.h.

Member Typedef Documentation

◆ struct_type

template<class S >
typedef S lcf::Field< S >::struct_type
inherited

Definition at line 382 of file reader_struct.h.

Member Function Documentation

◆ BeginXml()

template<class S , class T >
void lcf::TypedField< S, T >::BeginXml ( S &  obj,
XmlReader &  stream 
) const
inlinevirtualinherited

Implements lcf::Field< S >.

Definition at line 431 of file reader_struct.h.

References lcf::TypedField< S, T >::ref.

◆ IsDefault()

template<typename S , typename T >
bool lcf::DatabaseVersionField< S, T >::IsDefault ( const S &  a,
const S &  b,
bool  is2k3 
) const
inlinevirtual

Reimplemented from lcf::TypedField< S, T >.

Definition at line 461 of file reader_struct.h.

References lcf::Field< S >::is2k3, and lcf::TypedField< S, T >::IsDefault().

+ Here is the call graph for this function:

◆ isPresentIfDefault()

template<class S >
bool lcf::Field< S >::isPresentIfDefault ( bool  db_is2k3) const
inlineinherited

Definition at line 397 of file reader_struct.h.

References lcf::Field< S >::present_if_default.

Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().

+ Here is the caller graph for this function:

◆ LcfSize()

template<typename S , typename T >
int lcf::DatabaseVersionField< S, T >::LcfSize ( const S &  obj,
LcfWriter &  stream 
) const
inlinevirtual

Reimplemented from lcf::TypedField< S, T >.

Definition at line 454 of file reader_struct.h.

References lcf::TypedField< S, T >::LcfSize().

+ Here is the call graph for this function:

◆ ParseXml()

template<class S , class T >
void lcf::TypedField< S, T >::ParseXml ( S &  obj,
const std::string &  data 
) const
inlinevirtualinherited

Implements lcf::Field< S >.

Definition at line 434 of file reader_struct.h.

References lcf::TypedField< S, T >::ref.

◆ ReadLcf()

template<class S , class T >
void lcf::TypedField< S, T >::ReadLcf ( S &  obj,
LcfReader &  stream,
uint32_t  length 
) const
inlinevirtualinherited

Implements lcf::Field< S >.

Definition at line 417 of file reader_struct.h.

References lcf::TypedField< S, T >::ref.

◆ WriteLcf()

template<class S , class T >
void lcf::TypedField< S, T >::WriteLcf ( const S &  obj,
LcfWriter &  stream 
) const
inlinevirtualinherited

Implements lcf::Field< S >.

Definition at line 420 of file reader_struct.h.

References lcf::TypedField< S, T >::ref.

◆ WriteXml()

template<class S , class T >
void lcf::TypedField< S, T >::WriteXml ( const S &  obj,
XmlWriter &  stream 
) const
inlinevirtualinherited

Implements lcf::Field< S >.

Definition at line 426 of file reader_struct.h.

References lcf::Field< S >::name, and lcf::TypedField< S, T >::ref.

Member Data Documentation

◆ id

template<class S >
int lcf::Field< S >::id
inherited

Definition at line 385 of file reader_struct.h.

Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().

◆ is2k3

template<class S >
bool lcf::Field< S >::is2k3
inherited

◆ name

template<class S >
const char* const lcf::Field< S >::name
inherited

Definition at line 384 of file reader_struct.h.

Referenced by lcf::TypedField< S, T >::WriteXml().

◆ present_if_default

template<class S >
bool lcf::Field< S >::present_if_default
inherited

Definition at line 386 of file reader_struct.h.

Referenced by lcf::Field< S >::isPresentIfDefault().

◆ ref


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