liblcf
|
#include <reader_struct.h>
Public Types | |
typedef S | struct_type |
Public Member Functions | |
virtual void | ReadLcf (S &obj, LcfReader &stream, uint32_t length) const =0 |
virtual void | WriteLcf (const S &obj, LcfWriter &stream) const =0 |
virtual int | LcfSize (const S &obj, LcfWriter &stream) const =0 |
virtual bool | IsDefault (const S &obj, const S &ref) const =0 |
virtual void | WriteXml (const S &obj, XmlWriter &stream) const =0 |
virtual void | BeginXml (S &obj, XmlReader &stream) const =0 |
virtual void | ParseXml (S &obj, const std::string &data) const =0 |
bool | isPresentIfDefault (bool db_is2k3) const |
Field (int id, const char *name, bool present_if_default, bool is2k3) | |
Public Attributes | |
const char *const | name |
int | id |
bool | present_if_default |
bool | is2k3 |
Field abstract base class template.
Definition at line 315 of file reader_struct.h.
typedef S Field< S >::struct_type |
Definition at line 316 of file reader_struct.h.
|
inline |
Definition at line 340 of file reader_struct.h.
|
pure virtual |
Implemented in SizeField< S, T >, EmptyField< S >, and TypedField< S, T >.
|
pure virtual |
Implemented in SizeField< S, T >, EmptyField< S >, DatabaseVersionField< S, T >, and TypedField< S, T >.
Referenced by Struct< S >::LcfSize(), and Struct< S >::WriteLcf().
|
inline |
Definition at line 331 of file reader_struct.h.
References Field< S >::present_if_default.
Referenced by Struct< S >::LcfSize(), and Struct< S >::WriteLcf().
|
pure virtual |
Implemented in CountField< S, T >, SizeField< S, T >, EmptyField< S >, DatabaseVersionField< S, T >, and TypedField< S, T >.
Referenced by Struct< S >::LcfSize(), and Struct< S >::WriteLcf().
|
pure virtual |
Implemented in SizeField< S, T >, EmptyField< S >, and TypedField< S, T >.
|
pure virtual |
Implemented in SizeField< S, T >, EmptyField< S >, and TypedField< S, T >.
|
pure virtual |
Implemented in CountField< S, T >, SizeField< S, T >, EmptyField< S >, and TypedField< S, T >.
Referenced by Struct< S >::WriteLcf().
|
pure virtual |
Implemented in SizeField< S, T >, EmptyField< S >, and TypedField< S, T >.
Referenced by Struct< S >::WriteXml().
int Field< S >::id |
Definition at line 319 of file reader_struct.h.
Referenced by Struct< S >::LcfSize(), and Struct< S >::WriteLcf().
bool Field< S >::is2k3 |
Definition at line 321 of file reader_struct.h.
Referenced by Struct< S >::LcfSize(), and Struct< S >::WriteLcf().
const char* const Field< S >::name |
Definition at line 318 of file reader_struct.h.
Referenced by TypedField< S, T >::WriteXml().
bool Field< S >::present_if_default |
Definition at line 320 of file reader_struct.h.
Referenced by Field< S >::isPresentIfDefault().