~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_directory.h

  • Committer: Lee Bieber
  • Date: 2011-03-23 23:16:25 UTC
  • mfrom: (2247.1.2 build)
  • Revision ID: kalebral@gmail.com-20110323231625-61k77qbh7n1iu776
Merge Olaf - Use BOOST_FOREACH
Merge Olaf - Remove std::nothrow from new()

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
   * @param[in] File extensions to allow
84
84
   */
85
85
  CachedDirectory(const std::string& in_path, std::set<std::string>& allowed_exts);
86
 
  CachedDirectory(const std::string& in_path, enum CachedDirectory::FILTER filter, bool use_full_path= false);
 
86
  CachedDirectory(const std::string& in_path, CachedDirectory::FILTER filter, bool use_full_path= false);
87
87
 
88
88
  /**
89
89
   * Destructor.  Cleans up any resources we've taken 
121
121
   * @returns
122
122
   *   A vector of strings containing the directory entry names.
123
123
   */
124
 
  inline const Entries &getEntries()
 
124
  const Entries &getEntries() const
125
125
  {
126
126
    return entries;
127
127
  }
151
151
   * @retval false Failure
152
152
   */
153
153
  bool open(const std::string &in_path, std::set<std::string> &allowable_exts);
154
 
  bool open(const std::string &in_path, std::set<std::string> &allowed_exts, enum CachedDirectory::FILTER filter);
155
 
 
156
 
  friend std::ostream& operator<<(std::ostream& output, CachedDirectory &directory)
157
 
  {
158
 
    output << "CachedDirectory:(Path: " << directory.getPath() << ")\n";
159
 
 
160
 
    CachedDirectory::Entries files= directory.getEntries();
161
 
 
162
 
    for (CachedDirectory::Entries::iterator fileIter= files.begin();
163
 
         fileIter != files.end(); fileIter++)
164
 
    {
165
 
      CachedDirectory::Entry *entry= *fileIter;
166
 
      output << "\t(" << entry->filename << ")\n";
167
 
    }
168
 
 
169
 
    return output;  // for multiple << operators.
170
 
  }
171
 
 
 
154
  bool open(const std::string &in_path, std::set<std::string> &allowed_exts, CachedDirectory::FILTER filter);
 
155
 
 
156
  friend std::ostream& operator<<(std::ostream&, const CachedDirectory&);
172
157
};
173
158
 
174
159
} /* namespace drizzled */