LLVM  3.7.0
DIADataStream.h
Go to the documentation of this file.
1 //===- DIADataStream.h - DIA implementation of IPDBDataStream ---*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
11 #define LLVM_DEBUGINFO_PDB_DIA_DIADATASTREAM_H
12 
13 #include "DIASupport.h"
15 
16 namespace llvm {
17 class DIADataStream : public IPDBDataStream {
18 public:
19  explicit DIADataStream(CComPtr<IDiaEnumDebugStreamData> DiaStreamData);
20 
21  uint32_t getRecordCount() const override;
22  std::string getName() const override;
23  llvm::Optional<RecordType> getItemAtIndex(uint32_t Index) const override;
24  bool getNext(RecordType &Record) override;
25  void reset() override;
26  DIADataStream *clone() const override;
27 
28 private:
29  CComPtr<IDiaEnumDebugStreamData> StreamData;
30 };
31 }
32 
33 #endif
std::string getName() const override
IPDBDataStream defines an interface used to represent a stream consisting of a name and a series of r...
bool getNext(RecordType &Record) override
DIADataStream * clone() const override
llvm::Optional< RecordType > getItemAtIndex(uint32_t Index) const override
void reset() override
uint32_t getRecordCount() const override
DIADataStream(CComPtr< IDiaEnumDebugStreamData > DiaStreamData)