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

#include <reader_struct.h>

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

Public Types

typedef S struct_type
 

Public Member Functions

void ReadLcf (S &obj, 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 &obj, XmlWriter &stream) const
 
void BeginXml (S &obj, XmlReader &stream) const
 
void ParseXml (S &obj, const std::string &data) const
 
bool IsDefault (const S &a, const S &b) const
 
 TypedField (T S::*ref, int id, const char *name)
 

Public Attributes

T S::* ref
 
int id
 
const char *const name
 

Detailed Description

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

TypedField class template.

Definition at line 384 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 >
TypedField< S, T >::TypedField ( T S::*  ref,
int  id,
const char *  name 
)
inline

Definition at line 411 of file reader_struct.h.

Member Function Documentation

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

Implements Field< S >.

Definition at line 401 of file reader_struct.h.

References FieldReader< S, T >::BeginXml(), and TypedField< S, T >::ref.

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 407 of file reader_struct.h.

References Compare_Traits< T >::IsEqual(), and TypedField< S, T >::ref.

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 393 of file reader_struct.h.

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

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 404 of file reader_struct.h.

References FieldReader< S, T >::ParseXml(), and TypedField< S, T >::ref.

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 387 of file reader_struct.h.

References FieldReader< S, T >::ReadLcf(), and TypedField< S, T >::ref.

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 390 of file reader_struct.h.

References TypedField< S, T >::ref, and FieldReader< S, T >::WriteLcf().

+ Here is the call graph for this function:

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

Implements Field< S >.

Definition at line 396 of file reader_struct.h.

References XmlWriter::BeginElement(), XmlWriter::EndElement(), Field< S >::name, TypedField< S, T >::ref, and FieldReader< S, T >::WriteXml().

+ Here is the call graph for this function:

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().


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