TSIO++ Time series input/output

◆ readDSFF() [2/8]

DFile ts::sff::readDSFF ( const std::string &  filename,
const Ttracelist selection,
const bool &  verbose = false,
const std::string &  format = datrw::anyID(datrw::Fsff) 
)

read complete SFF file with trace selection

read complete SFF file with trace selection.

Read a complete data file with all headers and samples but only for the selected traces.

Returns
structure that contains file data together with command line arguments (here: only file name)
Parameters
filenameinput file name of file to be read
selectionnumerical list of selected traces
verboseselect verbosity
formatdata format to be read

Definition at line 92 of file cmdlinefiles.cc.

References ts::sff::DFile::arguments, ts::sff::DFile::data, and ts::sff::File< C >::read().

96  {
97  DFile retval;
98  retval.arguments.name=filename;
99  if (verbose)
100  {
101  std::cout << "open input file " << filename << std::endl;
102  }
103  std::ifstream ifs(filename.c_str(),
104  datrw::ianystream::openmode(format));
105  datrw::ianystream is(ifs, format);
106  retval.data.read(is.idatstream(), selection, verbose);
107  return(retval);
108  }
Here is the call graph for this function: