ReactOS 0.4.16-dev-1946-g52006dd
Exe Struct Reference

#include <xml2sdb.h>

Collaboration diagram for Exe:

Public Member Functions

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

Public Attributes

std::string Name
 
GUID ExeID = {}
 
std::string AppName
 
std::string Vendor
 
TAGID Tagid = 0
 
std::list< MatchingFileMatchingFiles
 
std::list< ShimRefShimRefs
 
std::list< FlagRefFlagRefs
 
PlatformType Platform = PLATFORM_ANY
 

Detailed Description

Definition at line 158 of file xml2sdb.h.

Member Function Documentation

◆ fromXml()

bool Exe::fromXml ( XMLHandle  dbNode)

Definition at line 600 of file xml2sdb.cpp.

601{
602 Name = ReadStringNode(dbNode, "NAME");
603 ReadGuidNode(dbNode, "EXE_ID", ExeID);
604 AppName = ReadStringNode(dbNode, "APP_NAME");
605 Vendor = ReadStringNode(dbNode, "VENDOR");
606
607 ReadGeneric(dbNode, MatchingFiles, "MATCHING_FILE");
608
609 ReadGeneric(dbNode, ShimRefs, "SHIM_REF");
610 ReadGeneric(dbNode, FlagRefs, "FLAG_REF");
611
612 Platform = ReadPlatformNode(dbNode, "RUNTIME_PLATFORM");
613
614 return !Name.empty();
615}
PlatformType Platform
Definition: xml2sdb.h:171
std::list< MatchingFile > MatchingFiles
Definition: xml2sdb.h:168
std::string Name
Definition: xml2sdb.h:163
std::string AppName
Definition: xml2sdb.h:165
GUID ExeID
Definition: xml2sdb.h:164
std::list< ShimRef > ShimRefs
Definition: xml2sdb.h:169
std::string Vendor
Definition: xml2sdb.h:166
std::list< FlagRef > FlagRefs
Definition: xml2sdb.h:170
bool ReadGuidNode(XMLHandle dbNode, const char *nodeName, GUID &guid)
Definition: xml2sdb.cpp:251
PlatformType ReadPlatformNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:139
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 Exe::toSdb ( Database db)

Definition at line 617 of file xml2sdb.cpp.

618{
620
621 db.WriteString(TAG_NAME, Name, true);
622 if (IsEmptyGuid(ExeID))
625
626
629
630 if (!WriteGeneric(MatchingFiles, db))
631 return false;
632 if (!WriteGeneric(ShimRefs, db))
633 return false;
634 if (!WriteGeneric(FlagRefs, db))
635 return false;
636
637 return !!db.EndWriteListTag(Tagid);
638}
#define TAG_EXE
Definition: db.cpp:87
#define TAG_APP_NAME
Definition: db.cpp:101
#define TAG_VENDOR
Definition: db.cpp:100
#define TAG_EXE_ID
Definition: db.cpp:120
void WriteString(TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:657
BOOL EndWriteListTag(TAGID tagid)
Definition: xml2sdb.cpp:690
void WriteBinary(TAG tag, const GUID &guid, bool always=false)
Definition: xml2sdb.cpp:645
TAGID BeginWriteListTag(TAG tag)
Definition: xml2sdb.cpp:685
TAGID Tagid
Definition: xml2sdb.h:167
#define TAG_NAME
Definition: vfat.h:553
void RandomGuid(GUID &g)
Definition: xml2sdb.cpp:82
bool WriteGeneric(std::list< T > &data, Database &db)
Definition: xml2sdb.cpp:335
bool IsEmptyGuid(const GUID &g)
Definition: xml2sdb.cpp:77

Member Data Documentation

◆ AppName

std::string Exe::AppName

Definition at line 165 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ ExeID

GUID Exe::ExeID = {}

Definition at line 164 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ FlagRefs

std::list<FlagRef> Exe::FlagRefs

Definition at line 170 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ MatchingFiles

std::list<MatchingFile> Exe::MatchingFiles

Definition at line 168 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Name

std::string Exe::Name

Definition at line 163 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Platform

PlatformType Exe::Platform = PLATFORM_ANY

Definition at line 171 of file xml2sdb.h.

Referenced by fromXml().

◆ ShimRefs

std::list<ShimRef> Exe::ShimRefs

Definition at line 169 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Tagid

TAGID Exe::Tagid = 0

Definition at line 167 of file xml2sdb.h.

Referenced by toSdb().

◆ Vendor

std::string Exe::Vendor

Definition at line 166 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().


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