ReactOS 0.4.15-dev-7681-g776c3a3
ShimRef Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 41 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ ShimRef()

ShimRef::ShimRef ( )

Definition at line 43 of file xml2sdb.h.

43: ShimTagid(0) { ; }
TAGID ShimTagid
Definition: xml2sdb.h:50

Member Function Documentation

◆ fromXml()

bool ShimRef::fromXml ( XMLHandle  dbNode)

Definition at line 296 of file xml2sdb.cpp.

298 Name = ReadStringNode(dbNode, "NAME");
299 CommandLine = ReadStringNode(dbNode, "COMMAND_LINE");
300 ReadGeneric(dbNode, InExcludes, "INCLUDE");
301 ReadGeneric(dbNode, InExcludes, "EXCLUDE");
302 return !Name.empty();
std::string CommandLine
Definition: xml2sdb.h:49
std::list< InExclude > InExcludes
Definition: xml2sdb.h:51
void ReadGeneric(XMLHandle dbNode, std::list< T > &result, const char *nodeName)
Definition: xml2sdb.cpp:267
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

◆ toSdb()

bool ShimRef::toSdb ( PDB  pdb,
Database db 

Definition at line 305 of file xml2sdb.cpp.

308 db.WriteString(pdb, TAG_NAME, Name, true);
311 if (!ShimTagid)
314 return !!db.EndWriteListTag(pdb, tagid);
static PDB pdb
Definition: db.cpp:172
Definition: db.cpp:102
#define TAG_SHIM_REF
Definition: db.cpp:89
Definition: sdbtagid.h:67
BOOL WINAPI SdbWriteDWORDTag(PDB pdb, TAG tag, DWORD data)
Definition: sdbwrite.c:182
TAGID FindShimTagid(const sdbstring &name)
Definition: xml2sdb.cpp:739
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
#define TAG_NAME
Definition: vfat.h:553

Member Data Documentation

◆ CommandLine

std::string ShimRef::CommandLine

Definition at line 49 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ InExcludes

std::list<InExclude> ShimRef::InExcludes

Definition at line 51 of file xml2sdb.h.

Referenced by fromXml().

◆ Name

std::string ShimRef::Name

Definition at line 48 of file xml2sdb.h.

◆ ShimTagid

TAGID ShimRef::ShimTagid

Definition at line 50 of file xml2sdb.h.

Referenced by toSdb().

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