Lines Matching refs:filename
47 ProtoOutputStream::ProtoOutputStream(const string& filename) :
48 fileStream(filename.c_str(), ios::out | ios::binary | ios::trunc),
52 panic("Could not open %s for writing\n", filename);
55 // wrapped in a gzip stream if the filename ends with .gz. The
58 if (filename.find_last_of('.') != string::npos &&
59 filename.substr(filename.find_last_of('.') + 1) == "gz") {
98 ProtoInputStream::ProtoInputStream(const string& filename) :
99 fileStream(filename.c_str(), ios::in | ios::binary), fileName(filename),
104 panic("Could not open %s for reading\n", filename);
126 // wrapped in a gzip stream if the filename ends with .gz. The