10 std::vector<QSequenceConfig*>::const_reverse_iterator iter =
fSequences.rbegin();
12 if((*iter)->GetModuleByLabel(label,mod) ==
QERR_SUCCESS) {
23 for(
size_t s = 0; s <
fSequences.size(); s++) {
24 o<<
"sequence "<<
fSequences[s]->fName<<std::endl;
27 o<<
"endseq"<<std::endl;
33 std::cout<<
"Sequence / Original filename"<<std::endl;
34 for(
size_t s = 0; s <
fSequences.size(); s++) {
41 for(
size_t s = 0; s <
fSequences.size(); s++) {
48 std::cerr<<
"Error: sequence name not found"<<std::endl;
52 std::string outname = outputfile;
53 if(outname.empty()) outname = sc->
fFilename;
56 of.open(outname.c_str(),std::ios::app);
58 of.open(outname.c_str());
60 std::cerr<<
"Cannot open file \""<<outname<<std::endl;
63 of<<
"# Dumped by QFramework config. Original filename: "<<sc->
fFilename<<std::endl;
65 of<<
"sequence "<<sc->
fName<<std::endl;
68 of<<
"endseq"<<std::endl;
79 std::cerr<<
"Error: no sequence available"<<std::endl;
83 for(
size_t s = 0; s <
fSequences.size(); s++) {
92 std::vector<QSequenceConfig*> selected;
93 for(
size_t s = 0; s <
fSequences.size(); s++) {
98 if(selected.empty()) {
99 std::cerr<<
"Error: filename not found"<<std::endl;
103 std::string outname = outputfile;
104 if(outname.empty()) outname = origfilename;
108 for(
size_t s = 0; s < selected.size(); s++) {
110 if(!ok)
return false;
117 std::set<std::string> selected;
119 for(
size_t s = 0; s <
fSequences.size(); s++) {
122 if(selected.empty()) {
123 std::cerr<<
"Error: filename not found"<<std::endl;
127 std::set<std::string>::iterator iter = selected.begin();
128 while(iter != selected.end()) {
129 std::string file = outputdir +
"/";
133 if(!ok)
return false;
QOptimumFilter of(ap, an,-1, false)
QObjectImp(QFrameWorkConfig)
error class with error type and description
QObject storing a set of QSecuenceConfigs.
void Dump(std::ostream &o) const
print all sequences to stream
bool SaveSequence(const std::string &seq, const std::string &outputfile="", bool append=false) const
save sequence with name seq to outputfile (defaults to QSequenceConfig::fFilename),...
bool SaveAllSequences(const std::string &outputfilename) const
save all sequences to a single file. Returns true/false in case of success/failure.
bool SaveFile(const std::string &origfilename, const std::string &outputfile="") const
save all sequences belonging to origfilename to outputfile (defaults to origfilename)....
std::vector< QSequenceConfig * > fSequences
QSequenceConfig of all sequences run on this data.
void List() const
list all sequence names and file names
bool SaveAllFiles(const std::string &outputdir=".", const std::string &prefix="") const
calls SaveFile on all files present in the QSequenceConfigs and saves each file (preprnding an option...
QError GetModuleByLabel(const std::string &label, QModuleConfig &mod) const
get QModuleConfig matching label
QObject to store a QBaseModule configuration.
QObject storing a QSequence configuration, a set of QModuleConfigs.
std::string fFilename
file name of this sequence
std::string fName
name of this sequence
void Dump(std::ostream &o) const
dump on stream