Diana Software
QFrameWorkConfig.hh
Go to the documentation of this file.
1 #ifndef _Q_FRAMEWORKCONFIG_HH_
2 #define _Q_FRAMEWORKCONFIG_HH_
3 
13 #include "QObject.hh"
14 #include "QSequenceConfig.hh"
15 #include <vector>
16 
17 class QFrameWorkConfig : public Diana::QObject {
18 
19  public:
21  void Clear()
22  {
23  fSequences.clear();
24  }
25 
27  QError GetModuleByLabel(const std::string& label, QModuleConfig& mod) const;
28 
30  void Dump(std::ostream& o) const;
31 
33  void List() const;
34 
35 
37  bool SaveSequence(const std::string& seq, const std::string& outputfile = "", bool append = false) const;
38 
40  bool SaveAllSequences(const std::string& outputfilename) const;
41 
43  bool SaveFile(const std::string& origfilename, const std::string& outputfile = "") const;
44 
46  bool SaveAllFiles(const std::string& outputdir = ".", const std::string& prefix = "") const;
47 
48 
50  std::vector<QSequenceConfig*> fSequences;
51  private:
52 
54 
55 };
56 
57 #endif
error class with error type and description
Definition: QError.hh:115
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),...
void Clear()
clear members
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...
QObjectDef(QFrameWorkConfig, 2)
QError GetModuleByLabel(const std::string &label, QModuleConfig &mod) const
get QModuleConfig matching label
QObject to store a QBaseModule configuration.