ReactOS  0.4.14-dev-317-g96040ec
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 Size
Definition: xml2sdb.h:132
DWORD LinkDate
Definition: xml2sdb.h:140
DWORD LinkerVersion
Definition: xml2sdb.h:145
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 }
DWORD ReadDWordNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:103
std::string VerLanguage
Definition: xml2sdb.h:141
std::string ProductName
Definition: xml2sdb.h:136
std::string ReadStringNode(XMLHandle dbNode, const char *nodeName)
Definition: xml2sdb.cpp:79
std::string ProductVersion
Definition: xml2sdb.h:137
std::string FileDescription
Definition: xml2sdb.h:142
std::string CompanyName
Definition: xml2sdb.h:134
std::string UptoBinFileVersion
Definition: xml2sdb.h:144
DWORD LinkDate
Definition: xml2sdb.h:140
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
std::string OriginalFilename
Definition: xml2sdb.h:143
DWORD LinkerVersion
Definition: xml2sdb.h:145
std::string InternalName
Definition: xml2sdb.h:135
std::string BinFileVersion
Definition: xml2sdb.h:139
DWORD Checksum
Definition: xml2sdb.h:133
std::string FileVersion
Definition: xml2sdb.h:138

◆ 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);
520  db.WriteDWord(pdb, TAG_SIZE, Size);
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 }
#define TAG_INTERNAL_NAME
Definition: apphelp.c:68
#define TAG_FILE_VERSION
Definition: apphelp.c:66
#define TAG_NAME
Definition: vfat.h:547
static PDB pdb
Definition: db.cpp:170
TAGID BeginWriteListTag(PDB pdb, TAG tag)
Definition: xml2sdb.cpp:624
std::string VerLanguage
Definition: xml2sdb.h:141
std::string ProductName
Definition: xml2sdb.h:136
#define TAG_PRODUCT_NAME
Definition: apphelp.c:63
#define TAG_MATCHING_FILE
Definition: db.cpp:86
void WriteString(PDB pdb, TAG tag, const sdbstring &str, bool always=false)
Definition: xml2sdb.cpp:601
#define TAG_SIZE
Definition: apphelp.c:44
#define TAG_PRODUCT_VERSION
Definition: apphelp.c:64
std::string ProductVersion
Definition: xml2sdb.h:137
BOOL EndWriteListTag(PDB pdb, TAGID tagid)
Definition: xml2sdb.cpp:629
#define TAG_FILE_DESCRIPTION
Definition: apphelp.c:65
#define TAG_CHECKSUM
Definition: apphelp.c:45
std::string FileDescription
Definition: xml2sdb.h:142
std::string CompanyName
Definition: xml2sdb.h:134
std::string UptoBinFileVersion
Definition: xml2sdb.h:144
#define TAG_COMPANY_NAME
Definition: apphelp.c:62
DWORD LinkDate
Definition: xml2sdb.h:140
#define TAG_ORIGINAL_FILENAME
Definition: apphelp.c:67
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
#define TAG_LINK_DATE
Definition: apphelp.c:54
std::string OriginalFilename
Definition: xml2sdb.h:143
void WriteDWord(PDB pdb, TAG tag, DWORD value, bool always=false)
Definition: xml2sdb.cpp:612
DWORD LinkerVersion
Definition: xml2sdb.h:145
std::string InternalName
Definition: xml2sdb.h:135
DWORD TAGID
std::string BinFileVersion
Definition: xml2sdb.h:139
DWORD Checksum
Definition: xml2sdb.h:133
#define TAG_LINKER_VERSION
Definition: apphelp.c:53
std::string FileVersion
Definition: xml2sdb.h:138

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: