ReactOS 0.4.15-dev-5669-g09dde2c
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) { ; }
TAGID Tagid
Definition: xml2sdb.h:87
QWORD ProcessParamFlags
Definition: xml2sdb.h:90
QWORD KernelFlags
Definition: xml2sdb.h:88
QWORD UserFlags
Definition: xml2sdb.h:89

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}
DWORD ReadQWordNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:91
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

◆ 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}
static PDB pdb
Definition: db.cpp:172
#define TAG_FLAG_PROCESSPARAM
Definition: sdbtagid.h:124
#define TAG_FLAG_MASK_KERNEL
Definition: sdbtagid.h:114
#define TAG_FLAG_MASK_USER
Definition: sdbtagid.h:117
#define TAG_FLAG
Definition: sdbtagid.h:181
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
void WriteQWord(PDB pdb, TAG tag, QWORD value, bool always=false)
Definition: xml2sdb.cpp:618
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
void InsertFlagTagid(const sdbstring &name, TAGID tagid)
Definition: xml2sdb.cpp:754
#define TAG_NAME
Definition: vfat.h:553

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: