liblcf
Loading...
Searching...
No Matches
lcf::SizeField< S, T > Struct Template Reference

#include <reader_struct.h>

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

Public Types

typedef S struct_type
 

Public Member Functions

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

Public Attributes

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

Detailed Description

template<class S, class T>
struct lcf::SizeField< S, T >

SizeField class template.

Definition at line 488 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.

Constructor & Destructor Documentation

◆ SizeField()

template<class S , class T >
lcf::SizeField< S, T >::SizeField ( const T S::* ref,
int id,
bool present_if_default,
bool is2k3 )
inline

Definition at line 516 of file reader_struct.h.

Member Function Documentation

◆ BeginXml()

template<class S , class T >
void lcf::SizeField< S, T >::BeginXml ( S & ,
XmlReader &  ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 506 of file reader_struct.h.

◆ IsDefault()

template<class S , class T >
bool lcf::SizeField< S, T >::IsDefault ( const S & a,
const S & b,
bool  ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 512 of file reader_struct.h.

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

◆ 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<class S , class T >
int lcf::SizeField< S, T >::LcfSize ( const S & obj,
LcfWriter & stream ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 499 of file reader_struct.h.

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

◆ ParseXml()

template<class S , class T >
void lcf::SizeField< S, T >::ParseXml ( S & ,
const std::string &  ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 509 of file reader_struct.h.

◆ ReadLcf()

template<class S , class T >
void lcf::SizeField< S, T >::ReadLcf ( S & ,
LcfReader & stream,
uint32_t length ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 491 of file reader_struct.h.

◆ WriteLcf()

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

Implements lcf::Field< S >.

Definition at line 495 of file reader_struct.h.

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

◆ WriteXml()

template<class S , class T >
void lcf::SizeField< S, T >::WriteXml ( const S & ,
XmlWriter &  ) const
inlinevirtual

Implements lcf::Field< S >.

Definition at line 503 of file reader_struct.h.

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: