#include <HanConfigCompAlg.h>
Definition at line 22 of file HanConfigCompAlg.h.
◆ HanConfigCompAlg() [1/2]
| dqi::HanConfigCompAlg::HanConfigCompAlg |
( |
| ) |
|
Definition at line 15 of file HanConfigCompAlg.cxx.
17{
20}
TSeqCollection * m_subAlgs
TSeqCollection * newTList(const char *name, TObject *obj=0)
◆ HanConfigCompAlg() [2/2]
Definition at line 22 of file HanConfigCompAlg.cxx.
24 :TObject(other),
26{
29 TIter nextAlg(
other.m_subAlgs);
30 TObjString* otherAlg;
31 while((otherAlg = dynamic_cast<TObjString*>(nextAlg())) != 0){
32 TObjString*
alg =
new TObjString(*otherAlg);
34 }
35 TIter nextLib(
other.m_libs);
36 TObjString* otherLib;
37 while((otherLib = dynamic_cast<TObjString*>(nextLib())) != 0){
38 TObjString* lib = new TObjString(*otherLib);
40 }
41}
◆ ~HanConfigCompAlg()
| dqi::HanConfigCompAlg::~HanConfigCompAlg |
( |
| ) |
|
|
virtual |
◆ AddAlg()
| void dqi::HanConfigCompAlg::AddAlg |
( |
std::string | alg | ) |
|
|
virtual |
◆ AddLib()
| void dqi::HanConfigCompAlg::AddLib |
( |
std::string | lib | ) |
|
|
virtual |
Definition at line 104 of file HanConfigCompAlg.cxx.
106{
107 TObjString* newLib = new TObjString(lib.c_str());
108 this->
m_libs->Add(newLib);
109}
◆ GetAllAlg()
| TIter dqi::HanConfigCompAlg::GetAllAlg |
( |
| ) |
const |
|
virtual |
◆ GetAllLib()
| TIter dqi::HanConfigCompAlg::GetAllLib |
( |
| ) |
const |
|
virtual |
◆ GetName()
| const char * dqi::HanConfigCompAlg::GetName |
( |
| ) |
const |
|
virtual |
◆ operator=()
Definition at line 44 of file HanConfigCompAlg.cxx.
45{
46 if (this == &other) return *this;
47
51 TIter nextAlg(
other.m_subAlgs);
52 TObjString* otherAlg;
53 while((otherAlg = dynamic_cast<TObjString*>(nextAlg())) != 0){
54 TObjString*
alg =
new TObjString(*otherAlg);
56 }
57 TIter nextLib(
other.m_libs);
58 TObjString* otherLib;
59 while((otherLib = dynamic_cast<TObjString*>(nextLib())) != 0){
60 TObjString* lib = new TObjString(*otherLib);
62 }
63 return *this;
64}
◆ PrintIOStream()
| void dqi::HanConfigCompAlg::PrintIOStream |
( |
std::ostream & | o | ) |
const |
|
virtual |
Definition at line 119 of file HanConfigCompAlg.cxx.
121{
122 o <<
"\nHanConfigCompAlg: " << this->
GetName() <<
"\n";
123
125 o << " Sub-Algorithms = {\n";
128 while((alg=dynamic_cast<TObjString*>(nextAlg()))!=0){
130 }
131 o << " }\n";
132 }
133 if (!(
m_libs->IsEmpty())) {
134 o << " Libraries = {\n";
136 TObjString* lib;
137 while((lib=dynamic_cast<TObjString*>(nextLib()))!=0){
138 o << " " << lib;
139 }
140 o << " }\n";
141 }
142}
virtual const char * GetName() const
◆ SetName()
| void dqi::HanConfigCompAlg::SetName |
( |
std::string | name | ) |
|
|
virtual |
◆ m_libs
| TSeqCollection* dqi::HanConfigCompAlg::m_libs |
|
protected |
◆ m_name
| TObjString dqi::HanConfigCompAlg::m_name |
|
protected |
◆ m_subAlgs
| TSeqCollection* dqi::HanConfigCompAlg::m_subAlgs |
|
protected |
The documentation for this class was generated from the following files: