#include <AdcDataDumper.h>
Definition at line 37 of file AdcDataDumper.h.
AdcDataDumper::~AdcDataDumper |
( |
| ) |
|
|
override |
bool AdcDataDumper::updateWithView |
( |
| ) |
const |
|
inlineoverridevirtual |
Reimplemented from AdcChannelTool.
Definition at line 119 of file AdcDataDumper_tool.cc.
122 bool newfile = pout ==
nullptr;
127 string::size_type npos = string::npos;
128 string::size_type ipos = fname.find(
"%PAT%");
129 ipos = fname.find(
"%CHAN1%");
130 if ( ipos != npos ) {
131 string srep =
"NOCHAN";
134 ssrep << acds.begin()->first;
137 while ( ipos != npos ) {
138 fname.replace(ipos, 7, srep);
139 ipos = fname.find(
"%CHAN1%", ipos+7);
142 ipos = fname.find(
"%CHAN2%");
143 if ( ipos != npos ) {
144 string srep =
"NOCHAN";
147 ssrep << acds.rbegin()->first;
148 string srep = ssrep.str();
149 while ( ipos != npos ) {
150 fname.replace(ipos, 7, srep);
151 ipos = fname.find(
"%CHAN2%", ipos+7);
155 pout =
new ofstream(fname.c_str());
157 if ( pout ==
nullptr )
return ret.
setStatus(2);
158 ostream& out = *pout;
164 out << pre <<
" Values are displayed starting at tick " <<
m_ShowFirst;
166 else out <<
" without rebinning";
169 for (
const AdcChannelDataMap::value_type& iacd : acds ) {
171 ostringstream sschanpre;
172 sschanpre << pre <<
setw(wcha) << acd.
channel() <<
":";
173 string chanpre = sschanpre.str();
175 sschanpre << pre <<
setw(wcha+1) <<
" ";
176 string nochanpre = sschanpre.str();
179 out <<
" nraw=" <<
setw(wcou) << acd.
raw.size();
180 out <<
" nsam=" <<
setw(wcou) << acd.
samples.size();
181 out <<
" nflg=" <<
setw(wcou) << acd.
flags.size();
182 out <<
" nsig=" <<
setw(wcou) << acd.
signal.size();
183 out <<
" nroi=" <<
setw(wcou) << acd.
rois.size();
189 out << chanpre <<
" Raw:";
202 out << chanpre <<
" Prp:";
214 if ( newfile )
delete pout;
DataMap & setStatus(int stat)
Q_EXPORT QTSManip setw(int w)
QTextStream & endl(QTextStream &s)
bool AdcDataDumper::m_NewFile |
|
private |
std::ostream* AdcDataDumper::m_pout |
|
private |
bool AdcDataDumper::m_ShowChannelCount |
|
private |
unsigned int AdcDataDumper::m_ShowFirst |
|
private |
unsigned int AdcDataDumper::m_ShowMax |
|
private |
unsigned int AdcDataDumper::m_ShowOpt |
|
private |
bool AdcDataDumper::m_ShowPrepared |
|
private |
bool AdcDataDumper::m_ShowRaw |
|
private |
unsigned int AdcDataDumper::m_ShowRebin |
|
private |
float AdcDataDumper::m_ShowThreshold |
|
private |
bool AdcDataDumper::m_ShowTickCounts |
|
private |
The documentation for this class was generated from the following files: