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 436 of file reader_struct.h.

Member Typedef Documentation

◆ struct_type

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

Definition at line 368 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 417 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

Implements lcf::Field< S >.

Definition at line 447 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 383 of file reader_struct.h.

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

◆ 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 440 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 420 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 403 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 406 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 412 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 371 of file reader_struct.h.

◆ is2k3

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

Definition at line 373 of file reader_struct.h.

Referenced by lcf::DatabaseVersionField< S, T >::IsDefault().

◆ name

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

Definition at line 370 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 372 of file reader_struct.h.

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

◆ ref


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