Home | History | Annotate | Download | only in lib

Lines Matching full:strm

96   bool Read(istream &strm, const string &source);
97 bool Write(ostream &strm, const string &source) const;
149 static Fst<A> *Read(istream &strm, const FstReadOptions &opts) {
155 if (!hdr.Read(strm, opts.source))
168 return reader(strm, ropts);
173 ifstream strm(filename.c_str());
174 if (!strm) {
178 return Read(strm, FstReadOptions(filename));
182 virtual bool Write(ostream &strm, const FstWriteOptions &opts) const {
458 bool ReadHeaderAndSymbols(istream &strm, const FstReadOptions& opts,
462 else if (!hdr->Read(strm, opts.source))
482 isymbols_ = SymbolTable::Read(strm, opts.source);
484 osymbols_ =SymbolTable::Read(strm, opts.source);
500 void WriteHeaderAndSymbols(ostream &strm, const FstWriteOptions& opts,
513 hdr->Write(strm, opts.source);
515 if (isymbols_ && opts.write_isymbols) isymbols_->Write(strm);
516 if (osymbols_ && opts.write_osymbols) osymbols_->Write(strm);