|
QCAD Application Framework
CAD Application Development and Automation.
|
Represents unique property type IDs. More...
#include <RPropertyTypeId.h>
Public Member Functions | |
| void | generateId (const std::type_info &classInfo, const QString &groupTitle, const QString &title, bool forceNew=false) |
| void | generateId (const std::type_info &classInfo, const RPropertyTypeId &other) |
| QString | getCustomPropertyName () const |
| long int | getId () const |
| QString | getPropertyGroupTitle () const |
| QString | getPropertyTitle () const |
| bool | isCustom () const |
| bool | isValid () const |
| bool | operator!= (const RPropertyTypeId &other) const |
| != operator | |
| bool | operator< (const RPropertyTypeId &other) const |
| < operator | |
| bool | operator== (const RPropertyTypeId &other) const |
| == operator | |
| RPropertyTypeId (const QString &customPropertyName) | |
| Creates a new unique property type id. | |
| RPropertyTypeId (const RPropertyTypeId &other) | |
| RPropertyTypeId (long int id=INVALID_ID) | |
Static Public Member Functions | |
| static RPropertyTypeId | getPropertyTypeId (const QString &groupTitle, const QString &title) |
| static QSet< RPropertyTypeId > | getPropertyTypeIds (const std::type_info &classInfo) |
| Gets all property type IDs that where registered for the given class. | |
| static bool | hasPropertyType (const std::type_info &classInfo, RPropertyTypeId propertyTypeId) |
Static Public Attributes | |
| static const long int | INVALID_ID = -1 |
Private Attributes | |
| QString | customPropertyName |
| long int | id |
Static Private Attributes | |
| static long int | counter = 0 |
| static QMap< QString, QSet < RPropertyTypeId > > | propertyTypeByObjectMap |
| static QMap< long int, QPair < QString, QString > > | titleMap |
Represents unique property type IDs.
Every property type an object can have has such an unique ID.
E.g. all objects of type car may have a property type called brand. This property type is uniquely identified by an instance of this class. All instances of this class are automatically unique.
| RPropertyTypeId::RPropertyTypeId | ( | const QString & | customPropertyName | ) |
Creates a new unique property type id.
\ nonscriptable
Property type IDs are unique across class boundaries (for application scope). The IDs are dynamically generated and only guaranteed to remain the same during one application session. These IDs should never appears in a file format.
| classInfo | class info object for the class to which this property belongs, e.g. typeid(ClassName) or typeid(objectName). This is used to remember to which class a property belongs. |
| RPropertyTypeId::RPropertyTypeId | ( | const RPropertyTypeId & | other | ) |
| RPropertyTypeId::RPropertyTypeId | ( | long int | id = INVALID_ID | ) |
| void RPropertyTypeId::generateId | ( | const std::type_info & | classInfo, |
| const QString & | groupTitle, | ||
| const QString & | title, | ||
| bool | forceNew = false |
||
| ) |
\par Non-Scriptable:
This function is not available in script environments.
| void RPropertyTypeId::generateId | ( | const std::type_info & | classInfo, |
| const RPropertyTypeId & | other | ||
| ) |
\par Non-Scriptable:
This function is not available in script environments.
| QString RPropertyTypeId::getCustomPropertyName | ( | ) | const |
| long int RPropertyTypeId::getId | ( | ) | const |
| QString RPropertyTypeId::getPropertyGroupTitle | ( | ) | const |
| QString RPropertyTypeId::getPropertyTitle | ( | ) | const |
|
static |
|
static |
Gets all property type IDs that where registered for the given class.
\par Non-Scriptable:
This function is not available in script environments.
| classInfo | The class info, e.g. typeid(ObjectA) |
|
static |
\par Non-Scriptable:
This function is not available in script environments.
| true,: | if the given class has the given property |
| bool RPropertyTypeId::isCustom | ( | ) | const |
| bool RPropertyTypeId::isValid | ( | ) | const |
| bool RPropertyTypeId::operator!= | ( | const RPropertyTypeId & | other | ) | const |
!= operator
| bool RPropertyTypeId::operator< | ( | const RPropertyTypeId & | other | ) | const |
< operator
| bool RPropertyTypeId::operator== | ( | const RPropertyTypeId & | other | ) | const |
== operator
|
staticprivate |
|
private |
|
private |
|
static |
|
staticprivate |
|
staticprivate |