DATRW++ library: seismic data I/O with multiple formats

◆ pfield()

void datrw::tsoft::pfield ( std::ostream &  os,
const std::string &  s,
const int &  w 
)

helper function: print fixed width field

Definition at line 205 of file channeltranslation.cc.

Referenced by pline().

206  {
207  os.width(w);
208  os.setf(std::ios_base::left, std::ios_base::adjustfield);
209  os << s.substr(0,w) << " ";
210  } // void pfield(std::ostream& os, const std::string& s, const int& w)
Here is the caller graph for this function: