1 //==- DIAEnumInjectedSources.h - DIA Injected Sources Enumerator -*- 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_DIAENUMINJECTEDSOURCES_H 11 #define LLVM_DEBUGINFO_PDB_DIA_DIAENUMINJECTEDSOURCES_H 12 13 #include "DIASupport.h" 14 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h" 15 #include "llvm/DebugInfo/PDB/IPDBInjectedSource.h" 16 17 namespace llvm { 18 namespace pdb { 19 20 class DIAEnumInjectedSources : public IPDBEnumChildren<IPDBInjectedSource> { 21 public: 22 explicit DIAEnumInjectedSources( 23 CComPtr<IDiaEnumInjectedSources> DiaEnumerator); 24 25 uint32_t getChildCount() const override; 26 ChildTypePtr getChildAtIndex(uint32_t Index) const override; 27 ChildTypePtr getNext() override; 28 void reset() override; 29 30 private: 31 CComPtr<IDiaEnumInjectedSources> Enumerator; 32 }; 33 } // namespace pdb 34 } // namespace llvm 35 36 #endif // LLVM_DEBUGINFO_PDB_DIA_DIAENUMINJECTEDSOURCES_H 37