ReactOS 0.4.15-dev-8222-g9164419
FlagRef Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

std::string Name
TAGID FlagTagid

Detailed Description

Definition at line 54 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ FlagRef()

FlagRef::FlagRef ( )

Definition at line 56 of file xml2sdb.h.

56: FlagTagid(0) { ; }
TAGID FlagTagid
Definition: xml2sdb.h:62

Member Function Documentation

◆ fromXml()

bool FlagRef::fromXml ( XMLHandle  dbNode)

Definition at line 323 of file xml2sdb.cpp.

325 Name = ReadStringNode(dbNode, "NAME");
326 return !Name.empty();
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

◆ toSdb()

bool FlagRef::toSdb ( PDB  pdb,
Database db 

Definition at line 329 of file xml2sdb.cpp.

332 db.WriteString(pdb, TAG_NAME, Name, true);
334 if (!FlagTagid)
337 return !!db.EndWriteListTag(pdb, tagid);
static PDB pdb
Definition: db.cpp:172
#define TAG_FLAG_REF
Definition: sdbtagid.h:183
Definition: sdbtagid.h:94
BOOL WINAPI SdbWriteDWORDTag(PDB pdb, TAG tag, DWORD data)
Definition: sdbwrite.c:182
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
TAGID FindFlagTagid(const sdbstring &name)
Definition: xml2sdb.cpp:759
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

Member Data Documentation

◆ FlagTagid

TAGID FlagRef::FlagTagid

Definition at line 62 of file xml2sdb.h.

Referenced by toSdb().

◆ Name

std::string FlagRef::Name

Definition at line 61 of file xml2sdb.h.

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