![]() |
Diana Software
|
QObject with TObject member. More...
Public Member Functions | |
| QTObject () | |
| ctor More... | |
| QTObject (const T &other) | |
| copy ctor More... | |
| virtual | ~QTObject () |
| dtor More... | |
| void | Clear () |
| clear members More... | |
| const QTObject< T > & | operator= (const T &other) |
| bool | Fill (Diana::QObject *obj) const |
| fill object of same type (like operator=) More... | |
| QObject * | Duplicate () const |
| create object of same type More... | |
| virtual void | Dump (std::ostream &o) const |
| print content to stream (intended for screen print or log files) More... | |
| virtual QError | WriteOnStream (std::ostream &o) const |
| print content to stream (intended for storage in text files) More... | |
| virtual QError | ReadFromStream (std::istream &o) |
| fill content from stream (intended for storage in text files) More... | |
| void | Draw (Option_t *option="") |
| Draw root. More... | |
Public Attributes | |
| T | fObject |
| TObject member. More... | |
Private Member Functions | |
| ClassDef (QTObject, 1) | |
QObject with TObject member.
Example on how to store a TH1D into the QEvent (for global TObjets look at GlobalDataManagerExample.C).
void MMyModule::Init(QEvent& ev)
{
...
ev.Add<QTObject<TH1D> >("Name");
...
}
void MMyModule::Do(QEvent& ev)
{
TH1D histo("histo","Histogram",10,-5,5);
histo.Fill(3)
...
ev.Get<QTObject<TH1D> >("Name") = histo;
}
Definition at line 38 of file QTObject.hh.
copy ctor
Definition at line 50 of file QTObject.hh.
References QTObject< T >::fObject, and histo().
dtor
Definition at line 59 of file QTObject.hh.
|
inline |
|
inline |
|
inlinevirtual |
print content to stream (intended for screen print or log files)
Definition at line 85 of file QTObject.hh.
create object of same type
Definition at line 79 of file QTObject.hh.
|
inline |
fill object of same type (like operator=)
Definition at line 69 of file QTObject.hh.
Definition at line 63 of file QTObject.hh.
References QTObject< T >::fObject.
fill content from stream (intended for storage in text files)
Definition at line 98 of file QTObject.hh.
References err, and QERR_NOT_IMPLEMENTED.
|
inlinevirtual |
print content to stream (intended for storage in text files)
Definition at line 91 of file QTObject.hh.
References err, and QERR_NOT_IMPLEMENTED.
| T QTObject< T >::fObject |
TObject member.
Definition at line 110 of file QTObject.hh.
Referenced by QTObject< T >::Clear(), QTObject< T >::Draw(), QTObject< T >::operator=(), and QTObject< T >::QTObject().