liblcf
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SizeField< S, T > Struct Template Reference

#include <reader_struct.h>

+ Inheritance diagram for SizeField< S, T >:
+ Collaboration diagram for 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) const
 
 SizeField (const std::vector< T > S::*ref, int id)
 

Public Attributes

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

Detailed Description

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

SizeField class template.

Definition at line 419 of file reader_struct.h.

Member Typedef Documentation

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

Definition at line 301 of file reader_struct.h.

Constructor & Destructor Documentation

template<class S , class T >
SizeField< S, T >::SizeField ( const std::vector< T > S::*  ref,
int  id 
)
inline

Definition at line 447 of file reader_struct.h.

Member Function Documentation

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

Implements Field< S >.

Definition at line 437 of file reader_struct.h.

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

Implements Field< S >.

Definition at line 443 of file reader_struct.h.

References SizeField< S, T >::ref.

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

Implements Field< S >.

Definition at line 430 of file reader_struct.h.

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

Referenced by SizeField< S, T >::WriteLcf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Implements Field< S >.

Definition at line 440 of file reader_struct.h.

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

Implements Field< S >.

Definition at line 422 of file reader_struct.h.

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

Implements Field< S >.

Definition at line 426 of file reader_struct.h.

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

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 434 of file reader_struct.h.

Member Data Documentation

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

Definition at line 303 of file reader_struct.h.

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

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

Definition at line 304 of file reader_struct.h.

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

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

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