~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_directory.h

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:54 UTC
  • mfrom: (1283.28.32)
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100330131054-9l6wuqylf7eae9i0
Merged embedded-innodb-position-rnd-pos into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
  bool open(const std::string &in_path, std::set<std::string> &allowable_exts);
156
156
  bool open(const std::string &in_path, std::set<std::string> &allowed_exts, enum CachedDirectory::FILTER filter);
157
157
 
 
158
  friend std::ostream& operator<<(std::ostream& output, CachedDirectory &directory)
 
159
  {
 
160
    output << "CachedDirectory:(Path: " << directory.getPath() << ")\n";
 
161
 
 
162
    CachedDirectory::Entries files= directory.getEntries();
 
163
 
 
164
    for (CachedDirectory::Entries::iterator fileIter= files.begin();
 
165
         fileIter != files.end(); fileIter++)
 
166
    {
 
167
      CachedDirectory::Entry *entry= *fileIter;
 
168
      output << "\t(" << entry->filename << ")\n";
 
169
    }
 
170
 
 
171
    return output;  // for multiple << operators.
 
172
  }
 
173
 
158
174
};
159
175
 
160
176
} /* namespace drizzled */