1/* 2 * Copyright (c) 2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 146 unchanged lines hidden (view full) --- 155OutputDirectory::create(const string &name, bool binary) 156{ 157 ostream *file = checkForStdio(name); 158 if (file) 159 return file; 160 161 string filename = resolve(name); 162 ios_base::openmode mode = |
163 ios::trunc | (binary ? ios::binary : (ios::openmode)0); |
164 file = openFile(filename, mode); 165 166 return file; 167} 168 169ostream * 170OutputDirectory::find(const string &name) const 171{ --- 96 unchanged lines hidden --- |