#include <sxObject.h>
Public Member Functions | |
virtual QString | ToString () const |
Convert this object to string. | |
virtual const char * | ToPrintable () const |
Convert this object to printable string. | |
void | SetTag (quintptr tag) |
Associate tag (type of int) to this object. | |
quintptr | Tag () const |
Get associated tag. | |
void | SetName (const QString &name) |
Set name of this object. | |
QString | Name () const |
Name of the object. | |
Protected Member Functions | |
sxObject (const QString &name) | |
Construct object with given name. |
sxObject::sxObject | ( | const QString & | name | ) | [explicit, protected] |
Construct object with given name.
name | name of the object |
void sxObject::SetName | ( | const QString & | name | ) |
Set name of this object.
name | name to be set |
void sxObject::SetTag | ( | quintptr | tag | ) |
Associate tag (type of int) to this object.
tag | tag value |
Referenced by sxNetwork::SortComponents().
quintptr sxObject::Tag | ( | ) | const |
Get associated tag.
Tag value is 32-bit unsigned integer on 32-bit platforms, 64-bit unsigned integer on 64-bit platform
Referenced by sxNetwork::SortComponents().
const char * sxObject::ToPrintable | ( | ) | const [virtual] |
Convert this object to printable string.
QString sxObject::ToString | ( | ) | const [virtual] |
Convert this object to string.
Default implementation will return "[name()]"
Referenced by sxComponent::ErrorMessage().