16 TClass* cl = TClass::GetClass(
object);
18 if(cl->InheritsFrom(
"Diana::QObject"))
19 return (QObject*)cl->New();
29 SetIsJustAdded(
false);
35 this->TObject::operator=(rhs);
43 valid = this->
Fill(evData);
50 this->CopyBits(evData);
57 ob<<
"Dump not implemented, using auto-dump method:"<<std::endl;
59 if(
err !=
QERR_SUCCESS) ob <<
"auto-dump failed with error: "<<
err.GetDescription()<<std::endl;
78 fTemporaryBits |= bit;
80 fTemporaryBits &= ~bit;
89 obj->fTemporaryBits = fTemporaryBits;
94 return fTemporaryBits & bit;
100 std::ostream&
operator<<(std::ostream&s,
const Diana::QObject&t)
#define Q_BEGIN_NAMESPACE
Q_END_NAMESPACE std::ostream & operator<<(std::ostream &s, const Diana::QObject &t)
error class with error type and description
QError DumpOnStream(const QObject *obj, std::ostream &str)
QError FillFromStream(QObject *obj, std::istream &in)
virtual QError WriteOnStream(std::ostream &o) const
print content to stream (intended for storage in text files)
virtual void Dump(std::ostream &o) const
print content to stream (intended for screen print or log files)
void CopyBits(QObject *obj) const
copy validity and temporary bits to another QObject
void QObjectSetBit(int bit, bool value)
set temporary bit
bool QObjectTestBit(int bit) const
test temporary bit
QObject & operator=(const QObject &rhs)
operator=
virtual QError ReadFromStream(std::istream &o)
fill content from stream (intended for storage in text files)
static QObject * New(const char *object)
void FullyFill(QObject *evData) const
calls Fill(QObject*) if this QObject IsValid(). Copies Validity flag and bits
QObject()
default constructor
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...