NuriaProject Framework
0.1
The NuriaProject Framework
|
The MetaAnnotation class allows access to annotations. More...
#include <metaobject.hpp>
Public Member Functions | |
MetaAnnotation () | |
bool | isValid () const |
QByteArray | name () const |
QVariant | value () const |
Friends | |
class | MetaEnum |
class | MetaField |
class | MetaMethod |
class | MetaObject |
The MetaAnnotation class allows access to annotations.
Annotations can be used to store user-defined meta-data for classes, enums, methods and fields.
The primary macro for this is NURIA_ANNOTATE. This macro takes two arguments, first being the key written as symbol and the second one being the value.
Annotations can be accessed using annotationCount() and annotation() in Nuria::Meta* classes.
Nuria::MetaAnnotation::MetaAnnotation | ( | ) |
Returns a invalid instance.
bool Nuria::MetaAnnotation::isValid | ( | ) | const |
Returns true
if this instance is valid.
QByteArray Nuria::MetaAnnotation::name | ( | ) | const |
Returns the name of the annotation.
QVariant Nuria::MetaAnnotation::value | ( | ) | const |
Returns the value of the annotation.