45 std::vector<pkgIndexFile*> VolatileFiles;
54 static Type **GlobalList;
55 static unsigned long GlobalListLen;
56 static Type *GetType(
const char *
Type) APT_PURE;
58 char const *
const Name;
59 char const *
const Label;
61 bool FixupURI(std::string &
URI)
const;
62 virtual bool ParseStanza(std::vector<metaIndex *> &List,
64 unsigned int const stanza_n,
66 virtual bool ParseLine(std::vector<metaIndex *> &List,
68 unsigned int const CurLine,std::string
const &File)
const;
69 virtual bool CreateItem(std::vector<metaIndex *> &List,std::string
const &
URI,
70 std::string
const &Dist,std::string
const &Section,
71 std::map<std::string, std::string>
const &Options)
const = 0;
72 Type(
char const *
const Name,
char const *
const Label);
76 typedef std::vector<metaIndex *>::const_iterator const_iterator;
80 std::vector<metaIndex *> SrcList;
83 APT_HIDDEN
bool ParseFileDeb822(std::string
const &File);
84 APT_HIDDEN
bool ParseFileOldStyle(std::string
const &File);
89 bool Read(std::string
const &File);
93 bool ReadAppend(std::string
const &File);
94 bool ReadSourceDir(std::string
const &Dir);
97 inline const_iterator begin()
const {
return SrcList.begin();};
98 inline const_iterator end()
const {
return SrcList.end();};
99 inline unsigned int size()
const {
return SrcList.size();};
100 inline bool empty()
const {
return SrcList.empty();};
102 bool FindIndex(pkgCache::PkgFileIterator File,
104 bool GetIndexes(
pkgAcquire *Owner,
bool GetAll=
false)
const;
107 time_t GetLastModifiedTime();
124 bool AddVolatileFile(std::string
const &File);
125 bool AddVolatileFile(std::string
const &File, std::vector<std::string> *
const VolatileCmdL);
126 void AddVolatileFiles(
CommandLine &CmdL, std::vector<std::string> *
const VolatileCmdL);
129 std::vector<pkgIndexFile*> GetVolatileFiles()
const;