ReactOS  0.4.15-dev-2765-g10e48fa
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.

297 {
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();
303 }
std::list< InExclude > InExcludes
Definition: xml2sdb.h:51
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79
std::string CommandLine
Definition: xml2sdb.h:49
void ReadGeneric(XMLHandle dbNode, std::list< T > &result, const char *nodeName)
Definition: xml2sdb.cpp:267

◆ toSdb()

bool ShimRef::toSdb ( PDB  pdb,
Database db 

Definition at line 305 of file xml2sdb.cpp.

306 {
308  db.WriteString(pdb, TAG_NAME, Name, true);
311  if (!ShimTagid)
314  return !!db.EndWriteListTag(pdb, tagid);
315 }
TAGID FindShimTagid(const sdbstring &name)
Definition: xml2sdb.cpp:739
#define TAG_NAME
Definition: vfat.h:553
static PDB pdb
Definition: db.cpp:172
TAGID BeginWriteListTag(PDB pdb, TAG tag)
Definition: xml2sdb.cpp:624
Definition: db.cpp:102
BOOL WINAPI SdbWriteDWORDTag(PDB pdb, TAG tag, DWORD data)
Definition: sdbwrite.c:182
void WriteString(PDB pdb, TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:601
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
std::string CommandLine
Definition: xml2sdb.h:49
Definition: sdbtagid.h:67
TAGID ShimTagid
Definition: xml2sdb.h:50
#define TAG_SHIM_REF
Definition: db.cpp:89

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: