ReactOS  0.4.15-dev-1039-gb9754fa
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.

324 {
325  Name = ReadStringNode(dbNode, "NAME");
326  return !Name.empty();
327 }
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.

330 {
332  db.WriteString(pdb, TAG_NAME, Name, true);
334  if (!FlagTagid)
337  return !!db.EndWriteListTag(pdb, tagid);
338 }
#define TAG_NAME
Definition: vfat.h:547
static PDB pdb
Definition: db.cpp:170
TAGID BeginWriteListTag(PDB pdb, TAG tag)
Definition: xml2sdb.cpp:624
BOOL WINAPI SdbWriteDWORDTag(PDB pdb, TAG tag, DWORD data)
Definition: sdbwrite.c:182
void WriteString(PDB pdb, TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:601
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
Definition: sdbtagid.h:94
TAGID FlagTagid
Definition: xml2sdb.h:62
TAGID FindFlagTagid(const sdbstring &name)
Definition: xml2sdb.cpp:759
#define TAG_FLAG_REF
Definition: sdbtagid.h:183

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: