]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexrecords.cc
* remove all the remaining #pragma implementation
[apt.git] / apt-pkg / indexrecords.cc
index c4b8a82353802a6cbad7647dac9435a8a3a92a81..396e1591f054a26a90178ce048eb5c4a8152c040 100644 (file)
@@ -3,9 +3,6 @@
 // $Id: indexrecords.cc,v 1.1.2.4 2003/12/30 02:11:43 mdz Exp $
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/indexrecords.h"
-#endif
 #include <apt-pkg/indexrecords.h>
 #include <apt-pkg/tagfile.h>
 #include <apt-pkg/error.h>
@@ -83,6 +80,17 @@ bool indexRecords::Load(const string Filename)
    return true;
 }
 
+vector<string> indexRecords::MetaKeys()
+{
+   std::vector<std::string> keys;
+   std::map<string,checkSum *>::iterator I = Entries.begin();
+   while(I != Entries.end()) {
+      keys.push_back((*I).first);
+      ++I;
+   }
+   return keys;
+}
+
 bool indexRecords::parseSumData(const char *&Start, const char *End,
                                   string &Name, string &Hash, size_t &Size)
 {