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 401 of file reader_struct.h.
typedef S lcf::Field< S >::struct_type |
Definition at line 402 of file reader_struct.h.
|
inline |
Definition at line 426 of file reader_struct.h.
|
pure virtual |
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 >.
Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().
|
inline |
Definition at line 417 of file reader_struct.h.
References lcf::Field< S >::present_if_default.
Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().
|
pure virtual |
Implemented in lcf::EmptyField< S >, lcf::CountField< S, T >, lcf::TypedField< S, T >, lcf::DatabaseVersionField< S, T >, and lcf::SizeField< S, T >.
Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().
|
pure virtual |
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 >.
|
pure virtual |
Implemented in lcf::EmptyField< S >, lcf::TypedField< S, T >, lcf::SizeField< S, T >, and lcf::CountField< S, T >.
Referenced by lcf::Struct< S >::WriteLcf().
|
pure virtual |
Implemented in lcf::EmptyField< S >, lcf::SizeField< S, T >, and lcf::TypedField< S, T >.
Referenced by lcf::Struct< S >::WriteXml().
int lcf::Field< S >::id |
Definition at line 405 of file reader_struct.h.
Referenced by lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().
bool lcf::Field< S >::is2k3 |
Definition at line 407 of file reader_struct.h.
Referenced by lcf::DatabaseVersionField< S, T >::IsDefault(), lcf::Struct< S >::LcfSize(), and lcf::Struct< S >::WriteLcf().
const char* const lcf::Field< S >::name |
Definition at line 404 of file reader_struct.h.
Referenced by lcf::TypedField< S, T >::WriteXml().
bool lcf::Field< S >::present_if_default |
Definition at line 406 of file reader_struct.h.
Referenced by lcf::Field< S >::isPresentIfDefault().