From 4329d974ec98b74b74358718cf17055a00672e2b Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Mon, 26 Oct 2009 20:24:24 -0300 Subject: 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. --- typesystem.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'typesystem.h') 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 m_includesUsed; + QString m_conversionRule; }; typedef QHash > TypeEntryHash; typedef QHash SingleTypeEntryHash; -- cgit v1.2.3