GLC_Attributes : User attributes of instance and reference. More...
#include <glc_attributes.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_Attributes () | |
| Default Constructor. | |
| GLC_Attributes (const GLC_Attributes &) | |
| Copy Constructor. | |
| GLC_Attributes & | operator= (const GLC_Attributes &) |
| Overload "=" operator. | |
| virtual | ~GLC_Attributes () |
| Destructor. | |
Get Functions | |
| bool | isEmpty () const |
| Return true if attributes is empty. | |
| int | size () const |
| Return the size of attributes. | |
| bool | contains (const QString &name) const |
| Return true if the specified attribute exist. | |
| QList< QString > | names () const |
| Return the list of attribute name. | |
| QString | value (const QString &name) const |
| Return the value of the specified attributes. | |
Set Functions | |
| void | insert (const QString &name, const QString &value) |
| Insert an attribute. | |
| void | remove (const QString &name) |
| Remove an attribute. | |
Operator Overload | |
| bool | operator== (const GLC_Attributes &attr) const |
| Equal operator overload. | |
Private Attributes | |
| QHash< QString, QString > | m_AttributesHash |
| Attributes Hash table. | |
GLC_Attributes : User attributes of instance and reference.
Definition at line 39 of file glc_attributes.h.
| GLC_Attributes::GLC_Attributes | ( | ) |
Default Constructor.
Definition at line 29 of file glc_attributes.cpp.
| GLC_Attributes::GLC_Attributes | ( | const GLC_Attributes & | attr | ) |
Copy Constructor.
Definition at line 36 of file glc_attributes.cpp.
| GLC_Attributes::~GLC_Attributes | ( | ) | [virtual] |
Destructor.
Definition at line 53 of file glc_attributes.cpp.
| bool GLC_Attributes::contains | ( | const QString & | name | ) | const [inline] |
Return true if the specified attribute exist.
Definition at line 75 of file glc_attributes.h.
| void GLC_Attributes::insert | ( | const QString & | name, | |
| const QString & | value | |||
| ) | [inline] |
Insert an attribute.
Definition at line 95 of file glc_attributes.h.
Referenced by GLC_3dxmlToWorld::loadInstance3D(), and GLC_3dxmlToWorld::loadReference3D().
| bool GLC_Attributes::isEmpty | ( | void | ) | const [inline] |
Return true if attributes is empty.
Definition at line 67 of file glc_attributes.h.
Referenced by GLC_3dxmlToWorld::loadInstance3D(), and GLC_3dxmlToWorld::loadReference3D().
| QList<QString> GLC_Attributes::names | ( | ) | const [inline] |
Return the list of attribute name.
Definition at line 79 of file glc_attributes.h.
Referenced by GLC_WorldTo3dxml::writeExtensionAttributes().
| GLC_Attributes & GLC_Attributes::operator= | ( | const GLC_Attributes & | attr | ) |
Overload "=" operator.
Definition at line 43 of file glc_attributes.cpp.
References m_AttributesHash.
| bool GLC_Attributes::operator== | ( | const GLC_Attributes & | attr | ) | const [inline] |
Equal operator overload.
Definition at line 111 of file glc_attributes.h.
References m_AttributesHash.
| void GLC_Attributes::remove | ( | const QString & | name | ) | [inline] |
Remove an attribute.
Definition at line 99 of file glc_attributes.h.
| int GLC_Attributes::size | ( | void | ) | const [inline] |
Return the size of attributes.
Definition at line 71 of file glc_attributes.h.
| QString GLC_Attributes::value | ( | const QString & | name | ) | const [inline] |
Return the value of the specified attributes.
Return NULL String if attribute doesn't exist
Definition at line 84 of file glc_attributes.h.
Referenced by GLC_WorldTo3dxml::writeExtensionAttributes().
QHash<QString, QString> GLC_Attributes::m_AttributesHash [private] |
Attributes Hash table.
Definition at line 120 of file glc_attributes.h.
Referenced by operator=(), and operator==().