ReactOS 0.4.16-dev-1946-g52006dd
ShimRef Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

std::string Name
 
std::string CommandLine
 
TAGID ShimTagid = 0
 
std::list< InExcludeInExcludes
 

Detailed Description

Definition at line 63 of file xml2sdb.h.

Member Function Documentation

◆ fromXml()

bool ShimRef::fromXml ( XMLHandle  dbNode)

Definition at line 350 of file xml2sdb.cpp.

351{
352 Name = ReadStringNode(dbNode, "NAME");
353 CommandLine = ReadStringNode(dbNode, "COMMAND_LINE");
354 ReadGeneric(dbNode, InExcludes, "INCLUDE");
355 ReadGeneric(dbNode, InExcludes, "EXCLUDE");
356 return !Name.empty();
357}
std::string CommandLine
Definition: xml2sdb.h:69
std::string Name
Definition: xml2sdb.h:68
std::list< InExclude > InExcludes
Definition: xml2sdb.h:71
void ReadGeneric(XMLHandle dbNode, std::list< T > &result, const char *nodeName)
Definition: xml2sdb.cpp:307
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:110

◆ toSdb()

bool ShimRef::toSdb ( Database db)

Definition at line 359 of file xml2sdb.cpp.

360{
362 db.WriteString(TAG_NAME, Name, true);
364
365 if (!ShimTagid)
368 return !!db.EndWriteListTag(tagid);
369}
DWORD TAGID
#define TAG_COMMAND_LINE
Definition: db.cpp:102
#define TAG_SHIM_REF
Definition: db.cpp:89
#define TAG_SHIM_TAGID
Definition: sdbtagid.h:67
TAGID FindShimTagid(const sdbstring &name)
Definition: xml2sdb.cpp:802
void WriteString(TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:657
BOOL EndWriteListTag(TAGID tagid)
Definition: xml2sdb.cpp:690
TAGID BeginWriteListTag(TAG tag)
Definition: xml2sdb.cpp:685
void WriteDWord(TAG tag, DWORD value, bool always=false)
Definition: xml2sdb.cpp:668
TAGID ShimTagid
Definition: xml2sdb.h:70
#define TAG_NAME
Definition: vfat.h:553

Member Data Documentation

◆ CommandLine

std::string ShimRef::CommandLine

Definition at line 69 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ InExcludes

std::list<InExclude> ShimRef::InExcludes

Definition at line 71 of file xml2sdb.h.

Referenced by fromXml().

◆ Name

std::string ShimRef::Name

Definition at line 68 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ ShimTagid

TAGID ShimRef::ShimTagid = 0

Definition at line 70 of file xml2sdb.h.

Referenced by toSdb().


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