Lines Matching defs:name

25  * neither the name of the copyright holders nor the names of its
68 OutputStream::OutputStream(const std::string &name, std::ostream *stream)
69 : _name(name), _stream(stream)
84 const std::string &name,
87 : OutputStream(name, new stream_type_t()),
122 OutputDirectory::OutputDirectory(const std::string &name)
124 setDirectory(name);
136 OutputDirectory::checkForStdio(const string &name)
138 if (name == "cerr" || name == "stderr")
141 if (name == "cout" || name == "stdout")
150 auto i = files.find(file->name());
200 OutputDirectory::resolve(const string &name) const
202 return !isAbsolute(name) ? dir + name : name;
206 OutputDirectory::create(const string &name, bool binary, bool no_gz)
208 OutputStream *file = checkForStdio(name);
214 const bool recreateable(!isAbsolute(name));
216 return open(name, mode, recreateable, no_gz);
220 OutputDirectory::open(const std::string &name,
227 if (!no_gz && name.find(".gz", name.length() - 3) < name.length()) {
232 os = new OutputFile<gzofstream>(*this, name, mode, recreateable);
234 os = new OutputFile<ofstream>(*this, name, mode, recreateable);
237 files[name] = os;
243 OutputDirectory::find(const string &name) const
245 OutputStream *file = checkForStdio(name);
249 auto i = files.find(name);
258 OutputDirectory::findOrCreate(const std::string &name, bool binary)
260 OutputStream *os(find(name));
264 return create(name, binary);
268 OutputDirectory::isFile(const string &name) const
271 if (find(name) != NULL) return true;
274 int st = stat(name.c_str(), &st_buf);
279 OutputDirectory::createSubdirectory(const string &name)
281 const string new_dir = resolve(name);
286 dirs[name] = dir;
292 OutputDirectory::remove(const string &name, bool recursive)
294 const string fname = resolve(name);
310 // assume 'name' is a directory
330 remove(name + PATH_SEPARATOR + de->d_name, recursive);