aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-10-26 20:24:24 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-10-26 20:24:24 -0300
commit4329d974ec98b74b74358718cf17055a00672e2b (patch)
tree1b17e8b5f30afc15b78f5f962ed6aa44b7d911de /typesystem.h
parenta7880bedd92bfed75908c055eae641610f6f6ca2 (diff)
conversion-rule tag now works inside value-type and object-type tags.
To access the conversion rule, use the new method TypeEntry->conversionRule NOTE: this commit is a modification of code produced by Hugo Parente.
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h
index 496515c63..420c7c09e 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -867,6 +867,24 @@ public:
m_include = inc;
}
+ /// Set the type convertion rule
+ void setConversionRule(const QString& conversionRule)
+ {
+ m_conversionRule = conversionRule;
+ }
+
+ /// Returns the type convertion rule
+ QString conversionRule() const
+ {
+ return m_conversionRule;
+ }
+
+ /// Returns true if there are any conversiton rule for this type, false otherwise.
+ bool hasConversionRule() const
+ {
+ return !m_conversionRule.isEmpty();
+ }
+
private:
QString m_name;
Type m_type;
@@ -879,6 +897,7 @@ private:
IncludeList m_extraIncludes;
Include m_include;
QHash<QString, bool> m_includesUsed;
+ QString m_conversionRule;
};
typedef QHash<QString, QList<TypeEntry *> > TypeEntryHash;
typedef QHash<QString, TypeEntry *> SingleTypeEntryHash;