ReactOS 0.4.15-dev-7196-g0fe0b40
Layer Struct Reference

#include <xml2sdb.h>

Public Member Functions

 Layer ()
bool fromXml (XMLHandle dbNode)
bool toSdb (PDB pdb, Database &db)

Public Attributes

std::string Name
std::list< ShimRefShimRefs
std::list< FlagRefFlagRefs
std::list< DataDatas

Detailed Description

Definition at line 110 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ Layer()

Layer::Layer ( )

Definition at line 112 of file xml2sdb.h.

112: Tagid(0) { ; }
Definition: xml2sdb.h:118

Member Function Documentation

◆ fromXml()

bool Layer::fromXml ( XMLHandle  dbNode)

Definition at line 468 of file xml2sdb.cpp.

470 Name = ReadStringNode(dbNode, "NAME");
471 ReadGeneric(dbNode, ShimRefs, "SHIM_REF");
472 ReadGeneric(dbNode, FlagRefs, "FLAG_REF");
473 ReadGeneric(dbNode, Datas, "DATA");
474 return true;
std::list< FlagRef > FlagRefs
Definition: xml2sdb.h:120
std::list< Data > Datas
Definition: xml2sdb.h:121
std::list< ShimRef > ShimRefs
Definition: xml2sdb.h:119
void ReadGeneric(XMLHandle dbNode, std::list< T > &result, const char *nodeName)
Definition: xml2sdb.cpp:267
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

◆ toSdb()

bool Layer::toSdb ( PDB  pdb,
Database db 

Definition at line 477 of file xml2sdb.cpp.

480 db.WriteString(pdb, TAG_NAME, Name, true);
481 if (!WriteGeneric(pdb, ShimRefs, db))
482 return false;
483 if (!WriteGeneric(pdb, FlagRefs, db))
484 return false;
485 if (!WriteGeneric(pdb, Datas, db))
486 return false;
487 return !!db.EndWriteListTag(pdb, Tagid);
static PDB pdb
Definition: db.cpp:172
#define TAG_LAYER
Definition: db.cpp:90
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
TAGID BeginWriteListTag(PDB pdb, TAG tag)
Definition: xml2sdb.cpp:624
void WriteString(PDB pdb, TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:601
#define TAG_NAME
Definition: vfat.h:553
bool WriteGeneric(PDB pdb, std::list< T > &data, Database &db)
Definition: xml2sdb.cpp:281

Member Data Documentation

◆ Datas

std::list<Data> Layer::Datas

Definition at line 121 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ FlagRefs

std::list<FlagRef> Layer::FlagRefs

Definition at line 120 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Name

std::string Layer::Name

Definition at line 117 of file xml2sdb.h.

◆ ShimRefs

std::list<ShimRef> Layer::ShimRefs

Definition at line 119 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Tagid

TAGID Layer::Tagid

Definition at line 118 of file xml2sdb.h.

Referenced by toSdb().

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