37 #define TSIO_CMDLINEFILES_CC_VERSION \ 38 "TF_CMDLINEFILES_CC 2014/01/30" 44 #include <tfxx/rangestring.h> 53 const std::string& format)
56 return (
readSSFF(filename, rangelist, verbose, format));
62 const std::string& format)
65 return (
readDSFF(filename, rangelist, verbose, format));
74 const std::string& format)
80 std::cout <<
"open input file " << filename << std::endl;
82 std::ifstream ifs(filename.c_str(),
83 datrw::ianystream::openmode(format));
84 datrw::ianystream is(ifs, format);
85 retval.
data.
read(is.idatstream(), selection, verbose);
95 const std::string& format)
101 std::cout <<
"open input file " << filename << std::endl;
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);
116 const std::string& format)
119 tfxx::string::rangelist<Ttracelist::Tvalue>(filename.value(tracekey));
120 SFile retval=
readSSFF(filename.name, selection, verbose, format);
121 retval.arguments=filename;
129 const std::string& format)
132 tfxx::string::rangelist<Ttracelist::Tvalue>(filename.value(tracekey));
133 DFile retval=
readDSFF(filename.name, selection, verbose, format);
134 retval.arguments=filename;
144 const std::string& format)
147 tfxx::cmdline::Tparsed::const_iterator file=flist.begin();
148 while (file != flist.end())
150 retval.push_back(
readSSFF(*file, verbose, tracekey, format));
160 const std::string& format)
163 tfxx::cmdline::Tparsed::const_iterator file=flist.begin();
164 while (file != flist.end())
166 retval.push_back(
readDSFF(*file, verbose, tracekey, format));
177 const datrw::Eformat& format)
179 return (
readSSFF(filename, verbose, datrw::anyID(format)));
185 const datrw::Eformat& format)
187 return (
readDSFF(filename, verbose, datrw::anyID(format)));
196 const datrw::Eformat& format)
198 return (
readSSFF(filename, selection, verbose, datrw::anyID(format)));
207 const datrw::Eformat& format)
209 return (
readDSFF(filename, selection, verbose, datrw::anyID(format)));
218 const datrw::Eformat& format)
220 return (
readSSFF(filename, verbose, tracekey, datrw::anyID(format)));
227 const datrw::Eformat& format)
229 return (
readDSFF(filename, verbose, tracekey, datrw::anyID(format)));
238 const datrw::Eformat& format)
240 return (
readSSFF(flist, verbose, tracekey, datrw::anyID(format)));
247 const datrw::Eformat& format)
249 return (
readDSFF(flist, verbose, tracekey, datrw::anyID(format)));
structure to contain file data together with command line arguments.
containers for data files with file specific command line parameters (prototypes).
DFile readDSFF(const std::string &filename, const bool &verbose, const std::string &format)
read complete SFF file
define ts::sff::File<C>::read function (implementation)
void read(datrw::idatstream &is, const bool &verbose=false)
Read a complete file with all traces.
std::list< DFile > TDFileList
complete list of files.
ts::sff::File< Tseries > data
container to hold data headers and samples
structure to contain file data together with command line arguments (single precision).
tfxx::cmdline::Filename arguments
command line arguments
const char * Ttracelistkey
type of trace selection key.
std::list< SFile > TSFileList
complete list of files (single precision version).
ts::sff::File< Tseries > data
container to hold data headers and samples
SFile readSSFF(const std::string &filename, const bool &verbose, const std::string &format)
read complete SFF file
tfxx::RangeList< int > Ttracelist
type of trace selection list.
tfxx::cmdline::Filename arguments
command line arguments