ReactOS  0.4.13-dev-99-g7e18b6d
Flag Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

std::string Name
 
TAGID Tagid
 
QWORD KernelFlags
 
QWORD UserFlags
 
QWORD ProcessParamFlags
 

Detailed Description

Definition at line 79 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ Flag()

Flag::Flag ( )
inline

Definition at line 81 of file xml2sdb.h.

81 : Tagid(0), KernelFlags(0), UserFlags(0), ProcessParamFlags(0) { ; }
QWORD UserFlags
Definition: xml2sdb.h:89
TAGID Tagid
Definition: xml2sdb.h:87
QWORD KernelFlags
Definition: xml2sdb.h:88
QWORD ProcessParamFlags
Definition: xml2sdb.h:90

Member Function Documentation

◆ fromXml()

bool Flag::fromXml ( XMLHandle  dbNode)

Definition at line 376 of file xml2sdb.cpp.

377 {
378  Name = ReadStringNode(dbNode, "NAME");
379 
380  KernelFlags = ReadQWordNode(dbNode, "FLAG_MASK_KERNEL");
381  UserFlags = ReadQWordNode(dbNode, "FLAG_MASK_USER");
382  ProcessParamFlags = ReadQWordNode(dbNode, "FLAG_PROCESSPARAM");
383 
384  return !Name.empty();
385 }
QWORD UserFlags
Definition: xml2sdb.h:89
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79
QWORD KernelFlags
Definition: xml2sdb.h:88
QWORD ProcessParamFlags
Definition: xml2sdb.h:90
DWORD ReadQWordNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:91

◆ toSdb()

bool Flag::toSdb ( PDB  pdb,
Database db 
)

Definition at line 387 of file xml2sdb.cpp.

388 {
391  db.WriteString(pdb, TAG_NAME, Name, true);
392 
396 
397  return !!db.EndWriteListTag(pdb, Tagid);
398 }
#define TAG_NAME
Definition: vfat.h:547
static PDB pdb
Definition: db.cpp:170
TAGID BeginWriteListTag(PDB pdb, TAG tag)
Definition: xml2sdb.cpp:624
#define TAG_FLAG
Definition: sdbtagid.h:181
void WriteQWord(PDB pdb, TAG tag, QWORD value, bool always=false)
Definition: xml2sdb.cpp:618
QWORD UserFlags
Definition: xml2sdb.h:89
#define TAG_FLAG_PROCESSPARAM
Definition: sdbtagid.h:124
void WriteString(PDB pdb, TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:601
#define TAG_FLAG_MASK_KERNEL
Definition: sdbtagid.h:114
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
void InsertFlagTagid(const sdbstring &name, TAGID tagid)
Definition: xml2sdb.cpp:754
TAGID Tagid
Definition: xml2sdb.h:87
QWORD KernelFlags
Definition: xml2sdb.h:88
QWORD ProcessParamFlags
Definition: xml2sdb.h:90
#define TAG_FLAG_MASK_USER
Definition: sdbtagid.h:117

Member Data Documentation

◆ KernelFlags

QWORD Flag::KernelFlags

Definition at line 88 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Name

std::string Flag::Name

Definition at line 86 of file xml2sdb.h.

◆ ProcessParamFlags

QWORD Flag::ProcessParamFlags

Definition at line 90 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Tagid

TAGID Flag::Tagid

Definition at line 87 of file xml2sdb.h.

Referenced by toSdb().

◆ UserFlags

QWORD Flag::UserFlags

Definition at line 89 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().


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