~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_directory.h

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with trunk

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 */