liblcf
Loading...
Searching...
No Matches
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 ref.

◆ IsDefault()

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

Implements lcf::Field< S >.

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 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

Implements lcf::Field< S >.

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 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 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 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 ref.

Member Data Documentation

◆ id

◆ is2k3

◆ name

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

◆ present_if_default

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

◆ ref

template<class S, class T>
T S::* lcf::TypedField< S, T >::ref
inherited

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