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, bool is2k3) 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 367 of file reader_struct.h.
Definition at line 368 of file reader_struct.h.
Definition at line 392 of file reader_struct.h.
Implemented in lcf::EmptyField< S >, lcf::SizeField< S, T >, and lcf::TypedField< S, T >.
|
pure virtual |
Implemented in lcf::EmptyField< S >, lcf::DatabaseVersionField< S, T >, lcf::TypedField< S, T >, and lcf::SizeField< S, T >.
Definition at line 383 of file reader_struct.h.
References lcf::Field< S >::present_if_default.
Implemented in lcf::EmptyField< S >, lcf::SizeField< S, T >, and lcf::TypedField< S, T >.
|
pure virtual |
Implemented in lcf::EmptyField< S >, lcf::SizeField< S, T >, and lcf::TypedField< S, T >.
Implemented in lcf::EmptyField< S >, lcf::TypedField< S, T >, lcf::SizeField< S, T >, and lcf::CountField< S, T >.
Implemented in lcf::EmptyField< S >, lcf::SizeField< S, T >, and lcf::TypedField< S, T >.
int lcf::Field< S >::id |
Definition at line 371 of file reader_struct.h.
bool lcf::Field< S >::is2k3 |
Definition at line 373 of file reader_struct.h.
Referenced by lcf::DatabaseVersionField< S, T >::IsDefault().
Definition at line 370 of file reader_struct.h.
Referenced by lcf::TypedField< S, T >::WriteXml().
bool lcf::Field< S >::present_if_default |
Definition at line 372 of file reader_struct.h.
Referenced by lcf::Field< S >::isPresentIfDefault().