ReactOS 0.4.15-dev-7924-g5949c20
MatchingFile Struct Reference

#include <xml2sdb.h>

Public Member Functions

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

Public Attributes

std::string Name
 
DWORD Size
 
DWORD Checksum
 
std::string CompanyName
 
std::string InternalName
 
std::string ProductName
 
std::string ProductVersion
 
std::string FileVersion
 
std::string BinFileVersion
 
DWORD LinkDate
 
std::string VerLanguage
 
std::string FileDescription
 
std::string OriginalFilename
 
std::string UptoBinFileVersion
 
DWORD LinkerVersion
 

Detailed Description

Definition at line 124 of file xml2sdb.h.

Constructor & Destructor Documentation

◆ MatchingFile()

MatchingFile::MatchingFile ( )
inline

Definition at line 126 of file xml2sdb.h.

126: Size(0), Checksum(0), LinkDate(0), LinkerVersion(0) {;}
DWORD LinkDate
Definition: xml2sdb.h:140
DWORD LinkerVersion
Definition: xml2sdb.h:145
DWORD Size
Definition: xml2sdb.h:132
DWORD Checksum
Definition: xml2sdb.h:133

Member Function Documentation

◆ fromXml()

bool MatchingFile::fromXml ( XMLHandle  dbNode)

Definition at line 495 of file xml2sdb.cpp.

496{
497 Name = ReadStringNode(dbNode, "NAME");
498 Size = ReadDWordNode(dbNode, "SIZE");
499 Checksum = ReadDWordNode(dbNode, "CHECKSUM");
500 CompanyName = ReadStringNode(dbNode, "COMPANY_NAME");
501 InternalName = ReadStringNode(dbNode, "INTERNAL_NAME");
502 ProductName = ReadStringNode(dbNode, "PRODUCT_NAME");
503 ProductVersion = ReadStringNode(dbNode, "PRODUCT_VERSION");
504 FileVersion = ReadStringNode(dbNode, "FILE_VERSION");
505 BinFileVersion = ReadStringNode(dbNode, "BIN_FILE_VERSION");
506 LinkDate = ReadDWordNode(dbNode, "LINK_DATE");
507 VerLanguage = ReadStringNode(dbNode, "VER_LANGUAGE");
508 FileDescription = ReadStringNode(dbNode, "FILE_DESCRIPTION");
509 OriginalFilename = ReadStringNode(dbNode, "ORIGINAL_FILENAME");
510 UptoBinFileVersion = ReadStringNode(dbNode, "UPTO_BIN_FILE_VERSION");
511 LinkerVersion = ReadDWordNode(dbNode, "LINKER_VERSION");
512 return true;
513}
std::string OriginalFilename
Definition: xml2sdb.h:143
std::string InternalName
Definition: xml2sdb.h:135
std::string ProductVersion
Definition: xml2sdb.h:137
std::string FileDescription
Definition: xml2sdb.h:142
std::string ProductName
Definition: xml2sdb.h:136
std::string BinFileVersion
Definition: xml2sdb.h:139
std::string CompanyName
Definition: xml2sdb.h:134
std::string UptoBinFileVersion
Definition: xml2sdb.h:144
std::string VerLanguage
Definition: xml2sdb.h:141
std::string FileVersion
Definition: xml2sdb.h:138
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
DWORD ReadDWordNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:103
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79

◆ toSdb()

bool MatchingFile::toSdb ( PDB  pdb,
Database db 
)

Definition at line 515 of file xml2sdb.cpp.

516{
518
519 db.WriteString(pdb, TAG_NAME, Name, true);
527 if (!BinFileVersion.empty())
528 SHIM_ERR("TAG_BIN_FILE_VERSION Unimplemented\n"); //db.WriteQWord(pdb, TAG_BIN_FILE_VERSION, BinFileVersion);
530 if (!VerLanguage.empty())
531 SHIM_ERR("TAG_VER_LANGUAGE Unimplemented\n"); //db.WriteDWord(pdb, TAG_VER_LANGUAGE, VerLanguage);
534 if (!UptoBinFileVersion.empty())
535 SHIM_ERR("TAG_UPTO_BIN_FILE_VERSION Unimplemented\n"); //db.WriteQWord(pdb, TAG_UPTO_BIN_FILE_VERSION, UptoBinFileVersion);
537
538 return !!db.EndWriteListTag(pdb, tagid);
539}
DWORD TAGID
static PDB pdb
Definition: db.cpp:172
#define TAG_MATCHING_FILE
Definition: db.cpp:88
#define TAG_ORIGINAL_FILENAME
Definition: apphelp.c:69
#define TAG_LINKER_VERSION
Definition: apphelp.c:55
#define TAG_SIZE
Definition: apphelp.c:46
#define TAG_FILE_DESCRIPTION
Definition: apphelp.c:67
#define TAG_FILE_VERSION
Definition: apphelp.c:68
#define TAG_PRODUCT_NAME
Definition: apphelp.c:65
#define TAG_CHECKSUM
Definition: apphelp.c:47
#define TAG_COMPANY_NAME
Definition: apphelp.c:64
#define TAG_LINK_DATE
Definition: apphelp.c:56
#define TAG_INTERNAL_NAME
Definition: apphelp.c:70
#define TAG_PRODUCT_VERSION
Definition: apphelp.c:66
#define SHIM_ERR(fmt,...)
Definition: sdbpapi.h:76
void WriteDWord(PDB pdb, TAG tag, DWORD value, bool always=false)
Definition: xml2sdb.cpp:612
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

◆ BinFileVersion

std::string MatchingFile::BinFileVersion

Definition at line 139 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Checksum

DWORD MatchingFile::Checksum

Definition at line 133 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ CompanyName

std::string MatchingFile::CompanyName

Definition at line 134 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ FileDescription

std::string MatchingFile::FileDescription

Definition at line 142 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ FileVersion

std::string MatchingFile::FileVersion

Definition at line 138 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ InternalName

std::string MatchingFile::InternalName

Definition at line 135 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ LinkDate

DWORD MatchingFile::LinkDate

Definition at line 140 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ LinkerVersion

DWORD MatchingFile::LinkerVersion

Definition at line 145 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Name

std::string MatchingFile::Name

Definition at line 131 of file xml2sdb.h.

◆ OriginalFilename

std::string MatchingFile::OriginalFilename

Definition at line 143 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ ProductName

std::string MatchingFile::ProductName

Definition at line 136 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ ProductVersion

std::string MatchingFile::ProductVersion

Definition at line 137 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ Size

DWORD MatchingFile::Size

Definition at line 132 of file xml2sdb.h.

◆ UptoBinFileVersion

std::string MatchingFile::UptoBinFileVersion

Definition at line 144 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().

◆ VerLanguage

std::string MatchingFile::VerLanguage

Definition at line 141 of file xml2sdb.h.

Referenced by fromXml(), and toSdb().


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