ReactOS 0.4.15-dev-7942-gd23573b
InExclude Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

std::string Module
 
bool Include
 

Detailed Description

Definition at line 31 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ InExclude()

InExclude::InExclude ( )
inline

Definition at line 33 of file xml2sdb.h.

33: Include(false) { ; }
bool Include
Definition: xml2sdb.h:38

Member Function Documentation

◆ fromXml()

bool InExclude::fromXml ( XMLHandle  dbNode)

Definition at line 244 of file xml2sdb.cpp.

245{
246 Module = ReadStringNode(dbNode, "MODULE");
247 // Special module names: '$' and '*'
248 if (!Module.empty())
249 {
250 Include = ToNodeName(dbNode) == "INCLUDE";
251 return true;
252 }
253 return false;
254}
std::string Module
Definition: xml2sdb.h:37
std::string ToNodeName(XMLHandle node)
Definition: xml2sdb.cpp:69
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

Referenced by Database::fromXml().

◆ toSdb()

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

Definition at line 256 of file xml2sdb.cpp.

257{
259 db.WriteString(pdb, TAG_MODULE, Module, true);
260 if (Include)
262 return !!db.EndWriteListTag(pdb, tagid);
263}
DWORD TAGID
static PDB pdb
Definition: db.cpp:172
#define TAG_MODULE
Definition: db.cpp:99
#define TAG_INEXCLUD
Definition: db.cpp:86
#define TAG_INCLUDE
Definition: db.cpp:56
BOOL WINAPI SdbWriteNULLTag(PDB pdb, TAG tag)
Definition: sdbwrite.c:145
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

Member Data Documentation

◆ Include

bool InExclude::Include

Definition at line 38 of file xml2sdb.h.

Referenced by fromXml(), SeiAppendInExclude(), SeiIsExcluded(), and toSdb().

◆ Module

std::string InExclude::Module

Definition at line 37 of file xml2sdb.h.

Referenced by fromXml(), SeiAppendInExclude(), and toSdb().


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