ReactOS 0.4.16-dev-1946-g52006dd
InExclude Struct Reference

#include <xml2sdb.h>

Public Member Functions

bool fromXml (XMLHandle dbNode)
 
bool toSdb (Database &db)
 

Public Attributes

std::string Module
 
bool Include = false
 

Detailed Description

Definition at line 54 of file xml2sdb.h.

Member Function Documentation

◆ fromXml()

bool InExclude::fromXml ( XMLHandle  dbNode)

Definition at line 284 of file xml2sdb.cpp.

285{
286 Module = ReadStringNode(dbNode, "MODULE");
287 // Special module names: '$' and '*'
288 if (!Module.empty())
289 {
290 Include = ToNodeName(dbNode) == "INCLUDE";
291 return true;
292 }
293 return false;
294}
std::string Module
Definition: xml2sdb.h:59
bool Include
Definition: xml2sdb.h:60
std::string ToNodeName(XMLHandle node)
Definition: xml2sdb.cpp:100
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:110

Referenced by Database::fromXml().

◆ toSdb()

bool InExclude::toSdb ( Database db)

Definition at line 296 of file xml2sdb.cpp.

297{
299 db.WriteString(TAG_MODULE, Module, true);
300 if (Include)
302 return !!db.EndWriteListTag(tagid);
303}
DWORD TAGID
#define TAG_MODULE
Definition: db.cpp:99
#define TAG_INEXCLUD
Definition: db.cpp:86
#define TAG_INCLUDE
Definition: db.cpp:56
void WriteString(TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:657
BOOL EndWriteListTag(TAGID tagid)
Definition: xml2sdb.cpp:690
void WriteNull(TAG tag)
Definition: xml2sdb.cpp:680
TAGID BeginWriteListTag(TAG tag)
Definition: xml2sdb.cpp:685

Member Data Documentation

◆ Include

bool InExclude::Include = false

Definition at line 60 of file xml2sdb.h.

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

◆ Module

std::string InExclude::Module

Definition at line 59 of file xml2sdb.h.

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


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