liblcf
CountField< S, T > Struct Template Reference

#include <reader_struct.h>

+ Inheritance diagram for CountField< S, T >:
+ Collaboration diagram for CountField< S, T >:

Public Types

typedef S struct_type
 

Public Member Functions

void WriteLcf (const S &obj, LcfWriter &stream) const
 
int LcfSize (const S &obj, LcfWriter &) const
 
void ReadLcf (S &, LcfReader &stream, uint32_t length) 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) const
 
bool isPresentIfDefault (bool db_is2k3) const
 

Public Attributes

const std::vector< T > S::* ref
 
const char *const name
 
int id
 
bool present_if_default
 
bool is2k3
 

Detailed Description

template<class S, class T>
struct CountField< S, T >

CountField class template.

Definition at line 473 of file reader_struct.h.

Member Typedef Documentation

◆ struct_type

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

Definition at line 316 of file reader_struct.h.

Member Function Documentation

◆ BeginXml()

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

Implements Field< S >.

Definition at line 454 of file reader_struct.h.

◆ IsDefault()

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

Implements Field< S >.

Definition at line 460 of file reader_struct.h.

References SizeField< S, T >::ref.

◆ isPresentIfDefault()

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

Definition at line 331 of file reader_struct.h.

References Field< S >::present_if_default.

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

+ Here is the caller graph for this function:

◆ LcfSize()

template<class S , class T >
int CountField< S, T >::LcfSize ( const S &  obj,
LcfWriter  
) const
inlinevirtual

Reimplemented from SizeField< S, T >.

Definition at line 481 of file reader_struct.h.

References LcfReader::IntSize(), and SizeField< S, T >::ref.

+ Here is the call graph for this function:

◆ ParseXml()

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

Implements Field< S >.

Definition at line 457 of file reader_struct.h.

◆ ReadLcf()

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

Implements Field< S >.

Definition at line 439 of file reader_struct.h.

◆ WriteLcf()

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

Reimplemented from SizeField< S, T >.

Definition at line 477 of file reader_struct.h.

References SizeField< S, T >::ref.

◆ WriteXml()

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

Implements Field< S >.

Definition at line 451 of file reader_struct.h.

Member Data Documentation

◆ id

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

Definition at line 319 of file reader_struct.h.

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

◆ is2k3

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

Definition at line 321 of file reader_struct.h.

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

◆ name

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

Definition at line 318 of file reader_struct.h.

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

◆ present_if_default

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

Definition at line 320 of file reader_struct.h.

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

◆ ref

template<class S , class T >
const std::vector<T> S::* SizeField< S, T >::ref
inherited

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