38 template<
class T>
class QTObject :
public Diana::QObject {
44 histo->AddDirectory(0);
52 histo->AddDirectory(0);
69 bool Fill(Diana::QObject* obj)
const
85 virtual void Dump(std::ostream& o)
const
87 o<<
"Dump not implemented for QTObject";
94 err.SetDescription(__FILE__,__LINE__,
"WriteOnStream not implementable for QTObject");
101 err.SetDescription(__FILE__,__LINE__,
"ReadFromStream not implementable for QTObject");
TH1D histo("histo","My histogram", 10,-5, 5)
#define Q_BEGIN_NAMESPACE
error class with error type and description
base class for objects handled by QEvent and QGlobalDataManager.
QObject with TObject member.
QTObject(const T &other)
copy ctor
virtual QError ReadFromStream(std::istream &o)
fill content from stream (intended for storage in text files)
virtual QError WriteOnStream(std::ostream &o) const
print content to stream (intended for storage in text files)
void Clear()
clear members
bool Fill(Diana::QObject *obj) const
fill object of same type (like operator=)
QObject * Duplicate() const
create object of same type
void Draw(Option_t *option="")
Draw root.
virtual void Dump(std::ostream &o) const
print content to stream (intended for screen print or log files)
const QTObject< T > & operator=(const T &other)