Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QString Class Reference

string wrapped into a QObject More...

Inheritance diagram for QString:
QObject

Public Member Functions

void Clear ()
 clear members More...
 
 QString ()
 default ctor More...
 
 QString (const std::string &value)
 copy ctor More...
 
 QString (const char *value)
 copy ctor More...
 
const QStringoperator= (const std::string &value)
 operator= More...
 
const QStringoperator= (const char *value)
 operator= More...
 
bool operator== (const std::string &value) const
 operator== More...
 
 operator const std::string & () const
 cast operator More...
 
const std::string & GetValue () const
 get value (for cint, were cast operator does not work) More...
 
void Dump (std::ostream &ob) const
 Dump content to stream. More...
 
- Public Member Functions inherited from QObject
 QObject ()
 default constructor More...
 
virtual ~QObject ()
 destructor More...
 
QObjectoperator= (const QObject &rhs)
 operator= More...
 
void Validate ()
 make object valid More...
 
void InValidate ()
 make object non valid More...
 
bool IsValid () const
 check wheter object is valid More...
 
void SetWrite (bool write=true)
 write or not this object More...
 
bool GetWrite () const
 check wheter write or not this object More...
 
bool IsRequired () const
 check wheter this object is required by some module More...
 
void SetIsRequired (bool required=true)
 set that this object is required
More...
 
bool IsJustAdded () const
 check wheter this object has been just added by some module More...
 
void SetIsJustAdded (bool added=true)
 set that this object has been just added
More...
 
void Reset ()
 set object to non valid and calls Clear() More...
 
virtual bool Fill (QObject *evData) const =0
 calls operator= of inheriting classes. Validity flag and bits are not copied. This function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp. If evData type mismatches returns false, true otherwise. More...
 
void FullyFill (QObject *evData) const
 calls Fill(QObject*) if this QObject IsValid(). Copies Validity flag and bits More...
 
virtual QObjectDuplicate () const =0
 create object of same type, this function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp More...
 
virtual void Print () const
 print content on screen 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 CopyBits (QObject *obj) const
 copy validity and temporary bits to another QObject More...
 
virtual void Draw (Option_t *option="")
 

Private Member Functions

 QObjectDef (QString, 1)
 

Private Attributes

std::string fValue
 value More...
 

Additional Inherited Members

- Public Types inherited from QObject
enum  { kIsValid = BIT(15) , kWrite = BIT(0) , kIsRequired = BIT(1) , kIsJustAdded = BIT(2) }
 TObject bits. More...
 
- Static Public Member Functions inherited from QObject
static QObjectNew (const char *object)
 

Detailed Description

string wrapped into a QObject

Author
Marco Vignati

Definition at line 18 of file QString.hh.

Constructor & Destructor Documentation

◆ QString() [1/3]

QString::QString ( )
inline

default ctor

Definition at line 29 of file QString.hh.

References fValue.

◆ QString() [2/3]

QString::QString ( const std::string &  value)
inline

copy ctor

Definition at line 32 of file QString.hh.

References operator=().

◆ QString() [3/3]

QString::QString ( const char *  value)
inline

copy ctor

Definition at line 35 of file QString.hh.

References operator=().

Member Function Documentation

◆ Clear()

void QString::Clear ( )
inlinevirtual

clear members

Implements QObject.

Definition at line 22 of file QString.hh.

References fValue.

Referenced by MTestRawEvent::Init().

◆ Dump()

void QString::Dump ( std::ostream &  ob) const
inlinevirtual

Dump content to stream.

Reimplemented from QObject.

Definition at line 53 of file QString.hh.

References fValue.

◆ GetValue()

const std::string& QString::GetValue ( ) const
inline

get value (for cint, were cast operator does not work)

Definition at line 50 of file QString.hh.

References fValue.

◆ operator const std::string &()

QString::operator const std::string & ( ) const
inline

cast operator

Definition at line 47 of file QString.hh.

References fValue.

◆ operator=() [1/2]

const QString & QString::operator= ( const char *  value)

operator=

Definition at line 14 of file QString.cc.

References fValue, and QObject::Validate().

◆ operator=() [2/2]

Q_BEGIN_NAMESPACE const QString & QString::operator= ( const std::string &  value)

operator=

Definition at line 7 of file QString.cc.

References fValue, and QObject::Validate().

Referenced by QString().

◆ operator==()

bool QString::operator== ( const std::string &  value) const

operator==

Definition at line 21 of file QString.cc.

References fValue.

◆ QObjectDef()

QString::QObjectDef ( QString  ,
 
)
private

Member Data Documentation

◆ fValue

std::string QString::fValue
private

value

Definition at line 56 of file QString.hh.

Referenced by Clear(), Dump(), GetValue(), operator const std::string &(), operator=(), operator==(), and QString().


The documentation for this class was generated from the following files: