21 CComPtr<IDiaSourceFile> DiaSourceFile)
22 : Session(PDBSession), SourceFile(DiaSourceFile) {}
30 return (S_OK == SourceFile->get_uniqueId(&Id)) ? Id : 0;
35 HRESULT Result = SourceFile->get_checksum(0, &ByteSize,
nullptr);
38 std::vector<BYTE> ChecksumBytes(ByteSize);
39 Result = SourceFile->get_checksum(ByteSize, &ByteSize, &ChecksumBytes[0]);
42 return std::string(ChecksumBytes.begin(), ChecksumBytes.end());
47 HRESULT Result = SourceFile->get_checksumType(&Type);
53 std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>
55 CComPtr<IDiaEnumSymbols> DiaEnumerator;
56 HRESULT Result = SourceFile->get_compilands(&DiaEnumerator);
60 auto Enumerator = std::unique_ptr<IPDBEnumSymbols>(
62 return std::unique_ptr<IPDBEnumChildren<PDBSymbolCompiland>>(
This class represents lattice values for constants.
std::unique_ptr< IPDBEnumChildren< PDBSymbolCompiland > > getCompilands() const override
PDB_Checksum
Specifies the hash algorithm that a source file from a PDB was hashed with.
uint32_t getUniqueId() const override
std::string getChecksum() const override
std::string invokeBstrMethod(Obj &Object, HRESULT(__stdcall Obj::*Func)(BSTR *))
PDB_Checksum getChecksumType() const override
DIASourceFile(const DIASession &Session, CComPtr< IDiaSourceFile > DiaSourceFile)
std::string getFileName() const override